wok-current annotate ffmpeg/receipt @ rev 16245
grisbi: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Apr 03 09:22:13 2014 +0000 (2014-04-03) |
parents | 53082fab5f1e |
children | c46591bcff38 |
rev | line source |
---|---|
pascal@1708 | 1 # SliTaz package receipt. |
pascal@1708 | 2 |
pascal@1708 | 3 PACKAGE="ffmpeg" |
pankso@16026 | 4 VERSION="2.1.4" |
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" |
pascal@15215 | 8 LICENSE="GPL2 LGPL2.1" |
jozee@2675 | 9 WEB_SITE="http://ffmpeg.org/" |
pascal@4284 | 10 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pascal@4284 | 11 WGET_URL="${WEB_SITE}releases/$TARBALL" |
pankso@16026 | 12 HOST_ARCH="i486 arm" |
pankso@16026 | 13 |
pankso@13016 | 14 SUGGESTED="ffplay" |
pankso@13016 | 15 TAGS="audio video convert stream" |
pankso@13016 | 16 |
pankso@16026 | 17 DEPENDS="alsa-lib libsdl bzip2" |
domcox@12846 | 18 BUILD_DEPENDS="libsdl-dev zlib-dev bzip2-dev coreutils-file-format \ |
domcox@12846 | 19 coreutils-file-special yasm" |
pascal@1708 | 20 |
pankso@16026 | 21 # Handle cross compilation. Host coreutils-file-* are used |
pankso@16026 | 22 case "$ARCH" in |
pankso@16084 | 23 i?86) |
pankso@16084 | 24 ARCH_ARGS="--arch=$ARCH --cpu=$ARCH" ;; |
pankso@16084 | 25 arm*) |
pankso@16096 | 26 BUILD_DEPENDS="zlib-dev bzip2-dev yasm" |
pankso@16026 | 27 ARCH_ARGS="--enable-cross-compile --arch=armel --target-os=linux \ |
pankso@16096 | 28 --cross-prefix=$HOST_SYSTEM-" ;; |
pankso@16026 | 29 esac |
pankso@16026 | 30 |
pankso@16026 | 31 # Handle arch package install |
pankso@16026 | 32 case "$SLITAZ_ARCH" in |
pankso@16026 | 33 arm*) DEPENDS="alsa-lib bzip2" ;; |
pankso@16026 | 34 esac |
pankso@16026 | 35 |
pascal@1708 | 36 # Rules to configure and make the package. |
pascal@1708 | 37 compile_rules() |
pascal@1708 | 38 { |
pankso@4460 | 39 ./configure \ |
pankso@4460 | 40 --prefix=/usr \ |
domcox@12846 | 41 --enable-shared \ |
domcox@12846 | 42 --disable-static \ |
pankso@4460 | 43 --enable-gpl \ |
domcox@12846 | 44 --enable-runtime-cpudetect \ |
pascal@14362 | 45 --enable-avresample \ |
domcox@12846 | 46 --enable-pthreads \ |
pankso@4460 | 47 --enable-small \ |
pankso@16096 | 48 --enable-ffserver \ |
domcox@12846 | 49 --disable-ffprobe \ |
domcox@12846 | 50 --disable-encoder=h263 \ |
domcox@12846 | 51 --disable-encoder=h263p \ |
domcox@12846 | 52 --disable-encoder=mpeg2video \ |
domcox@12846 | 53 --disable-encoder=mpeg4 \ |
domcox@12846 | 54 --disable-encoder=msmpeg4v1 \ |
domcox@12846 | 55 --disable-encoder=msmpeg4v2 \ |
domcox@12846 | 56 --disable-encoder=msmpeg4v3 \ |
domcox@12846 | 57 --disable-symver \ |
domcox@12846 | 58 --disable-debug \ |
pankso@16026 | 59 --disable-doc ${ARCH_ARGS} && |
pankso@13016 | 60 make && make install |
pascal@1708 | 61 } |
pascal@1708 | 62 |
pascal@1708 | 63 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1708 | 64 genpkg_rules() |
pascal@1708 | 65 { |
pankso@16096 | 66 mkdir -p \ |
pankso@16096 | 67 $fs/usr/bin \ |
pankso@16096 | 68 $fs/usr/lib \ |
pankso@16096 | 69 $fs/usr/share |
pankso@13016 | 70 cp -a $install/usr/lib/*so* $fs/usr/lib |
pankso@16096 | 71 cp -a $install/usr/bin/ffmpeg $fs/usr/bin |
pankso@13016 | 72 cp -a $install/usr/share/$PACKAGE $fs/usr/share |
pankso@13016 | 73 rm -rf $fs/usr/share/$PACKAGE/examples |
pascal@1708 | 74 } |