# $Id$ PNAME="musicbrainz" PVER="2.1.5" PBUILD="r6" PCATEGORIE="media-libs" DESCRIPTION="The MusicBrainz Client Library provides low-level access to the MusicBrainz Server RDF interface and the TRM Signature Server." HOMEPAGE="http://musicbrainz.org/" DEPEND="" SDEPEND=">= sys-dev/autoconf-4 >= sys-dev/automake-3 >= sys-apps/sed-4" SRCFILE="lib${PNAME}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/lib${PNAME}-${PVER}" sminclude mbuild SRC_URI=( ftp://ftp.musicbrainz.org/pub/${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-${PVER}-gcc43.patch ) # check for libmusicbrainz-2.x libs only UP2DATE="updatecmd ftp://ftp.musicbrainz.org/pub/musicbrainz/ | grep lib${PNAME}-2.[0-9] | lasttarball gz" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # fixes compilation issues with gcc-4.3 mpatch ${PNAME}-${PVER}-gcc43.patch || die } src_compile() { cd ${SRCDIR} mconfigure --enable-cpp-headers || die mmake || die }