Magellan Linux

Contents of /trunk/extras/ffmpeg/ffmpeg-2.8.3-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 27206 - (show annotations) (download)
Thu Dec 3 11:48:32 2015 UTC (8 years, 6 months ago) by niro
File size: 2865 byte(s)
-fix ftbfs with newer libvpx
1 # $Id$
2
3 PNAME="ffmpeg"
4 PVER="2.8.3"
5 PBUILD="r1"
6
7 PCAT="media-video"
8
9 # rebuild required: mplayer gpac
10 DESCRIPTION="ffmpeg is a complete audio and video stream library."
11 HOMEPAGE="http://ffmpeg.org/"
12
13 DEPEND=">= app-arch/bzip2-1.0.6
14 >= app-crypt/gnutls-3.4
15 >= media-libs/alsa-lib-1.1
16 >= media-libs/imlib2-1.4
17 >= media-libs/freetype-2.6
18 >= media-libs/fontconfig-2.11
19 >= media-libs/libsdl-1.2.15
20 >= media-sound/lame-3.99
21 >= media-libs/libass-0.13
22 >= media-libs/libbluray-0.9
23 >= media-libs/libogg-1.3
24 >= media-libs/libvorbis-1.3
25 >= media-sound/libpulse-7.1
26 >= media-libs/libfaac-1.28
27 >= media-libs/libv4l-1.8
28 >= media-libs/libvpx-1.5
29 >= media-libs/speex-1.2
30 >= media-libs/xvid-1.3
31 >= sys-libs/zlib-1.2.5
32 >= media-libs/x264-201512
33 >= media-libs/x265-1.8
34 >= media-libs/libtheora-1.1.1
35 >= x11-libs/libva-1.6
36 >= x11-libs/libvdpau-1.1"
37
38 SDEPEND=">= virtual/sed"
39
40 SRCFILE="${PNAME}-${PVER}.tar.bz2"
41 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
42
43 EMUL_LINUX_32=true
44 sminclude mtools mbuild multilib
45 msetfeature "!check"
46
47 SRC_URI=(
48 http://ffmpeg.org/releases/${SRCFILE}
49 mirror://${PNAME}/${SRCFILE}
50 mirror://${PNAME}/${PNAME}-2.8.1-libvpxenc-remove-some-unused-ctrl-id-mappings.patch
51 )
52
53 UP2DATE="updatecmd http://www.ffmpeg.org/download.html | grep '${PNAME}-[0-9]' | firsttarball"
54
55 src_prepare()
56 {
57 munpack ${SRCFILE} || die
58
59 # fix ftbfs with newer libvpx
60 mpatch ${PNAME}-2.8.1-libvpxenc-remove-some-unused-ctrl-id-mappings.patch || die
61 }
62
63 src_compile()
64 {
65 # mconfigure does not work
66 all-abis ./configure \
67 --cc="\"$(mabi-cc)\"" \
68 --cxx="\"$(mabi-cxx)\"" \
69 --optflags="\"$(mabi-cflags)\"" \
70 --extra-cflags="\"$(mabi-cflags)\"" \
71 --extra-cxxflags="\"$(mabi-cxxflags)\"" \
72 --prefix=/usr \
73 --libdir=/usr/'$(mlibdir)' \
74 --shlibdir=/usr/'$(mlibdir)' \
75 --mandir=/usr/share/man \
76 --disable-static \
77 --enable-shared \
78 --disable-altivec \
79 --disable-debug \
80 --disable-libdc1394 \
81 --enable-gnutls \
82 --enable-libass \
83 --enable-libbluray \
84 --enable-libfreetype \
85 --enable-libmp3lame \
86 --enable-pthreads \
87 --enable-libpulse \
88 --enable-libxvid \
89 --enable-libvorbis \
90 --enable-libx264 \
91 --enable-libx265 \
92 --enable-libfaac \
93 --enable-libspeex \
94 --enable-libtheora \
95 --enable-libvpx \
96 --enable-vdpau \
97 --enable-gpl \
98 --enable-version3 \
99 --enable-postproc \
100 --enable-swresample \
101 --enable-nonfree \
102 --enable-x11grab \
103 --enable-pic \
104 --enable-runtime-cpudetect \
105 $(MULTILIB_VERBOSE=false only-m32 echo "--disable-asm") \
106 || die
107
108 mmake V=1 || die
109
110 # build qt-faststart too
111 mmake -C tools qt-faststart || die
112
113 # build docs
114 mmake doc/ffmpeg.1 doc/ffplay.1 doc/ffserver.1 || die
115 }
116
117 src_install()
118 {
119 mmake LDCONFIG=true DESTDIR=${BINDIR} install install-man || die
120
121 # install qt-faststart
122 all-abis minstallexec tools/qt-faststart || die
123
124 minstalldocs Changelog README INSTALL doc/* || die
125 }