wok-4.x view 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
line source
1 # SliTaz package receipt.
3 PACKAGE="ffmpeg-svn"
4 VERSION="22914"
5 CATEGORY="multimedia"
6 SHORT_DESC="Record, convert and stream audio and video."
7 MAINTAINER="jozee@slitaz.org"
8 WEB_SITE="http://ffmpeg.org/"
9 DEPENDS="bzlib freetype imlib2 alsa-lib jack-audio-connection-kit zlib"
10 BUILD_DEPENDS="subversion imlib2-dev freetype-dev libsdl-dev zlib-dev coreutils-file-format coreutils-file-special"
11 PROVIDE="ffmpeg"
12 SUGGESTED="ffplay"
13 TAGS="audio video convert stream"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 mkdir -p $src 2> /dev/null
19 cd $src
20 TARBALL=$SOURCES_REPOSITORY/$PACKAGE-$VERSION.tar.gz
21 if [ -f ffmpeg/configure ]; then
22 true
23 elif [ -f $TARBALL ]; then
24 tar xzf $TARBALL
25 else
26 svn checkout -r 'HEAD' svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg &&
27 tar czf $TARBALL ffmpeg
28 fi
30 cd ffmpeg
31 sed -i 's/mktemp -u/mktemp/' configure
33 ./configure \
34 --prefix=/usr \
35 --enable-gpl \
36 --arch=i486 \
37 --cpu=i486 \
38 --enable-shared \
39 --enable-small \
40 --enable-pthreads \
41 --enable-postproc \
42 --disable-mmx \
43 --disable-mmx2 \
44 --disable-ssse3 &&
45 make &&
46 make DESTDIR=$PWD/../_pkg install
47 }
49 # Rules to gen a SliTaz package suitable for Tazpkg.
50 genpkg_rules()
51 {
52 mkdir -p $fs/usr/lib
53 cp -a $_pkg/usr/lib/*so* $fs/usr/lib
54 cp -a $_pkg/usr/bin $fs/usr
55 # ffplay with it SDL dep go in a splited package
56 rm $fs/usr/bin/ffplay
57 }