Contents of /trunk/extras/ffmpeg/ffmpeg-1.0.7-r1.smage2
Parent Directory | Revision Log
Revision 17375 -
(show annotations)
(download)
Mon Jun 10 13:48:53 2013 UTC (11 years ago) by niro
File size: 1937 byte(s)
Mon Jun 10 13:48:53 2013 UTC (11 years ago) by niro
File size: 1937 byte(s)
auto added: ver bump to 1.0.7-r1
1 | # $Id$ |
2 | |
3 | PNAME="ffmpeg" |
4 | PVER="1.0.7" |
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 | # exclude snapshots |
40 | UP2EXCLUDE="snapshot" |
41 | UP2DATE="updatecmd 'http://ffmpeg.org/releases/?C=M;O=A' | lasttarball" |
42 | |
43 | src_compile() |
44 | { |
45 | # mconfigure does not work |
46 | all-abis ./configure \ |
47 | --cc="$(mabi-cc)" \ |
48 | --cxx="$(mabi-cxx)" \ |
49 | --optflags="$(mabi-cflags)" \ |
50 | --extra-cflags="$(mabi-cflags)" \ |
51 | --extra-cxxflags="$(mabi-cxxflags)" \ |
52 | --prefix=/usr \ |
53 | --libdir=/usr/'$(mlibdir)' \ |
54 | --shlibdir=/usr/'$(mlibdir)' \ |
55 | --mandir=/usr/share/man \ |
56 | --enable-static \ |
57 | --enable-shared \ |
58 | --disable-altivec \ |
59 | --disable-debug \ |
60 | --disable-libdc1394 \ |
61 | --enable-libmp3lame \ |
62 | --enable-pthreads \ |
63 | --enable-libxvid \ |
64 | --enable-libvorbis \ |
65 | --enable-libx264 \ |
66 | --enable-libfaac \ |
67 | --enable-libtheora \ |
68 | --enable-gpl \ |
69 | --enable-version3 \ |
70 | --enable-postproc \ |
71 | --enable-nonfree \ |
72 | --enable-x11grab \ |
73 | --enable-pic \ |
74 | $(MULTILIB_VERBOSE=false only-m32 echo "--disable-asm") \ |
75 | || die |
76 | |
77 | mmake V=1 || die |
78 | |
79 | # build qt-faststart too |
80 | mmake -C tools qt-faststart || die |
81 | } |
82 | |
83 | src_install() |
84 | { |
85 | mmake LDCONFIG=true DESTDIR=${BINDIR} install || die |
86 | |
87 | # install qt-faststart |
88 | all-abis minstallexec tools/qt-faststart || die |
89 | |
90 | minstalldocs Changelog README INSTALL doc/* || die |
91 | } |