Magellan Linux

Contents of /trunk/extras/ffmpeg/ffmpeg-0.10-r3.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 11824 - (show annotations) (download)
Wed Apr 18 17:44:08 2012 UTC (12 years, 1 month ago) by niro
File size: 1889 byte(s)
-multilib fixups
1 # $Id$
2
3 PNAME="ffmpeg"
4 PVER="0.10"
5 PBUILD="r3"
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-201202
22 >= media-libs/libtheora-1.1.1"
23
24 SDEPEND=">= sys-apps/sed-4"
25
26 SRCFILE="${PNAME}-${PVER}.tar.bz2"
27 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
28
29 sminclude mtools mbuild multilib
30 msetfeature "!check"
31
32 SRC_URI=(
33 http://ffmpeg.org/releases/${SRCFILE}
34 mirror://${PNAME}/${SRCFILE}
35 )
36
37 # fake up2date; using svn checkouts
38 UP2DATE="echo ${PVER}"
39
40 src_compile()
41 {
42 export CFLAGS="${CFLAGS} -fomit-frame-pointer"
43 export CXXFLAGS="${CXXFLAGS} -fomit-frame-pointer"
44
45 # fix textrels, pic may break on x86 without that
46 # add "-DBROKEN_RELOCATIONS" or "-fPIC -DPIC" to CFLAGS
47 export CFLAGS="${CFLAGS} -DBROKEN_RELOCATIONS"
48 export CXXFLAGS="${CXXFLAGS} -DBROKEN_RELOCATIONS"
49
50 # mconfigure does not work
51 all-abis ./configure \
52 --prefix=/usr \
53 --libdir=/usr/'$(mlibdir)' \
54 --shlibdir=/usr/'$(mlibdir)' \
55 --mandir=/usr/share/man \
56 --enable-static \
57 --enable-shared \
58 --disable-altivec \
59 --disable-debug \
60 --disable-libdc1394 \
61 --enable-libmp3lame \
62 --enable-pthreads \
63 --enable-libxvid \
64 --enable-libvorbis \
65 --enable-libx264 \
66 --enable-libfaac \
67 --enable-libtheora \
68 --enable-gpl \
69 --enable-postproc \
70 --enable-nonfree \
71 --disable-mmx \
72 || die
73
74 mmake || die
75
76 # build qt-faststart too
77 mmake -C tools qt-faststart || die
78 }
79
80 src_install()
81 {
82 mmake LDCONFIG=true DESTDIR=${BINDIR} install || die
83
84 # install qt-faststart
85 all-abis minstallexec tools/qt-faststart || die
86
87 minstalldocs Changelog README INSTALL doc/* || die
88 }