wok-6.x annotate ffmpeg-svn/receipt @ rev 7205

Up: yasm to 1.1.0.
author Christopher Rogers <slaxemulator@gmail.com>
date Tue Nov 09 16:19:19 2010 +0000 (2010-11-09)
parents 60eee2a3b52a
children 1f48fd1fd933
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@5913 34 sed -i 's/av_bswap/bswap_/' libswscale/*.c
pascal@5913 35
pascal@5903 36 # Fix configure for GCC 4.5.0
pascal@5903 37 sed -i 's/"\$@" >> \$logfile 2/$@ >> $logfile 2/' configure
jozee@5305 38 ./configure \
jozee@5305 39 --prefix=/usr \
jozee@5305 40 --enable-gpl \
jozee@5305 41 --arch=i486 \
jozee@5305 42 --cpu=i486 \
jozee@5305 43 --enable-shared \
jozee@5305 44 --enable-small \
jozee@5305 45 --enable-pthreads \
jozee@5305 46 --enable-postproc \
jozee@5305 47 --disable-mmx \
jozee@5305 48 --disable-mmx2 \
jozee@5305 49 --disable-ssse3 &&
jozee@5305 50 make &&
jozee@5305 51 make DESTDIR=$PWD/../_pkg install
jozee@5305 52 }
jozee@5305 53
jozee@5305 54 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@5305 55 genpkg_rules()
jozee@5305 56 {
jozee@5305 57 mkdir -p $fs/usr/lib
jozee@5305 58 cp -a $_pkg/usr/lib/*so* $fs/usr/lib
jozee@5305 59 cp -a $_pkg/usr/bin $fs/usr
jozee@5305 60 # ffplay with it SDL dep go in a splited package
jozee@5305 61 rm $fs/usr/bin/ffplay
jozee@5305 62 }