Magellan Linux

Contents of /branches/magellan-next/core/lame/lame-3.98.4-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8194 - (show annotations) (download)
Wed Jul 13 00:39:38 2011 UTC (12 years, 10 months ago) by niro
File size: 1049 byte(s)
auto added: ver bump to 3.98.4-r2
1 # $Id$
2
3 PNAME="lame"
4 PVER="3.98.4"
5 PBUILD="r2"
6
7 PCATEGORIE="media-sound"
8
9 DESCRIPTION="Lame - Ain't an MP3 Encoder, is an LGPL MP3 encoder."
10 HOMEPAGE="http://lame.sourceforge.net/"
11
12 DEPEND=">= sys-libs/ncurses-5.9
13 >= media-libs/libsndfile-1.0.24"
14
15 SDEPEND=">= dev-lang/nasm-2"
16
17 SRCFILE="${PNAME}-${PVER}.tar.gz"
18 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
19
20 sminclude mtools
21
22 SRC_URI=(
23 sourceforge://${PNAME}/${SRCFILE}
24 mirror://${PNAME}/${SRCFILE}
25 )
26
27 UP2DATE="updatecmd_sourceforge ${PNAME}"
28
29 src_prepare()
30 {
31 munpack ${SRCFILE} || die
32 }
33
34 src_compile()
35 {
36 cd ${SRCDIR}
37
38 mconfigure \
39 --enable-shared \
40 --enable-nasm \
41 --enable-mp3rtp \
42 --disable-mp3x \
43 --enable-debug=no \
44 --with-fileio=sndfile \
45 || die
46
47 mmake -j1 || die
48 }
49
50 src_install()
51 {
52 cd ${SRCDIR}
53 mmake DESTDIR=${BINDIR} pkghtmldir=/usr/share/doc/${PNAME}-${PVER}/html install || die
54
55 minstallexec misc/mlame || die
56
57 # some missing docs
58 minstalldocs API ChangeLog HACKING README* STYLEGUIDE TODO USAGE || die
59 minstallhtml misc/lameGUI.html Dll/LameDLLInterface.htm || die
60 }