Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1326 - (show annotations) (download)
Sat May 2 14:12:04 2009 UTC (15 years ago) by niro
File size: 1357 byte(s)
-rebuild
1 # $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 # arch special preprocessor
33 local myconf
34 [[ ${ARCH} = x86_64 ]] && myconf="--enable-fpm=64bit"
35 [[ ${ARCH} = i*86 ]] && myconf="--enable-fpm=intel"
36
37 mconfigure --enable-accuracy --disable-debugging ${myconf} || die
38 mmake || die
39 }
40
41 src_install()
42 {
43 cd ${SRCDIR}
44 mmake DESTDIR=${BINDIR} install || die
45
46 # must be updated with every update
47 cat > ${SRCDIR}/mad.pc << "EOF"
48 prefix=/usr
49 exec_prefix=${prefix}
50 EOF
51
52 # fix libdir
53 echo "libdir=\${exec_prefix}/$(mlibdir)" >> ${SRCDIR}/mad.pc
54
55 cat >> ${SRCDIR}/mad.pc << "EOF"
56 includedir=${prefix}/include
57
58 Name: mad
59 Description: MPEG Audio Decoder
60 Requires:
61 EOF
62 echo "Version: ${PVER}" >> ${SRCDIR}/mad.pc
63 cat >> ${SRCDIR}/mad.pc << "EOF"
64 Libs: -L${libdir} -lmad -lm
65 Cflags: -I${includedir}
66 EOF
67 minstalldir /usr/$(mlibdir)/pkgconfig || die
68 minstallfile mad.pc /usr/$(mlibdir)/pkgconfig || die
69 }

Properties

Name Value
svn:keywords Id