wok-current view ffmpeg/receipt @ rev 16026

Up ffmpeg and add to ARM, rm ffmpeg-svn and add git version, up mpg123 and more X pkgs to ARM
author Christophe Lincoln <pankso@slitaz.org>
date Sat Mar 08 06:26:57 2014 +0100 (2014-03-08)
parents 7bb096863642
children 53082fab5f1e
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) ARCH_ARGS="--arch=$ARCH --cpu=$ARCH" ;;
24 arm*) BUILD_DEPENDS="zlib-dev bzip2-dev yasm"
25 ARCH_ARGS="--enable-cross-compile --arch=armel --target-os=linux \
26 --cross-prefix=$HOST_SYSTEM-" ;;
27 esac
29 # Handle arch package install
30 case "$SLITAZ_ARCH" in
31 arm*) DEPENDS="alsa-lib bzip2" ;;
32 esac
34 # Rules to configure and make the package.
35 compile_rules()
36 {
37 ./configure \
38 --prefix=/usr \
39 --enable-shared \
40 --disable-static \
41 --enable-gpl \
42 --enable-runtime-cpudetect \
43 --enable-avresample \
44 --enable-pthreads \
45 --enable-small \
46 --disable-ffprobe \
47 --disable-ffserver \
48 --disable-encoder=h263 \
49 --disable-encoder=h263p \
50 --disable-encoder=mpeg2video \
51 --disable-encoder=mpeg4 \
52 --disable-encoder=msmpeg4v1 \
53 --disable-encoder=msmpeg4v2 \
54 --disable-encoder=msmpeg4v3 \
55 --disable-symver \
56 --disable-debug \
57 --disable-doc ${ARCH_ARGS} &&
58 make && make install
59 }
61 # Rules to gen a SliTaz package suitable for Tazpkg.
62 genpkg_rules()
63 {
64 mkdir -p $fs/usr/lib $fs/usr/share
65 cp -a $install/usr/lib/*so* $fs/usr/lib
66 cp -a $install/usr/bin $fs/usr
67 cp -a $install/usr/share/$PACKAGE $fs/usr/share
68 rm -rf $fs/usr/share/$PACKAGE/examples
69 # ffplay with it SDL dep go in a splited package
70 rm -f $fs/usr/bin/ffplay
71 }