wok annotate ffmpeg/receipt @ rev 2675

Up: ffmpeg and add compile options for small size
author Rohit Joshi <jozee@slitaz.org>
date Tue Apr 21 12:40:38 2009 +0000 (2009-04-21)
parents bcdadd8bfbfa
children c5f7c8ee2f96
rev   line source
pascal@1708 1 # SliTaz package receipt.
pascal@1708 2
pascal@1708 3 PACKAGE="ffmpeg"
jozee@2675 4 VERSION="18330"
pascal@1708 5 CATEGORY="multimedia"
pascal@1708 6 SHORT_DESC="Record, convert and stream audio and video."
pascal@1708 7 MAINTAINER="pascal.bellard@slitaz.org"
jozee@2675 8 WEB_SITE="http://ffmpeg.org/"
pascal@2515 9 DEPENDS="bzlib freetype libSDL libiconv imlib2"
pascal@1708 10 BUILD_DEPENDS="subversion"
pascal@1708 11
jozee@2675 12
jozee@2675 13
pascal@1708 14 # Référence externe extraite à la révision 27917.
jozee@2675 15 #
jozee@2675 16 # Révision 15261 extraite.
pascal@1708 17
pascal@1708 18 # Rules to configure and make the package.
pascal@1708 19 compile_rules()
pascal@1708 20 {
pascal@1708 21 mkdir $src 2> /dev/null
pascal@1708 22 cd $src
pascal@1708 23 [ -f ffmpeg/configure ] || svn checkout -r $VERSION \
pascal@1708 24 svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg
pascal@1708 25 cd ffmpeg
pascal@1708 26 sed -i 's/pr -. -t/cat/' configure
pascal@1708 27 ./configure --prefix=/usr --enable-gpl \
jozee@2675 28 --arch=i486 --cpu=i486 \
jozee@2675 29 --enable-shared --enable-small \
jozee@2675 30 --enable-postproc \
jozee@2675 31 --disable-mmx --disable-mmx2 --disable-ssse3 &&
pascal@1708 32 make &&
pascal@1708 33 make DESTDIR=$PWD/../_pkg install
pascal@1708 34 }
pascal@1708 35
pascal@1708 36 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1708 37 genpkg_rules()
pascal@1708 38 {
jozee@2675 39 mkdir -p $fs/usr/lib $fs/usr/bin
pascal@1708 40 cp -a $_pkg/usr/lib/vhook $fs/usr/lib
jozee@2675 41 cp -a $_pkg/usr/lib/*so* $fs/usr/lib
jozee@2675 42 cp -a $_pkg/usr/bin $fs/usr/
pascal@1708 43 }
pascal@1708 44