Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 31382 - (show annotations) (download)
Wed Jun 27 10:42:34 2018 UTC (5 years, 10 months ago) by niro
File size: 2632 byte(s)
-no ffserver man page included anymore
1 # $Id$
2
3 PNAME="ffmpeg"
4 PVER="4.0.1"
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.6
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.14
22 >= media-libs/libbluray-1.0
23 >= media-libs/libogg-1.3
24 >= media-libs/libvorbis-1.3
25 >= media-sound/libpulse-10
26 >= media-libs/libv4l-1.14
27 >= media-libs/libvpx-1.7
28 >= media-libs/speex-1.2
29 >= media-libs/xvid-1.3
30 >= sys-libs/zlib-1.2.5
31 >= media-libs/x264-201806
32 >= media-libs/x265-2.8
33 >= media-libs/libtheora-1.1.1
34 >= x11-libs/libva-1.8
35 >= x11-libs/libvdpau-1.1"
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 multilib mbuild
44 msetfeature "!check"
45
46 SRC_URI=(
47 https://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-libspeex \
83 --enable-libtheora \
84 --enable-libvpx \
85 --enable-vdpau \
86 --enable-gpl \
87 --enable-version3 \
88 --enable-postproc \
89 --enable-swresample \
90 --enable-nonfree \
91 --enable-libxcb \
92 --enable-libxcb-shm \
93 --enable-libxcb-xfixes \
94 --enable-libxcb-shape \
95 --enable-pic \
96 --enable-runtime-cpudetect \
97 $(MULTILIB_VERBOSE=false only-m32 echo "--disable-asm") \
98 || die
99
100 mmake V=1 || die
101
102 # build qt-faststart too
103 mmake -C tools qt-faststart || die
104
105 # build docs
106 mmake doc/ffmpeg.1 doc/ffplay.1 || die
107 }
108
109 src_install()
110 {
111 mmake LDCONFIG=true DESTDIR=${BINDIR} install install-man || die
112
113 # install qt-faststart
114 all-abis minstallexec tools/qt-faststart || die
115
116 minstalldocs Changelog README INSTALL doc/* || die
117 }