wok-next annotate ffmpeg-svn/receipt @ rev 5568
ffmpeg-svn: busybox/mktemp compatible
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri May 14 16:01:18 2010 +0200 (2010-05-14) |
parents | a11358feced4 |
children | 103ce6814f1d |
rev | line source |
---|---|
jozee@5305 | 1 # SliTaz package receipt. |
jozee@5305 | 2 |
jozee@5305 | 3 PACKAGE="ffmpeg-svn" |
jozee@5305 | 4 VERSION="22914" |
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@5305 | 10 BUILD_DEPENDS="subversion imlib2-dev freetype-dev libsdl-dev zlib-dev coreutils-file-format coreutils-file-special" |
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 |
pascal@5563 | 26 svn checkout -r 'HEAD' svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg && |
pascal@5560 | 27 tar czf $TARBALL ffmpeg |
pascal@5560 | 28 fi |
jozee@5305 | 29 |
jozee@5305 | 30 cd ffmpeg |
pascal@5568 | 31 sed -i 's/mktemp -u/mktemp/' configure |
jozee@5305 | 32 |
jozee@5305 | 33 ./configure \ |
jozee@5305 | 34 --prefix=/usr \ |
jozee@5305 | 35 --enable-gpl \ |
jozee@5305 | 36 --arch=i486 \ |
jozee@5305 | 37 --cpu=i486 \ |
jozee@5305 | 38 --enable-shared \ |
jozee@5305 | 39 --enable-small \ |
jozee@5305 | 40 --enable-pthreads \ |
jozee@5305 | 41 --enable-postproc \ |
jozee@5305 | 42 --disable-mmx \ |
jozee@5305 | 43 --disable-mmx2 \ |
jozee@5305 | 44 --disable-ssse3 && |
jozee@5305 | 45 make && |
jozee@5305 | 46 make DESTDIR=$PWD/../_pkg install |
jozee@5305 | 47 } |
jozee@5305 | 48 |
jozee@5305 | 49 # Rules to gen a SliTaz package suitable for Tazpkg. |
jozee@5305 | 50 genpkg_rules() |
jozee@5305 | 51 { |
jozee@5305 | 52 mkdir -p $fs/usr/lib |
jozee@5305 | 53 cp -a $_pkg/usr/lib/*so* $fs/usr/lib |
jozee@5305 | 54 cp -a $_pkg/usr/bin $fs/usr |
jozee@5305 | 55 # ffplay with it SDL dep go in a splited package |
jozee@5305 | 56 rm $fs/usr/bin/ffplay |
jozee@5305 | 57 } |