Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


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