Magellan Linux

Annotation of /branches/R11-stable/extras/ffmpeg/ffmpeg-2.5.4-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


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