Magellan Linux

Annotation of /trunk/core/libmad/libmad-0.15.1b-r8.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1327 - (hide annotations) (download)
Sat May 2 14:18:38 2009 UTC (15 years, 1 month ago) by niro
File size: 1469 byte(s)
-fixed broken cflags with gcc-4.3
1 niro 1326 # $Id$
2    
3     PNAME="libmad"
4     PVER="0.15.1b"
5     PBUILD="r8"
6    
7     PCATEGORIE="media-libs"
8     STATE="unstable"
9    
10     DESCRIPTION="MAD is a high-quality MPEG audio decoder."
11     HOMEPAGE="http://www.underbit.com/products/mad/"
12    
13     DEPEND=">= virtual/glibc"
14    
15     SRCFILE="${PNAME}-${PVER}.tar.gz"
16     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
17    
18     sminclude mtools mbuild
19    
20     SRC_URI=(
21     ftp://ftp.mars.org/pub/mpeg/${SRCFILE}
22     sourceforge://mad/${SRCFILE}
23     mirror://${PNAME}/${SRCFILE}
24     )
25    
26     UP2DATE="updatecmd_sourceforge mad libmad"
27    
28     src_compile()
29     {
30     cd ${SRCDIR}
31    
32 niro 1327 # remove unsupported cflags with gcc-4.3
33     sed "s:-fforce-mem::g" configure.ac || die
34     autoconf --force || die
35    
36 niro 1326 # arch special preprocessor
37     local myconf
38     [[ ${ARCH} = x86_64 ]] && myconf="--enable-fpm=64bit"
39     [[ ${ARCH} = i*86 ]] && myconf="--enable-fpm=intel"
40    
41     mconfigure --enable-accuracy --disable-debugging ${myconf} || die
42     mmake || die
43     }
44    
45     src_install()
46     {
47     cd ${SRCDIR}
48     mmake DESTDIR=${BINDIR} install || die
49    
50     # must be updated with every update
51     cat > ${SRCDIR}/mad.pc << "EOF"
52     prefix=/usr
53     exec_prefix=${prefix}
54     EOF
55    
56     # fix libdir
57     echo "libdir=\${exec_prefix}/$(mlibdir)" >> ${SRCDIR}/mad.pc
58    
59     cat >> ${SRCDIR}/mad.pc << "EOF"
60     includedir=${prefix}/include
61    
62     Name: mad
63     Description: MPEG Audio Decoder
64     Requires:
65     EOF
66     echo "Version: ${PVER}" >> ${SRCDIR}/mad.pc
67     cat >> ${SRCDIR}/mad.pc << "EOF"
68     Libs: -L${libdir} -lmad -lm
69     Cflags: -I${includedir}
70     EOF
71     minstalldir /usr/$(mlibdir)/pkgconfig || die
72     minstallfile mad.pc /usr/$(mlibdir)/pkgconfig || die
73     }

Properties

Name Value
svn:keywords Id