wok view ffmpeg-compat/receipt @ rev 22719
updated ffmpeg-compat and ffmpeg-compat-dev (0.10.12 -> 4.1.3)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jan 22 17:06:31 2020 +0100 (2020-01-22) |
parents | 9e01bc6321ea |
children | 78494a055861 |
line source
1 # SliTaz package receipt.
3 PACKAGE="ffmpeg-compat"
4 VERSION="4.1.3"
5 CATEGORY="multimedia"
6 SHORT_DESC="Record, convert and stream audio and video (compatible libs version)."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2 LGPL2.1"
9 WEB_SITE="https://ffmpeg.org/"
11 SOURCE="ffmpeg"
12 TARBALL="$SOURCE-$VERSION.tar.bz2"
13 WGET_URL="${WEB_SITE}releases/$TARBALL"
15 DEPENDS="alsa-lib bzip2 libsdl"
16 BUILD_DEPENDS="bzip2-dev coreutils-file-format coreutils-file-special
17 libsdl-dev yasm zlib-dev"
19 HOST_ARCH="i486 arm"
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 libsdl-dev"
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 --incdir=/usr/include/ffmpeg-compat \
42 --libdir=/usr/lib/ffmpeg-compat \
43 --shlibdir=/usr/lib/ffmpeg-compat \
44 --enable-gpl \
45 --enable-pthreads \
46 --enable-runtime-cpudetect \
47 --enable-shared \
48 --enable-small \
49 --disable-debug \
50 --disable-doc \
51 --disable-encoder=h263 \
52 --disable-encoder=h263p \
53 --disable-encoder=mpeg2video \
54 --disable-encoder=mpeg4 \
55 --disable-encoder=msmpeg4v1 \
56 --disable-encoder=msmpeg4v2 \
57 --disable-encoder=msmpeg4v3 \
58 --disable-ffplay \
59 --disable-ffprobe \
60 --disable-static \
61 --disable-symver \
62 ${ARCH_ARGS} &&
63 make &&
64 make install
65 }
67 # Rules to gen a SliTaz package suitable for Tazpkg.
68 genpkg_rules()
69 {
70 mkdir -p $fs/usr/lib
71 cp -a $install/usr/lib/ffmpeg-compat $fs/usr/lib
72 }
74 post_install()
75 {
76 echo "/usr/lib/ffmpeg-compat" >> "$1/etc/ld.so.conf"
77 }
79 post_remove()
80 {
81 sed -i '#/usr/lib/ffmpeg-compat#'d "$1/etc/ld.so.conf"
82 }