wok-next annotate ffmpeg-svn/receipt @ rev 8552

imported patch get/ffmpeg-svn
author Antoine Bodin <gokhlayeh@slitaz.org>
date Sun Feb 13 22:57:56 2011 +0100 (2011-02-13)
parents 48b516d81cd5
children 809ffd3c9ff1
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"
gokhlayeh@8552 14 WGET_URL="subversion|svn://svn.ffmpeg.org/ffmpeg/trunk"
gokhlayeh@8552 15 BRANCH="$VERSION"
jozee@5305 16
jozee@5305 17 # Rules to configure and make the package.
jozee@5305 18 compile_rules()
jozee@5305 19 {
gokhlayeh@8552 20 cd $src
jozee@5569 21 # make busybox compatible or add coreutils-file-format coreutils-file-special in BUILD_DEPENDS if patch/configure fails
jozee@5569 22 patch -Np1 -i ../../stuff/$PACKAGE-$VERSION-mktemp.patch
jozee@5569 23
pascal@5913 24 sed -i 's/av_bswap/bswap_/' libswscale/*.c
pascal@5913 25
pascal@5903 26 # Fix configure for GCC 4.5.0
pascal@5903 27 sed -i 's/"\$@" >> \$logfile 2/$@ >> $logfile 2/' configure
jozee@5305 28 ./configure \
jozee@5305 29 --prefix=/usr \
jozee@5305 30 --enable-gpl \
jozee@5305 31 --arch=i486 \
jozee@5305 32 --cpu=i486 \
jozee@5305 33 --enable-shared \
jozee@5305 34 --enable-small \
jozee@5305 35 --enable-pthreads \
jozee@5305 36 --enable-postproc \
jozee@5305 37 --disable-mmx \
jozee@5305 38 --disable-mmx2 \
jozee@5305 39 --disable-ssse3 &&
jozee@5305 40 make &&
jozee@5305 41 make DESTDIR=$PWD/../_pkg install
jozee@5305 42 }
jozee@5305 43
jozee@5305 44 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@5305 45 genpkg_rules()
jozee@5305 46 {
jozee@5305 47 mkdir -p $fs/usr/lib
jozee@5305 48 cp -a $_pkg/usr/lib/*so* $fs/usr/lib
jozee@5305 49 cp -a $_pkg/usr/bin $fs/usr
jozee@5305 50 # ffplay with it SDL dep go in a splited package
jozee@5305 51 rm $fs/usr/bin/ffplay
jozee@5305 52 }