wok view ffmpeg-compat/receipt @ rev 18035
Up: tazpanel (480), tazpkg (802)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat May 09 21:58:06 2015 +0200 (2015-05-09) |
parents | 1e9ca6f4ca16 |
children | 9e01bc6321ea |
line source
1 # SliTaz package receipt.
3 PACKAGE="ffmpeg-compat"
4 VERSION="0.10.12"
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="http://ffmpeg.org/"
10 SOURCE="ffmpeg"
11 TARBALL="$SOURCE-$VERSION.tar.bz2"
12 WGET_URL="${WEB_SITE}releases/$TARBALL"
13 HOST_ARCH="i486 arm"
15 DEPENDS="alsa-lib libsdl bzip2"
16 BUILD_DEPENDS="libsdl-dev zlib-dev bzip2-dev coreutils-file-format \
17 coreutils-file-special yasm"
19 # Handle cross compilation. Host coreutils-file-* are used
20 case "$ARCH" in
21 i?86)
22 ARCH_ARGS="--arch=$ARCH --cpu=$ARCH" ;;
23 arm*)
24 BUILD_DEPENDS="zlib-dev bzip2-dev yasm libsdl-dev"
25 ARCH_ARGS="--enable-cross-compile --arch=armel --target-os=linux \
26 --cross-prefix=$HOST_SYSTEM-" ;;
27 esac
29 # Handle arch package install
30 case "$SLITAZ_ARCH" in
31 arm*) DEPENDS="alsa-lib bzip2" ;;
32 esac
34 # Rules to configure and make the package.
35 compile_rules()
36 {
37 ./configure \
38 --prefix=/usr \
39 --incdir=/usr/include/ffmpeg-compat \
40 --libdir=/usr/lib/ffmpeg-compat \
41 --shlibdir=/usr/lib/ffmpeg-compat \
42 --enable-shared \
43 --enable-gpl \
44 --enable-runtime-cpudetect \
45 --enable-pthreads \
46 --enable-small \
47 --disable-static \
48 --disable-ffprobe \
49 --disable-ffserver \
50 --disable-ffplay \
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-symver \
59 --disable-debug \
60 --disable-doc ${ARCH_ARGS} &&
61 make && make install
62 }
64 # Rules to gen a SliTaz package suitable for Tazpkg.
65 genpkg_rules()
66 {
67 mkdir -p $fs/usr/lib
68 cp -a $install/usr/lib/ffmpeg-compat $fs/usr/lib
69 }
71 post_install()
72 {
73 echo "/usr/lib/ffmpeg-compat" >> $1/etc/ld.so.conf
74 }
76 post_remove()
77 {
78 sed -i '#/usr/lib/ffmpeg-compat#'d $1/etc/ld.so.conf
79 }