wok annotate ffmpeg/receipt @ rev 17885
fusecloop/extract_compressed_fs: large file support
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Apr 02 10:46:24 2015 +0200 (2015-04-02) |
parents | 0b6c57347733 |
children | 269b419967bd |
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@16315 | 17 DEPENDS="alsa-lib libsdl bzip2 zlib" |
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@16315 | 21 case "$SLITAZ_ARCH" in |
pankso@16315 | 22 arm*) DEPENDS="alsa-lib bzip2 zlib" ;; |
pankso@16315 | 23 esac |
pankso@16315 | 24 |
pankso@16026 | 25 # Handle cross compilation. Host coreutils-file-* are used |
pankso@16026 | 26 case "$ARCH" in |
pankso@16084 | 27 i?86) |
pankso@16084 | 28 ARCH_ARGS="--arch=$ARCH --cpu=$ARCH" ;; |
pankso@16084 | 29 arm*) |
pankso@16096 | 30 BUILD_DEPENDS="zlib-dev bzip2-dev yasm" |
pankso@16026 | 31 ARCH_ARGS="--enable-cross-compile --arch=armel --target-os=linux \ |
pankso@16096 | 32 --cross-prefix=$HOST_SYSTEM-" ;; |
pankso@16026 | 33 esac |
pankso@16026 | 34 |
pankso@16026 | 35 # Handle arch package install |
pankso@16026 | 36 case "$SLITAZ_ARCH" in |
pankso@16026 | 37 arm*) DEPENDS="alsa-lib bzip2" ;; |
pankso@16026 | 38 esac |
pankso@16026 | 39 |
pascal@1708 | 40 # Rules to configure and make the package. |
pascal@1708 | 41 compile_rules() |
pascal@1708 | 42 { |
pankso@4460 | 43 ./configure \ |
pankso@4460 | 44 --prefix=/usr \ |
domcox@12846 | 45 --enable-shared \ |
domcox@12846 | 46 --disable-static \ |
pankso@4460 | 47 --enable-gpl \ |
domcox@12846 | 48 --enable-runtime-cpudetect \ |
pascal@14362 | 49 --enable-avresample \ |
domcox@12846 | 50 --enable-pthreads \ |
pankso@4460 | 51 --enable-small \ |
pankso@16096 | 52 --enable-ffserver \ |
domcox@12846 | 53 --disable-ffprobe \ |
domcox@12846 | 54 --disable-encoder=h263 \ |
domcox@12846 | 55 --disable-encoder=h263p \ |
domcox@12846 | 56 --disable-encoder=mpeg2video \ |
domcox@12846 | 57 --disable-encoder=msmpeg4v1 \ |
domcox@12846 | 58 --disable-encoder=msmpeg4v2 \ |
domcox@12846 | 59 --disable-encoder=msmpeg4v3 \ |
domcox@12846 | 60 --disable-symver \ |
domcox@12846 | 61 --disable-debug \ |
pankso@16315 | 62 --disable-doc \ |
pankso@16315 | 63 ${ARCH_ARGS} && |
pankso@13016 | 64 make && make install |
pascal@1708 | 65 } |
pascal@1708 | 66 |
pascal@1708 | 67 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1708 | 68 genpkg_rules() |
pascal@1708 | 69 { |
pankso@16096 | 70 mkdir -p \ |
pankso@16096 | 71 $fs/usr/bin \ |
pankso@16096 | 72 $fs/usr/lib \ |
pankso@16096 | 73 $fs/usr/share |
pankso@13016 | 74 cp -a $install/usr/lib/*so* $fs/usr/lib |
pankso@16096 | 75 cp -a $install/usr/bin/ffmpeg $fs/usr/bin |
pankso@13016 | 76 cp -a $install/usr/share/$PACKAGE $fs/usr/share |
pankso@13016 | 77 rm -rf $fs/usr/share/$PACKAGE/examples |
pascal@1708 | 78 } |