Magellan Linux

Contents of /branches/R11-stable/extras/ffmpeg/ffmpeg-2.2.4-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 21714 - (show annotations) (download)
Mon Jul 21 09:37:08 2014 UTC (9 years, 9 months ago) by niro
File size: 1980 byte(s)
-release branches/R11-stable
1 # $Id$
2
3 PNAME="ffmpeg"
4 PVER="2.2.4"
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.5
14 >= media-libs/libsdl-1.2.15
15 >= media-sound/lame-3.99
16 >= media-libs/libogg-1.3
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-201403
22 >= media-libs/libtheora-1.1.1
23 >= x11-libs/libva-1.3
24 >= x11-libs/libvdpau-0.7"
25
26 SDEPEND=">= virtual/sed"
27
28 SRCFILE="${PNAME}-${PVER}.tar.bz2"
29 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
30
31 EMUL_LINUX_32=true
32 sminclude mtools mbuild multilib
33 msetfeature "!check"
34
35 SRC_URI=(
36 http://ffmpeg.org/releases/${SRCFILE}
37 mirror://${PNAME}/${SRCFILE}
38 )
39
40 UP2DATE="updatecmd http://www.ffmpeg.org/download.html | grep '${PNAME}-[0-9]' | firsttarball"
41
42 src_compile()
43 {
44 # mconfigure does not work
45 all-abis ./configure \
46 --cc="\"$(mabi-cc)\"" \
47 --cxx="\"$(mabi-cxx)\"" \
48 --optflags="\"$(mabi-cflags)\"" \
49 --extra-cflags="\"$(mabi-cflags)\"" \
50 --extra-cxxflags="\"$(mabi-cxxflags)\"" \
51 --prefix=/usr \
52 --libdir=/usr/'$(mlibdir)' \
53 --shlibdir=/usr/'$(mlibdir)' \
54 --mandir=/usr/share/man \
55 --enable-static \
56 --enable-shared \
57 --disable-altivec \
58 --disable-debug \
59 --disable-libdc1394 \
60 --enable-libmp3lame \
61 --enable-pthreads \
62 --enable-libxvid \
63 --enable-libvorbis \
64 --enable-libx264 \
65 --enable-libfaac \
66 --enable-libtheora \
67 --enable-vdpau \
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 }