# $Id$ PNAME="lame" PVER="3.99.5" PBUILD="r4" PCAT="media-sound" DESCRIPTION="Lame - Ain't an MP3 Encoder, is an LGPL MP3 encoder." HOMEPAGE="http://lame.sourceforge.net/" DEPEND=">= sys-libs/ncurses-6.0 >= media-libs/libsndfile-1.0.26" SDEPEND=">= dev-lang/nasm-2" SRCFILE="${PNAME}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude mtools mbuild multilib rpath SRC_URI=( sourceforge://${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-${PVER}-gcc5-sse.patch ) # filter old versions which breaks the logic UP2EXCLUDE="3.98" UP2DATE="updatecmd_sourceforge ${PNAME} gz" src_prepare() { munpack ${SRCFILE} || die # fix build with i686 arch and >=gcc-5 mpatch ${PNAME}-${PVER}-gcc5-sse.patch || die } src_compile() { mconfigure \ --enable-shared \ --enable-nasm \ --enable-mp3rtp \ --disable-mp3x \ --enable-debug=no \ --with-fileio=sndfile \ || die mmake -j1 || die } src_install() { mmake DESTDIR=${BINDIR} pkghtmldir=/usr/share/doc/${PNAME}-${PVER}/html install || die minstallexec misc/mlame || die # remove insecure rpath mdeleterpath || die # some missing docs minstalldocs API ChangeLog HACKING README* STYLEGUIDE TODO USAGE || die minstallhtml misc/lameGUI.html Dll/LameDLLInterface.htm || die }