wok-current view ffmpeg-compat/receipt @ rev 25728
Merge wok for both arch and few updates
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Thu Dec 05 08:39:45 2024 +0000 (2 weeks ago) |
parents | 8d53169054d1 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="ffmpeg-compat"
4 VERSION="2.3.6" # to build libvalhalla, and then enna
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 x86_64"
21 # Handle cross compilation. Host coreutils-file-* are used
22 case "$ARCH" in
23 i?86)
24 ARCH_ARGS="--arch=$ARCH --cpu=$ARCH" ;;
25 x86_64)
26 ARCH_ARGS="--arch=nocona --cpu=x86-64" ;;
27 arm*)
28 BUILD_DEPENDS="zlib-dev bzip2-dev yasm libsdl-dev"
29 ARCH_ARGS="--enable-cross-compile --arch=armel --target-os=linux \
30 --cross-prefix=$HOST_SYSTEM-" ;;
31 esac
33 # Handle arch package install
34 case "$SLITAZ_ARCH" in
35 arm*) DEPENDS="alsa-lib bzip2" ;;
36 esac
38 # Rules to configure and make the package.
39 compile_rules()
40 {
41 ./configure \
42 --prefix=/usr \
43 --incdir=/usr/include/ffmpeg-compat \
44 --libdir=/usr/lib/ffmpeg-compat \
45 --shlibdir=/usr/lib/ffmpeg-compat \
46 --enable-gpl \
47 --enable-pthreads \
48 --enable-runtime-cpudetect \
49 --enable-shared \
50 --enable-small \
51 --disable-debug \
52 --disable-doc \
53 --disable-encoder=h263 \
54 --disable-encoder=h263p \
55 --disable-encoder=mpeg2video \
56 --disable-encoder=mpeg4 \
57 --disable-encoder=msmpeg4v1 \
58 --disable-encoder=msmpeg4v2 \
59 --disable-encoder=msmpeg4v3 \
60 --disable-ffplay \
61 --disable-ffserver \
62 --disable-ffprobe \
63 --disable-static \
64 --disable-symver \
65 ${ARCH_ARGS} &&
66 make &&
67 make install
68 }
70 # Rules to gen a SliTaz package suitable for Tazpkg.
71 genpkg_rules()
72 {
73 mkdir -p $fs/usr/lib
74 cp -a $install/usr/lib/ffmpeg-compat $fs/usr/lib
75 }
77 post_install()
78 {
79 echo "/usr/lib/ffmpeg-compat" > /dev/null #>> "$1/etc/ld.so.conf"
80 }
82 post_remove()
83 {
84 sed -i '/ffmpeg-compat/d' "$1/etc/ld.so.conf"
85 }