Magellan Linux

Contents of /branches/magellan-next/core/ffmpeg/ffmpeg-20100906-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6614 - (show annotations) (download)
Mon Sep 6 21:05:37 2010 UTC (13 years, 8 months ago) by niro
File size: 2119 byte(s)
-removed libfaad2 support, it was dropped upstream and enabled build of qt-faststart
1 # $Id: ffmpeg-20091021-r2.smage2 4171 2009-11-29 22:59:36Z niro $
2
3 PNAME="ffmpeg"
4 PVER="20100906"
5 PBUILD="r1"
6
7 PCATEGORIE="media-video"
8 STATE="unstable"
9
10 DESCRIPTION="ffmpeg is a complete audio and video stream library."
11 HOMEPAGE="http://ffmpeg.org/"
12
13 DEPEND=">= media-libs/imlib2-1.4
14 >= media-libs/freetype-2.4
15 >= media-libs/libsdl-1.2.14
16 >= media-sound/lame-3.98
17 >= media-libs/libogg-1.2
18 >= media-libs/libvorbis-1.3
19 >= media-libs/libfaac-1.28
20 >= media-libs/xvid-1.2
21 >= sys-libs/zlib-1.2.5
22 >= media-libs/x264-201009
23 >= media-libs/libtheora-1.1.1"
24
25 SDEPEND=">= sys-apps/sed-4"
26
27 SRCFILE="${PNAME}-${PVER}.tar.bz2"
28 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
29
30 sminclude mtools
31
32 SRC_URI=( mirror://${PNAME}/${SRCFILE} )
33
34 # fake up2date; using svn checkouts
35 UP2DATE="echo ${PVER}"
36
37 src_prepare()
38 {
39 munpack ${SRCFILE} || die
40 cd ${SRCDIR}
41
42 # make it use pic always since we don't need textrels
43 sed -i "s:LIBOBJFLAGS=\"\":LIBOBJFLAGS=\'\$\(PIC\)\':" configure || die
44 }
45
46 src_compile()
47 {
48 cd ${SRCDIR}
49
50 export CFLAGS="${CFLAGS} -fomit-frame-pointer"
51 export CXXFLAGS="${CXXFLAGS} -fomit-frame-pointer"
52
53 # fix textrels, pic may break on x86 without that
54 # add "-DBROKEN_RELOCATIONS" or "-fPIC -DPIC" to CFLAGS
55 export CFLAGS="${CFLAGS} -DBROKEN_RELOCATIONS"
56 export CXXFLAGS="${CXXFLAGS} -DBROKEN_RELOCATIONS"
57
58 # mconfigure does not work
59 ./configure \
60 --prefix=/usr \
61 --libdir=/usr/$(mlibdir) \
62 --shlibdir=/usr/$(mlibdir) \
63 --mandir=/usr/share/man \
64 --enable-static \
65 --enable-shared \
66 --disable-altivec \
67 --disable-debug \
68 --disable-libdc1394 \
69 --enable-libmp3lame \
70 --enable-pthreads \
71 --enable-libxvid \
72 --enable-libvorbis \
73 --enable-libx264 \
74 --enable-libfaac \
75 --enable-libtheora \
76 --enable-gpl \
77 --enable-postproc \
78 --enable-nonfree \
79 --disable-stripping \
80 --disable-mmx \
81 || die
82
83 mmake || die
84
85 # build qt-faststart too
86 mmake -C tools qt-faststart || die
87 }
88
89 src_install()
90 {
91 cd ${SRCDIR}
92
93 mmake LDCONFIG=true DESTDIR=${BINDIR} install || die
94
95 # install qt-faststart
96 minstallexec tools/qt-faststart || die
97
98 minstalldocs Changelog README INSTALL doc/* || die
99 }