# $Header: /magellan-cvs/smage/mesa-progs/mesa-progs-7.1-r1.smage2,v 1.1 2008/09/09 16:14:32 niro Exp $ PNAME="mesa-progs" PVER="7.2" PBUILD="r1" PCATEGORIE="x11-apps" STATE="unstable" DESCRIPTION="Mesa3D OpenGL graphics applications." HOMEPAGE="http://mesa3d.sourceforge.net/" sminclude xorg mtools # removed opengl -> results in loopings with depwalker DEPEND=">= virtual/glut" # >= virtual/opengl" LIB_SRCFILE="MesaLib-${PVER/_/-}.tar.gz" PROGS_SRCFILE="MesaDemos-${PVER/_/-}.tar.gz" # libs + progs have the same SRCDIR SRCDIR="${BUILDDIR}/Mesa-${PVER/_/-}" SRC_URI=( sourceforge://mesa3d/${LIB_SRCFILE} sourceforge://mesa3d/${PROGS_SRCFILE} mirror://mesa/${LIB_SRCFILE} mirror://mesa/${PROGS_SRCFILE} ) UP2DATE="updatecmd_sourceforge mesa3d MesaDemos" hostconf_add() { echo "$@" >> ${hostconf} || die } src_prepare() { munpack ${LIB_SRCFILE} || die munpack ${PROGS_SRCFILE} || die } src_compile() { cd ${SRCDIR} local hostconf [[ ${ARCH} = i*86 ]] && hostconf="${SRCDIR}/configs/linux-dri-x86" [[ ${ARCH} = x86_64 ]] && hostconf="${SRCDIR}/configs/linux-dri-x86-64" # kill this; we don't want /usr/X11R6/lib ever to be searched in this # build. hostconf_add "EXTRA_LIB_PATH =" # our cflags hostconf_add "OPT_FLAGS = ${CFLAGS}" # enable pic hostconf_add "PIC_FLAGS =" cd ${SRCDIR}/configs ln -s $(basename ${hostconf}) current || die cd ${SRCDIR}/progs/xdemos mmake glxinfo || die mmake glxgears || die } src_install() { cd ${SRCDIR}/progs/xdemos minstallexec glxgears || die minstallexec glxinfo || die }