Magellan Linux

Annotation of /trunk/extras/lame/lame-3.99.5-r4.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 27273 - (hide annotations) (download)
Tue Dec 8 12:34:18 2015 UTC (8 years, 6 months ago) by niro
File size: 1287 byte(s)
-fix build with i686 arch and gcc-5
1 niro 27273 # $Id$
2    
3     PNAME="lame"
4     PVER="3.99.5"
5     PBUILD="r4"
6    
7     PCAT="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-6.0
13     >= media-libs/libsndfile-1.0.26"
14    
15     SDEPEND=">= dev-lang/nasm-2"
16    
17     SRCFILE="${PNAME}-${PVER}.tar.gz"
18     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
19    
20     sminclude mtools mbuild multilib rpath
21    
22     SRC_URI=(
23     sourceforge://${PNAME}/${SRCFILE}
24     mirror://${PNAME}/${SRCFILE}
25     mirror://${PNAME}/${PNAME}-${PVER}-gcc5-sse.patch
26     )
27    
28     # filter old versions which breaks the logic
29     UP2EXCLUDE="3.98"
30     UP2DATE="updatecmd_sourceforge ${PNAME} gz"
31    
32     src_prepare()
33     {
34     munpack ${SRCFILE} || die
35    
36     # fix build with i686 arch and >=gcc-5
37     mpatch ${PNAME}-${PVER}-gcc5-sse.patch || die
38     }
39    
40     src_compile()
41     {
42     mconfigure \
43     --enable-shared \
44     --enable-nasm \
45     --enable-mp3rtp \
46     --disable-mp3x \
47     --enable-debug=no \
48     --with-fileio=sndfile \
49     || die
50    
51     mmake -j1 || die
52     }
53    
54     src_install()
55     {
56     mmake DESTDIR=${BINDIR} pkghtmldir=/usr/share/doc/${PNAME}-${PVER}/html install || die
57     minstallexec misc/mlame || die
58    
59     # remove insecure rpath
60     mdeleterpath || die
61    
62     # some missing docs
63     minstalldocs API ChangeLog HACKING README* STYLEGUIDE TODO USAGE || die
64     minstallhtml misc/lameGUI.html Dll/LameDLLInterface.htm || die
65     }