Magellan Linux

Annotation of /trunk/core/ffmpeg/ffmpeg-20091021-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4171 - (hide annotations) (download)
Sun Nov 29 22:59:36 2009 UTC (14 years, 6 months ago) by niro
File size: 1969 byte(s)
-fixed src_install
1 niro 4170 # $Id$
2    
3     PNAME="ffmpeg"
4     PVER="20091021"
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.14
16     >= media-sound/lame-3.98
17     >= media-libs/libogg-1.1
18     >= media-libs/libvorbis-1.2
19     >= media-libs/libfaad2-2.7
20     >= media-libs/libfaac-1.28
21     >= media-libs/xvid-1.2
22     >= sys-libs/zlib-1.2.3
23     >= media-libs/x264-200911
24     >= media-libs/libtheora-1.1.1"
25    
26     SDEPEND=">= sys-apps/sed-4"
27    
28     SRCFILE="${PNAME}-${PVER}.tar.bz2"
29     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
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-libfaad \
74     --enable-libfaac \
75     --enable-libtheora \
76     --enable-gpl \
77     --enable-postproc \
78     --enable-nonfree \
79     --disable-stripping \
80     --disable-mmx \
81     || die
82    
83     mmake || die
84     }
85    
86     src_install()
87     {
88 niro 4171 cd ${SRCDIR}
89    
90 niro 4170 mmake LDCONFIG=true DESTDIR=${BINDIR} install || die
91     minstalldocs Changelog README INSTALL doc/* || die
92     }

Properties

Name Value
svn:keywords Id