wok-current view ffmpeg/receipt @ rev 19590
fbvis: add doc
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Dec 29 14:11:44 2016 +0100 (2016-12-29) |
parents | 269b419967bd |
children | b05fba2ec312 |
line source
1 # SliTaz package receipt.
3 PACKAGE="ffmpeg"
4 VERSION="2.8.7"
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=msmpeg4v2 \
58 --disable-encoder=msmpeg4v3 \
59 --disable-symver \
60 --disable-debug \
61 --disable-doc \
62 ${ARCH_ARGS} &&
63 make && make install
64 }
66 # Rules to gen a SliTaz package suitable for Tazpkg.
67 genpkg_rules()
68 {
69 mkdir -p \
70 $fs/usr/bin \
71 $fs/usr/lib \
72 $fs/usr/share
73 cp -a $install/usr/lib/*so* $fs/usr/lib
74 cp -a $install/usr/bin/ffmpeg $fs/usr/bin
75 cp -a $install/usr/share/$PACKAGE $fs/usr/share
76 rm -rf $fs/usr/share/$PACKAGE/examples
77 }