wok view ffmpeg-svn/receipt @ rev 5904

gst-plugins-good: fix for gcc 4.5.0
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jul 26 13:09:49 2010 +0200 (2010-07-26)
parents 103ce6814f1d
children 48b516d81cd5
line source
1 # SliTaz package receipt.
3 PACKAGE="ffmpeg-svn"
4 VERSION="23117"
5 CATEGORY="multimedia"
6 SHORT_DESC="Record, convert and stream audio and video."
7 MAINTAINER="jozee@slitaz.org"
8 WEB_SITE="http://ffmpeg.org/"
9 DEPENDS="bzlib freetype imlib2 alsa-lib jack-audio-connection-kit zlib"
10 BUILD_DEPENDS="subversion imlib2-dev freetype-dev libsdl-dev zlib-dev "
11 PROVIDE="ffmpeg"
12 SUGGESTED="ffplay"
13 TAGS="audio video convert stream"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 mkdir -p $src 2> /dev/null
19 cd $src
20 TARBALL=$SOURCES_REPOSITORY/$PACKAGE-$VERSION.tar.gz
21 if [ -f ffmpeg/configure ]; then
22 true
23 elif [ -f $TARBALL ]; then
24 tar xzf $TARBALL
25 else
26 svn checkout -r "$VERSION" svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg &&
27 tar czf $TARBALL ffmpeg
28 fi
30 cd ffmpeg
31 # make busybox compatible or add coreutils-file-format coreutils-file-special in BUILD_DEPENDS if patch/configure fails
32 patch -Np1 -i ../../stuff/$PACKAGE-$VERSION-mktemp.patch
34 # Fix configure for GCC 4.5.0
35 sed -i 's/"\$@" >> \$logfile 2/$@ >> $logfile 2/' configure
36 ./configure \
37 --prefix=/usr \
38 --enable-gpl \
39 --arch=i486 \
40 --cpu=i486 \
41 --enable-shared \
42 --enable-small \
43 --enable-pthreads \
44 --enable-postproc \
45 --disable-mmx \
46 --disable-mmx2 \
47 --disable-ssse3 &&
48 make &&
49 make DESTDIR=$PWD/../_pkg install
50 }
52 # Rules to gen a SliTaz package suitable for Tazpkg.
53 genpkg_rules()
54 {
55 mkdir -p $fs/usr/lib
56 cp -a $_pkg/usr/lib/*so* $fs/usr/lib
57 cp -a $_pkg/usr/bin $fs/usr
58 # ffplay with it SDL dep go in a splited package
59 rm $fs/usr/bin/ffplay
60 }