wok view 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
line source
1 # SliTaz package receipt.
3 PACKAGE="ffmpeg"
4 VERSION="2.1.4"
5 CATEGORY="multimedia"
6 SHORT_DESC="Record, convert and stream audio and video."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2 LGPL2.1"
9 WEB_SITE="http://ffmpeg.org/"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WGET_URL="${WEB_SITE}releases/$TARBALL"
12 HOST_ARCH="i486 arm"
14 SUGGESTED="ffplay"
15 TAGS="audio video convert stream"
17 DEPENDS="alsa-lib libsdl bzip2"
18 BUILD_DEPENDS="libsdl-dev zlib-dev bzip2-dev coreutils-file-format \
19 coreutils-file-special yasm"
21 # Handle cross compilation. Host coreutils-file-* are used
22 case "$ARCH" in
23 i?86)
24 ARCH_ARGS="--arch=$ARCH --cpu=$ARCH" ;;
25 arm*)
26 BUILD_DEPENDS="zlib-dev bzip2-dev yasm libsdl-dev"
27 ARCH_ARGS="--enable-cross-compile --arch=armel --target-os=linux \
28 --cross-prefix=$HOST_SYSTEM-" ;;
29 esac
31 # Handle arch package install
32 case "$SLITAZ_ARCH" in
33 arm*) DEPENDS="alsa-lib bzip2" ;;
34 esac
36 # Rules to configure and make the package.
37 compile_rules()
38 {
39 ./configure \
40 --prefix=/usr \
41 --enable-shared \
42 --disable-static \
43 --enable-gpl \
44 --enable-runtime-cpudetect \
45 --enable-avresample \
46 --enable-pthreads \
47 --enable-small \
48 --disable-ffprobe \
49 --disable-ffserver \
50 --disable-encoder=h263 \
51 --disable-encoder=h263p \
52 --disable-encoder=mpeg2video \
53 --disable-encoder=mpeg4 \
54 --disable-encoder=msmpeg4v1 \
55 --disable-encoder=msmpeg4v2 \
56 --disable-encoder=msmpeg4v3 \
57 --disable-symver \
58 --disable-debug \
59 --disable-doc ${ARCH_ARGS} &&
60 make && make install
61 }
63 # Rules to gen a SliTaz package suitable for Tazpkg.
64 genpkg_rules()
65 {
66 mkdir -p $fs/usr/lib $fs/usr/share
67 cp -a $install/usr/lib/*so* $fs/usr/lib
68 cp -a $install/usr/bin $fs/usr
69 cp -a $install/usr/share/$PACKAGE $fs/usr/share
70 rm -rf $fs/usr/share/$PACKAGE/examples
71 # ffplay with it SDL dep go in a splited package
72 rm -f $fs/usr/bin/ffplay
73 }