Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8709 - (hide annotations) (download)
Wed Jul 27 23:37:48 2011 UTC (12 years, 10 months ago) by niro
File size: 2043 byte(s)
auto added: ver bump to 20110728-r1
1 niro 8709 # $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-stripping \
79     --disable-mmx \
80     || die
81    
82     mmake || die
83    
84     # build qt-faststart too
85     mmake -C tools qt-faststart || die
86     }
87    
88     src_install()
89     {
90     cd ${SRCDIR}
91    
92     mmake LDCONFIG=true DESTDIR=${BINDIR} install || die
93    
94     # install qt-faststart
95     minstallexec tools/qt-faststart || die
96    
97     minstalldocs Changelog README INSTALL doc/* || die
98     }