wok annotate ffmpeg/receipt @ rev 16084
Some fixes, up ffplay, add more pkgs to ARM
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Mar 16 00:22:05 2014 +0100 (2014-03-16) |
parents | 61bec0518c8c |
children | 0b6c57347733 |
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@16084 | 26 BUILD_DEPENDS="zlib-dev bzip2-dev yasm libsdl-dev" |
pankso@16026 | 27 ARCH_ARGS="--enable-cross-compile --arch=armel --target-os=linux \ |
pankso@16026 | 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 \ |
domcox@12846 | 48 --disable-ffprobe \ |
domcox@12846 | 49 --disable-ffserver \ |
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@13016 | 66 mkdir -p $fs/usr/lib $fs/usr/share |
pankso@13016 | 67 cp -a $install/usr/lib/*so* $fs/usr/lib |
pankso@13016 | 68 cp -a $install/usr/bin $fs/usr |
pankso@13016 | 69 cp -a $install/usr/share/$PACKAGE $fs/usr/share |
pankso@13016 | 70 rm -rf $fs/usr/share/$PACKAGE/examples |
pankso@4460 | 71 # ffplay with it SDL dep go in a splited package |
pankso@16026 | 72 rm -f $fs/usr/bin/ffplay |
pascal@1708 | 73 } |