Magellan Linux

Contents of /branches/R11-stable/extras/ffmpeg/ffmpeg-1.2.1-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 17919 - (show annotations) (download)
Thu Jun 27 06:29:03 2013 UTC (10 years, 10 months ago) by niro
File size: 1884 byte(s)
-release branches/R11-stable
1 # $Id$
2
3 PNAME="ffmpeg"
4 PVER="1.2.1"
5 PBUILD="r2"
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.4
14 >= media-libs/libsdl-1.2.14
15 >= media-sound/lame-3.98
16 >= media-libs/libogg-1.2
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-20130610
22 >= media-libs/libtheora-1.1.1
23 >= x11-libs/libva-1.0.15"
24
25 SDEPEND=">= virtual/sed"
26
27 SRCFILE="${PNAME}-${PVER}.tar.bz2"
28 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
29
30 EMUL_LINUX_32=true
31 sminclude mtools mbuild multilib
32 msetfeature "!check"
33
34 SRC_URI=(
35 http://ffmpeg.org/releases/${SRCFILE}
36 mirror://${PNAME}/${SRCFILE}
37 )
38
39 # fake up2date; using svn checkouts
40 UP2DATE="echo ${PVER}"
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-gpl \
68 --enable-version3 \
69 --enable-postproc \
70 --enable-nonfree \
71 --enable-x11grab \
72 --enable-pic \
73 $(MULTILIB_VERBOSE=false only-m32 echo "--disable-asm") \
74 || die
75
76 mmake V=1 || die
77
78 # build qt-faststart too
79 mmake -C tools qt-faststart || die
80 }
81
82 src_install()
83 {
84 mmake LDCONFIG=true DESTDIR=${BINDIR} install || die
85
86 # install qt-faststart
87 all-abis minstallexec tools/qt-faststart || die
88
89 minstalldocs Changelog README INSTALL doc/* || die
90 }