wok-next view ffmpeg-svn/receipt @ rev 8047
Up: sudo-pam and sudo to 1.7.4p6.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Thu Jan 20 14:07:40 2011 +0000 (2011-01-20) |
parents | 60eee2a3b52a |
children | 1f48fd1fd933 |
line source
1 # SliTaz package receipt.
3 PACKAGE="ffmpeg-svn"
4 VERSION="23117"
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 "
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 "$VERSION" svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg &&
27 tar czf $TARBALL ffmpeg
28 fi
30 cd ffmpeg
31 # make busybox compatible or add coreutils-file-format coreutils-file-special in BUILD_DEPENDS if patch/configure fails
32 patch -Np1 -i ../../stuff/$PACKAGE-$VERSION-mktemp.patch
34 sed -i 's/av_bswap/bswap_/' libswscale/*.c
36 # Fix configure for GCC 4.5.0
37 sed -i 's/"\$@" >> \$logfile 2/$@ >> $logfile 2/' configure
38 ./configure \
39 --prefix=/usr \
40 --enable-gpl \
41 --arch=i486 \
42 --cpu=i486 \
43 --enable-shared \
44 --enable-small \
45 --enable-pthreads \
46 --enable-postproc \
47 --disable-mmx \
48 --disable-mmx2 \
49 --disable-ssse3 &&
50 make &&
51 make DESTDIR=$PWD/../_pkg install
52 }
54 # Rules to gen a SliTaz package suitable for Tazpkg.
55 genpkg_rules()
56 {
57 mkdir -p $fs/usr/lib
58 cp -a $_pkg/usr/lib/*so* $fs/usr/lib
59 cp -a $_pkg/usr/bin $fs/usr
60 # ffplay with it SDL dep go in a splited package
61 rm $fs/usr/bin/ffplay
62 }