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