Annotation of /branches/R11-unstable/extras/libfaad2/libfaad2-2.7-r4.smage2
Parent Directory | Revision Log
Revision 25503 -
(hide annotations)
(download)
Tue Nov 25 03:51:06 2014 UTC (9 years, 10 months ago) by niro
File size: 1178 byte(s)
Tue Nov 25 03:51:06 2014 UTC (9 years, 10 months ago) by niro
File size: 1178 byte(s)
-release branches/R11-unstable
1 | niro | 8201 | # $Id$ |
2 | |||
3 | PNAME="libfaad2" | ||
4 | PVER="2.7" | ||
5 | PBUILD="r4" | ||
6 | |||
7 | niro | 10574 | PCAT="media-libs" |
8 | niro | 8201 | |
9 | DESCRIPTION="FAAD2 is an open source MPEG-4 and MPEG-2 AAC decoder." | ||
10 | HOMEPAGE="http://www.audiocoding.com/" | ||
11 | |||
12 | DEPEND=">= media-libs/libmp4v2-1.9" | ||
13 | |||
14 | SRCFILE="${PNAME/lib/}-${PVER}.tar.gz" | ||
15 | SRCDIR="${BUILDDIR}/${PNAME/lib/}-${PVER}" | ||
16 | |||
17 | sminclude mbuild | ||
18 | |||
19 | SRC_URI=( | ||
20 | sourceforge://faac/${SRCFILE} | ||
21 | mirror://${PNAME}/${SRCFILE} | ||
22 | ) | ||
23 | |||
24 | UP2DATE="updatecmd_sourceforge faac ${PNAME/lib/}-src deep gz" | ||
25 | |||
26 | src_compile() | ||
27 | { | ||
28 | cd ${SRCDIR} | ||
29 | |||
30 | export CFLAGS="${CFLAGS} -fno-strict-aliasing" | ||
31 | export CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing" | ||
32 | |||
33 | mconfigure --with-drm --without-xmms || die | ||
34 | mmake || die | ||
35 | } | ||
36 | |||
37 | src_install() | ||
38 | { | ||
39 | cd ${SRCDIR} | ||
40 | |||
41 | mmake DESTDIR=${BINDIR} install || die | ||
42 | |||
43 | # unneeded include, <systems.h> breaks building of apps, but | ||
44 | # it is necessary because includes <sys/types.h>, | ||
45 | # which is needed by /usr/include/mp4.h... so we just | ||
46 | # include <sys/types.h> instead. See bug #55767 | ||
47 | #sed -i "s:#include <systems.h>:#include <sys/types.h>:" ${BINDIR}/usr/include/mpeg4ip.h || die | ||
48 | #sed -i "s:\"mp4ff_int_types.h\":<stdint.h>:" ${BINDIR}/usr/include/mp4ff.h || die | ||
49 | |||
50 | minstalldocs AUTHORS ChangeLog NEWS README* TODO || die | ||
51 | } |