wok-current view ffmpeg/receipt @ rev 18295

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