# $Id$ PNAME="libofa" PVER="0.9.3" PBUILD="r8" PCAT="media-libs" 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.3 >= net-misc/curl-7" SDEPEND=">= dev-util/pkgconfig-0.25 >= virtual/sed" SRCFILE="${PNAME}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude mbuild SRC_URI=( http://musicip-libofa.googlecode.com/files/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-${PVER}-gcc4.patch mirror://${PNAME}/${PNAME}-${PVER}-gcc43.patch mirror://${PNAME}/${PNAME}-${PVER}-gcc45.patch mirror://${PNAME}/${PNAME}-${PVER}-gcc47.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 # fixes compilation with gcc4.5 mpatch ${PNAME}-${PVER}-gcc45.patch || die # fixes compilation with gcc4.7 mpatch ${PNAME}-${PVER}-gcc47.patch || die # fix build with newer curl sed -i '/#include /d' examples/protocol.cpp || die }