wok-6.x view ffmpeg/receipt @ rev 16198
Up: pidgin (2.10.9) due to security issues
author | Alexander Medvedev <devl547@gmail.com> |
---|---|
date | Sun Mar 30 21:11:56 2014 +0000 (2014-03-30) |
parents | 53082fab5f1e |
children | c46591bcff38 |
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"
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 --enable-ffserver \
49 --disable-ffprobe \
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 \
67 $fs/usr/bin \
68 $fs/usr/lib \
69 $fs/usr/share
70 cp -a $install/usr/lib/*so* $fs/usr/lib
71 cp -a $install/usr/bin/ffmpeg $fs/usr/bin
72 cp -a $install/usr/share/$PACKAGE $fs/usr/share
73 rm -rf $fs/usr/share/$PACKAGE/examples
74 }