# $Id: lame-3.98.2-r3.smage2 3621 2009-10-27 15:31:34Z niro $ PNAME="lame" PVER="3.98.4" PBUILD="r1" PCATEGORIE="media-sound" STATE="unstable" DESCRIPTION="Lame - Ain't an MP3 Encoder, is an LGPL MP3 encoder." HOMEPAGE="http://lame.sourceforge.net/" DEPEND=">= sys-libs/ncurses-5.7" SDEPEND=">= dev-lang/nasm-2" SRCFILE="${PNAME}-$(echo ${PVER} | sed -e 's:\.::' -e 's:\.:-:').tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-$(echo ${PVER} | sed -e 's:\.::' -e 's:\.:-:')" sminclude mtools SRC_URI=( sourceforge://${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) UP2DATE="updatecmd_sourceforge ${PNAME}" src_prepare() { munpack ${SRCFILE} || die } src_compile() { cd ${SRCDIR} mconfigure \ --enable-shared \ --enable-nasm \ --enable-mp3rtp \ --disable-mp3x \ --enable-debug=no \ || die mmake -j1 || die } src_install() { mmake DESTDIR=${BINDIR} pkghtmldir=/usr/share/doc/${PNAME}-${PVER}/html install || die minstallexec misc/mlame || die # some missing docs minstalldocs API ChangeLog HACKING README* STYLEGUIDE TODO USAGE || die minstallhtml misc/lameGUI.html Dll/LameDLLInterface.htm || die }