Magellan Linux

Contents of /trunk/core/libfaad2/libfaad2-2.6.1-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 944 - (show annotations) (download)
Sun Dec 28 22:19:21 2008 UTC (15 years, 4 months ago) by niro
File size: 1544 byte(s)
-added patch to fix builds with libtool-2
1 # $Header: /magellan-cvs/smage/libfaad2/libfaad2-2.6.1-r1.smage2,v 1.1 2008/02/13 20:54:42 niro Exp $
2
3 PNAME="libfaad2"
4 PVER="2.6.1"
5 PBUILD="r2"
6
7 PCATEGORIE="media-libs"
8 STATE="unstable"
9
10 DESCRIPTION="FAAD2 is an open source MPEG-4 and MPEG-2 AAC decoder."
11 HOMEPAGE="http://www.audiocoding.com/"
12
13 DEPEND=">= media-libs/libmp4v2-1.5"
14
15 SRCFILE="${PNAME/lib/}-${PVER}.tar.gz"
16 SRCDIR="${BUILDDIR}/${PNAME/lib/}"
17
18 SRC_URI=(
19 sourceforge://faac/${SRCFILE}
20 mirror://${PNAME}/${SRCFILE}
21 mirror://${PNAME}/${PNAME}-${PVER}-libtool22.patch
22 )
23
24 UP2DATE="updatecmd_sourceforge faac ${PNAME/lib/}-src deep gz"
25
26 src_prepare()
27 {
28 munpack ${SRCFILE} || die
29 cd ${SRCDIR}
30
31 # fix build with libtool-2
32 mpatch ${PNAME}-${PVER}-libtool22.patch || die
33
34 # create missing configure script
35 autoreconf --verbose --force --install || die
36 }
37
38 src_compile()
39 {
40 cd ${SRCDIR}
41
42 export CFLAGS="${CFLAGS} -fno-strict-aliasing"
43 export CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"
44
45 mconfigure --with-drm --without-xmms || die
46 mmake || die
47 }
48
49 src_install()
50 {
51 cd ${SRCDIR}
52
53 mmake DESTDIR=${BINDIR} install || die
54
55 # unneeded include, <systems.h> breaks building of apps, but
56 # it is necessary because includes <sys/types.h>,
57 # which is needed by /usr/include/mp4.h... so we just
58 # include <sys/types.h> instead. See bug #55767
59 #sed -i "s:#include <systems.h>:#include <sys/types.h>:" ${BINDIR}/usr/include/mpeg4ip.h || die
60 #sed -i "s:\"mp4ff_int_types.h\":<stdint.h>:" ${BINDIR}/usr/include/mp4ff.h || die
61
62 minstalldocs AUTHORS ChangeLog NEWS README* TODO || die
63 }

Properties

Name Value
svn:keywords Id