Magellan Linux

Contents of /trunk/extras/ffmpeg/ffmpeg-20080531-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (show annotations) (download)
Fri Oct 10 13:29:42 2008 UTC (15 years, 8 months ago) by niro
File size: 2283 byte(s)
import repo
1 # $Header: /magellan-cvs/smage/ffmpeg/ffmpeg-20080531-r2.smage2,v 1.1 2008/08/16 08:49:30 niro Exp $
2
3 PNAME="ffmpeg"
4 PVER="20080531"
5 PBUILD="r2"
6
7 PCATEGORIE="media-video"
8 STATE="unstable"
9
10 DESCRIPTION="ffmpeg is a complete audio and video stream library."
11 HOMEPAGE="http://ffmpeg.mplayerhq.hu/"
12
13 DEPEND=">= media-libs/imlib2-1.4
14 >= media-libs/freetype-2
15 >= media-libs/libsdl-1.2.13
16 >= media-sound/lame-3.97
17 >= media-libs/libogg-1.1
18 >= media-libs/libvorbis-1.1
19 >= media-libs/libfaad2-2.6
20 >= media-libs/libfaac-1.26
21 >= media-libs/xvid-1.1.3
22 >= sys-libs/zlib-1.2.3
23 >= media-libs/x264-2008
24 >= media-libs/libtheora-0.9"
25
26 SDEPEND=">= sys-apps/sed-4"
27
28 SRCFILE="${PNAME}-${PVER}.tar.bz2"
29 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
30
31 SRC_URI=(
32 mirror://${PNAME}/${SRCFILE}
33 mirror://${PNAME}/${PNAME}-20060904-gcc41.patch
34 mirror://${PNAME}/${PNAME}-${PVER}-libdir.patch
35 )
36
37 src_prepare()
38 {
39 munpack ${SRCFILE} || die
40 cd ${SRCDIR}
41
42 # fixes some issues with gcc-4.1
43 mpatch ${PNAME}-20060904-gcc41.patch || die
44
45 # .pc files contain wrong libdir path
46 mpatch ${PNAME}-${PVER}-libdir.patch || die
47
48 # make it use pic always since we don't need textrels
49 sed -i "s:LIBOBJFLAGS=\"\":LIBOBJFLAGS=\'\$\(PIC\)\':" configure || die
50 }
51
52 src_compile()
53 {
54 cd ${SRCDIR}
55
56 export CFLAGS="${CFLAGS} -fomit-frame-pointer"
57 export CXXFLAGS="${CXXFLAGS} -fomit-frame-pointer"
58
59 # fix textrels, pic may break on x86 without that
60 # add "-DBROKEN_RELOCATIONS" or "-fPIC -DPIC" to CFLAGS
61 export CFLAGS="${CFLAGS} -DBROKEN_RELOCATIONS"
62 export CXXFLAGS="${CXXFLAGS} -DBROKEN_RELOCATIONS"
63
64 # mconfigure does not work
65 ./configure \
66 --prefix=/usr \
67 --libdir=/usr/$(mlibdir) \
68 --shlibdir=/usr/$(mlibdir) \
69 --mandir=/usr/share/man \
70 --enable-static \
71 --enable-shared \
72 --disable-altivec \
73 --disable-debug \
74 --disable-libdc1394 \
75 --enable-libmp3lame \
76 --enable-pthreads \
77 --enable-libxvid \
78 --enable-libvorbis \
79 --enable-libx264 \
80 --enable-libfaad \
81 --enable-libfaac \
82 --enable-libtheora \
83 --enable-gpl \
84 --enable-postproc \
85 --disable-stripping \
86 --disable-mmx \
87 --enable-swscale \
88 || die
89
90 mmake -j1 depend || die
91 mmake -j1 || die
92 }
93
94 src_install()
95 {
96 mmake -j1 LDCONFIG=true DESTDIR=${BINDIR} install || die
97 minstalldocs Changelog README INSTALL doc/* || die
98 }

Properties

Name Value
svn:keywords Id