# $Id$ PNAME="ilmbase" PVER="2.1.0" PBUILD="r1" PCAT="media-libs" DESCRIPTION="OpenEXR ILM Base libraries." HOMEPAGE="http://openexr.com/" DEPEND=">= sys-libs/libstdc++-4.8" SRCFILE="${PNAME}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude multilib msetfeature "!check" SRC_URI=( http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/distfiles/${SRCFILE} http://download.savannah.nongnu.org/releases/openexr/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-2.0.1-no_undefined.patch ) UP2DATE="updatecmd http://download.savannah.nongnu.org/releases/openexr | grep ${PNAME}-[0-9] | lasttarball gz" src_prepare() { munpack ${SRCFILE} || die # fix undefined references mpatch ${PNAME}-2.0.1-no_undefined.patch || die } src_compile() { mconfigure || die # fix bogus pthread linking mmake PTHREAD_LIBS="-pthread -lpthread" || die }