Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 22313 - (show annotations) (download)
Fri Sep 19 13:30:02 2014 UTC (9 years, 9 months ago) by niro
File size: 2581 byte(s)
auto added: ver bump to 2.4-r1
1 # $Id$
2
3 PNAME="ffmpeg"
4 PVER="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=">= app-arch/bzip2-1.0.6
13 >= app-crypt/gnutls-3.3
14 >= media-libs/alsa-lib-1.0.28
15 >= media-libs/imlib2-1.4
16 >= media-libs/freetype-2.5
17 >= media-libs/fontconfig-2.11
18 >= media-libs/libsdl-1.2.15
19 >= media-sound/lame-3.99
20 >= media-libs/libass-0.11
21 >= media-libs/libbluray-0.6
22 >= media-libs/libogg-1.3
23 >= media-libs/libvorbis-1.3
24 >= media-sound/libpulse-0.5
25 >= media-libs/libfaac-1.28
26 >= media-libs/libv4l-1.4
27 >= media-libs/libvpx-0.3
28 >= media-libs/speex-1.2
29 >= media-libs/xvid-1.3
30 >= sys-libs/zlib-1.2.5
31 >= media-libs/x264-201409
32 >= media-libs/x265-1.3
33 >= media-libs/libtheora-1.1.1
34 >= x11-libs/libva-1.3
35 >= x11-libs/libvdpau-0.8"
36
37 SDEPEND=">= virtual/sed"
38
39 SRCFILE="${PNAME}-${PVER}.tar.bz2"
40 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
41
42 EMUL_LINUX_32=true
43 sminclude mtools mbuild multilib
44 msetfeature "!check"
45
46 SRC_URI=(
47 http://ffmpeg.org/releases/${SRCFILE}
48 mirror://${PNAME}/${SRCFILE}
49 )
50
51 UP2DATE="updatecmd http://www.ffmpeg.org/download.html | grep '${PNAME}-[0-9]' | firsttarball"
52
53 src_compile()
54 {
55 # mconfigure does not work
56 all-abis ./configure \
57 --cc="\"$(mabi-cc)\"" \
58 --cxx="\"$(mabi-cxx)\"" \
59 --optflags="\"$(mabi-cflags)\"" \
60 --extra-cflags="\"$(mabi-cflags)\"" \
61 --extra-cxxflags="\"$(mabi-cxxflags)\"" \
62 --prefix=/usr \
63 --libdir=/usr/'$(mlibdir)' \
64 --shlibdir=/usr/'$(mlibdir)' \
65 --mandir=/usr/share/man \
66 --disable-static \
67 --enable-shared \
68 --disable-altivec \
69 --disable-debug \
70 --disable-libdc1394 \
71 --enable-gnutls \
72 --enable-libass \
73 --enable-libbluray \
74 --enable-libfreetype \
75 --enable-libmp3lame \
76 --enable-pthreads \
77 --enable-libpulse \
78 --enable-libxvid \
79 --enable-libvorbis \
80 --enable-libx264 \
81 --enable-libx265 \
82 --enable-libfaac \
83 --enable-libspeex \
84 --enable-libtheora \
85 --enable-libvpx \
86 --enable-vdpau \
87 --enable-gpl \
88 --enable-version3 \
89 --enable-postproc \
90 --enable-swresample \
91 --enable-nonfree \
92 --enable-x11grab \
93 --enable-pic \
94 --enable-runtime-cpudetect \
95 $(MULTILIB_VERBOSE=false only-m32 echo "--disable-asm") \
96 || die
97
98 mmake V=1 || die
99
100 # build qt-faststart too
101 mmake -C tools qt-faststart || die
102
103 # build docs
104 mmake doc/ffmpeg.1 doc/ffplay.1 doc/ffserver.1 || die
105 }
106
107 src_install()
108 {
109 mmake LDCONFIG=true DESTDIR=${BINDIR} install install-man || die
110
111 # install qt-faststart
112 all-abis minstallexec tools/qt-faststart || die
113
114 minstalldocs Changelog README INSTALL doc/* || die
115 }