Contents of /trunk/extras/ffmpeg/ffmpeg-1.0-r1.smage2
Parent Directory | Revision Log
Revision 13969 -
(show annotations)
(download)
Thu Nov 1 22:26:15 2012 UTC (11 years, 7 months ago) by niro
File size: 2084 byte(s)
Thu Nov 1 22:26:15 2012 UTC (11 years, 7 months ago) by niro
File size: 2084 byte(s)
-enable EMUL_LINUX_32
1 | # $Id$ |
2 | |
3 | PNAME="ffmpeg" |
4 | PVER="1.0" |
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-201211 |
22 | >= media-libs/libtheora-1.1.1 |
23 | >= x11-libs/libva-1.0.15" |
24 | |
25 | SDEPEND=">= virtual/sed" |
26 | |
27 | SRCFILE="${PNAME}-${PVER}.tar.bz2" |
28 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
29 | |
30 | EMUL_LINUX_32=true |
31 | sminclude mtools mbuild multilib |
32 | msetfeature "!check" |
33 | |
34 | SRC_URI=( |
35 | http://ffmpeg.org/releases/${SRCFILE} |
36 | mirror://${PNAME}/${SRCFILE} |
37 | ) |
38 | |
39 | # fake up2date; using svn checkouts |
40 | UP2DATE="echo ${PVER}" |
41 | |
42 | src_compile() |
43 | { |
44 | export CFLAGS="${CFLAGS} -fomit-frame-pointer" |
45 | export CXXFLAGS="${CXXFLAGS} -fomit-frame-pointer" |
46 | |
47 | # fix textrels, pic may break on x86 without that |
48 | # add "-DBROKEN_RELOCATIONS" or "-fPIC -DPIC" to CFLAGS |
49 | export CFLAGS="${CFLAGS} -DBROKEN_RELOCATIONS" |
50 | export CXXFLAGS="${CXXFLAGS} -DBROKEN_RELOCATIONS" |
51 | |
52 | # mconfigure does not work |
53 | all-abis ./configure \ |
54 | --cc="$(mabi-cc)" \ |
55 | --cxx="$(mabi-cxx)" \ |
56 | --optflags="$(mabi-cflags)" \ |
57 | --extra-cflags="$(mabi-cflags)" \ |
58 | --extra-cxxflags="$(mabi-cxxflags)" \ |
59 | --prefix=/usr \ |
60 | --libdir=/usr/'$(mlibdir)' \ |
61 | --shlibdir=/usr/'$(mlibdir)' \ |
62 | --mandir=/usr/share/man \ |
63 | --enable-static \ |
64 | --enable-shared \ |
65 | --disable-altivec \ |
66 | --disable-debug \ |
67 | --disable-libdc1394 \ |
68 | --enable-libmp3lame \ |
69 | --enable-pthreads \ |
70 | --enable-libxvid \ |
71 | --enable-libvorbis \ |
72 | --enable-libx264 \ |
73 | --enable-libfaac \ |
74 | --enable-libtheora \ |
75 | --enable-gpl \ |
76 | --enable-postproc \ |
77 | --enable-nonfree \ |
78 | --disable-mmx \ |
79 | || die |
80 | |
81 | mmake || die |
82 | |
83 | # build qt-faststart too |
84 | mmake -C tools qt-faststart || die |
85 | } |
86 | |
87 | src_install() |
88 | { |
89 | mmake LDCONFIG=true DESTDIR=${BINDIR} install || die |
90 | |
91 | # install qt-faststart |
92 | all-abis minstallexec tools/qt-faststart || die |
93 | |
94 | minstalldocs Changelog README INSTALL doc/* || die |
95 | } |