wok-current view ffmpeg-compat/receipt @ rev 25723

Up smplayer (thanks sonicrockett for first build and test pkg)
author Stanislas Leduc <shann@slitaz.org>
date Mon Jun 24 07:43:55 2024 +0000 (5 months ago)
parents 0bfe034e9d09
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"
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-ffserver \
60 --disable-ffprobe \
61 --disable-static \
62 --disable-symver \
63 ${ARCH_ARGS} &&
64 make &&
65 make install
66 }
68 # Rules to gen a SliTaz package suitable for Tazpkg.
69 genpkg_rules()
70 {
71 mkdir -p $fs/usr/lib
72 cp -a $install/usr/lib/ffmpeg-compat $fs/usr/lib
73 }
75 post_install()
76 {
77 echo "/usr/lib/ffmpeg-compat" > /dev/null #>> "$1/etc/ld.so.conf"
78 }
80 post_remove()
81 {
82 sed -i '/ffmpeg-compat/d' "$1/etc/ld.so.conf"
83 }