wok-undigest view ffmpeg/receipt @ rev 1223

copied libxext recipe from wok-next
author Hans-G?nter Theisgen
date Fri Nov 15 17:38:29 2019 +0100 (2019-11-15)
parents
children cf19e70a6352
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 export CFLAGS="$CFLAGS -mtune=i686"
30 export CXXFLAGS="$CFLAGS" ;;
31 arm*)
32 BUILD_DEPENDS="zlib-dev bzip2-dev yasm"
33 ARCH_ARGS="--enable-cross-compile --arch=armel --target-os=linux \
34 --cross-prefix=$HOST_SYSTEM-" ;;
35 esac
37 # Handle arch package install
38 case "$SLITAZ_ARCH" in
39 arm*) DEPENDS="alsa-lib bzip2" ;;
40 esac
42 # Rules to configure and make the package.
43 compile_rules()
44 {
45 ./configure \
46 --prefix=/usr \
47 --enable-shared \
48 --disable-static \
49 --enable-gpl \
50 --enable-runtime-cpudetect \
51 --enable-avresample \
52 --enable-pthreads \
53 --enable-small \
54 --enable-ffserver \
55 --disable-ffprobe \
56 --disable-encoder=h263 \
57 --disable-encoder=h263p \
58 --disable-encoder=mpeg2video \
59 --disable-encoder=msmpeg4v1 \
60 --disable-encoder=msmpeg4v2 \
61 --disable-encoder=msmpeg4v3 \
62 --disable-symver \
63 --disable-debug \
64 --disable-doc \
65 ${ARCH_ARGS} &&
66 make && make install
67 }
69 # Rules to gen a SliTaz package suitable for Tazpkg.
70 genpkg_rules()
71 {
72 mkdir -p \
73 $fs/usr/bin \
74 $fs/usr/lib \
75 $fs/usr/share
76 cp -a $install/usr/lib/*so* $fs/usr/lib
77 cp -a $install/usr/bin/ffmpeg $fs/usr/bin
78 cp -a $install/usr/share/$PACKAGE $fs/usr/share
79 rm -rf $fs/usr/share/$PACKAGE/examples
80 }