wok-next annotate ffmpeg-svn/receipt @ rev 5305
Add ffmpeg-svn
author | Rohit Joshi <jozee@slitaz.org> |
---|---|
date | Mon Apr 19 13:27:45 2010 -0400 (2010-04-19) |
parents | |
children | 83e2b2ddf023 |
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 |
jozee@5305 | 20 [ -f ffmpeg/configure ] || svn checkout -r 'HEAD' \ |
jozee@5305 | 21 svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg |
jozee@5305 | 22 |
jozee@5305 | 23 cd ffmpeg |
jozee@5305 | 24 |
jozee@5305 | 25 ./configure \ |
jozee@5305 | 26 --prefix=/usr \ |
jozee@5305 | 27 --enable-gpl \ |
jozee@5305 | 28 --arch=i486 \ |
jozee@5305 | 29 --cpu=i486 \ |
jozee@5305 | 30 --enable-shared \ |
jozee@5305 | 31 --enable-small \ |
jozee@5305 | 32 --enable-pthreads \ |
jozee@5305 | 33 --enable-postproc \ |
jozee@5305 | 34 --disable-mmx \ |
jozee@5305 | 35 --disable-mmx2 \ |
jozee@5305 | 36 --disable-ssse3 && |
jozee@5305 | 37 make && |
jozee@5305 | 38 make DESTDIR=$PWD/../_pkg install |
jozee@5305 | 39 } |
jozee@5305 | 40 |
jozee@5305 | 41 # Rules to gen a SliTaz package suitable for Tazpkg. |
jozee@5305 | 42 genpkg_rules() |
jozee@5305 | 43 { |
jozee@5305 | 44 mkdir -p $fs/usr/lib |
jozee@5305 | 45 cp -a $_pkg/usr/lib/*so* $fs/usr/lib |
jozee@5305 | 46 cp -a $_pkg/usr/bin $fs/usr |
jozee@5305 | 47 # ffplay with it SDL dep go in a splited package |
jozee@5305 | 48 rm $fs/usr/bin/ffplay |
jozee@5305 | 49 } |