wok annotate ffmpeg-svn/receipt @ rev 5569

Up: ffmpeg-svn; mktemp patch to make it busybox compatible and drop coreutils-* build_depends
author Rohit Joshi <jozee@slitaz.org>
date Fri May 14 10:25:33 2010 -0400 (2010-05-14)
parents 865c0b9402ab
children 60eee2a3b52a
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
jozee@5305 34 ./configure \
jozee@5305 35 --prefix=/usr \
jozee@5305 36 --enable-gpl \
jozee@5305 37 --arch=i486 \
jozee@5305 38 --cpu=i486 \
jozee@5305 39 --enable-shared \
jozee@5305 40 --enable-small \
jozee@5305 41 --enable-pthreads \
jozee@5305 42 --enable-postproc \
jozee@5305 43 --disable-mmx \
jozee@5305 44 --disable-mmx2 \
jozee@5305 45 --disable-ssse3 &&
jozee@5305 46 make &&
jozee@5305 47 make DESTDIR=$PWD/../_pkg install
jozee@5305 48 }
jozee@5305 49
jozee@5305 50 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@5305 51 genpkg_rules()
jozee@5305 52 {
jozee@5305 53 mkdir -p $fs/usr/lib
jozee@5305 54 cp -a $_pkg/usr/lib/*so* $fs/usr/lib
jozee@5305 55 cp -a $_pkg/usr/bin $fs/usr
jozee@5305 56 # ffplay with it SDL dep go in a splited package
jozee@5305 57 rm $fs/usr/bin/ffplay
jozee@5305 58 }