wok annotate ffmpeg-svn/receipt @ rev 5903

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