Magellan Linux

Contents of /branches/magellan-next/core/ffmpeg/ffmpeg-20110728-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8710 - (show annotations) (download)
Wed Jul 27 23:40:58 2011 UTC (12 years, 9 months ago) by niro
File size: 2019 byte(s)
-fixed configure opts
1 # $Id$
2
3 PNAME="ffmpeg"
4 PVER="20110728"
5 PBUILD="r1"
6
7 PCATEGORIE="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-201107
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
30
31 SRC_URI=( mirror://${PNAME}/${SRCFILE} )
32
33 # fake up2date; using svn checkouts
34 UP2DATE="echo ${PVER}"
35
36 src_prepare()
37 {
38 munpack ${SRCFILE} || die
39 cd ${SRCDIR}
40
41 # make it use pic always since we don't need textrels
42 sed -i "s:LIBOBJFLAGS=\"\":LIBOBJFLAGS=\'\$\(PIC\)\':" configure || die
43 }
44
45 src_compile()
46 {
47 cd ${SRCDIR}
48
49 export CFLAGS="${CFLAGS} -fomit-frame-pointer"
50 export CXXFLAGS="${CXXFLAGS} -fomit-frame-pointer"
51
52 # fix textrels, pic may break on x86 without that
53 # add "-DBROKEN_RELOCATIONS" or "-fPIC -DPIC" to CFLAGS
54 export CFLAGS="${CFLAGS} -DBROKEN_RELOCATIONS"
55 export CXXFLAGS="${CXXFLAGS} -DBROKEN_RELOCATIONS"
56
57 # mconfigure does not work
58 ./configure \
59 --prefix=/usr \
60 --libdir=/usr/$(mlibdir) \
61 --shlibdir=/usr/$(mlibdir) \
62 --mandir=/usr/share/man \
63 --enable-static \
64 --enable-shared \
65 --disable-altivec \
66 --disable-debug \
67 --disable-libdc1394 \
68 --enable-libmp3lame \
69 --enable-pthreads \
70 --enable-libxvid \
71 --enable-libvorbis \
72 --enable-libx264 \
73 --enable-libfaac \
74 --enable-libtheora \
75 --enable-gpl \
76 --enable-postproc \
77 --enable-nonfree \
78 --disable-mmx \
79 || die
80
81 mmake || die
82
83 # build qt-faststart too
84 mmake -C tools qt-faststart || die
85 }
86
87 src_install()
88 {
89 cd ${SRCDIR}
90
91 mmake LDCONFIG=true DESTDIR=${BINDIR} install || die
92
93 # install qt-faststart
94 minstallexec tools/qt-faststart || die
95
96 minstalldocs Changelog README INSTALL doc/* || die
97 }