# $Id$ PNAME="libofa" PVER="0.9.3" PBUILD="r5" PCATEGORIE="media-libs" STATE="unstable" DESCRIPTION="LibOFA (Library Open Fingerprint Architecture) is an open-source audio fingerprint created and provided by MusicIP." HOMEPAGE="http://code.google.com/p/musicip-libofa/" DEPEND=">= dev-libs/expat-2 >= sci-libs/fftw3-3.2 >= net-misc/curl-7" SDEPEND=">= dev-util/pkgconfig-0.23" SRCFILE="${PNAME}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude mbuild SRC_URI=( http://musicip-libofa.googlecode.com/files/${SRCFILE} http://www.musicip.com/dns/files/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-${PVER}-gcc4.patch mirror://${PNAME}/${PNAME}-${PVER}-gcc43.patch ) UP2DATE="updatecmd http://code.google.com/p/musicip-libofa/downloads/list | grep ${PNAME}- | lasttarball gz" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # fixes compilation with gcc4 mpatch ${PNAME}-${PVER}-gcc4.patch || die # fixes compilation with gcc4.3 mpatch ${PNAME}-${PVER}-gcc43.patch || die }