wok-next view ffmpeg-compat/receipt @ rev 21712
updated gsoap (2.8.96 -> 2.8.104)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Jul 06 16:25:56 2020 +0100 (2020-07-06) |
parents | d5aab818505e |
children |
line source
1 # SliTaz package receipt v2.
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/"
11 TARBALL="ffmpeg-$VERSION.tar.bz2"
12 WGET_URL="${WEB_SITE}releases/$TARBALL"
14 BUILD_DEPENDS="sdl-dev zlib-dev bzip2-dev coreutils-file-format \
15 coreutils-file-special yasm"
16 SPLIT="$PACKAGE-dev"
18 compile_rules() {
19 case "$ARCH" in
20 i?86)
21 ARCH_ARGS="--arch=$ARCH --cpu=$ARCH"
22 ;;
23 x86_64)
24 ARCH_ARGS="" #???
25 ;;
26 esac
28 ./configure \
29 --prefix=/usr \
30 --incdir=/usr/include/ffmpeg-compat \
31 --libdir=/usr/lib/ffmpeg-compat \
32 --shlibdir=/usr/lib/ffmpeg-compat \
33 --enable-shared \
34 --enable-gpl \
35 --enable-runtime-cpudetect \
36 --enable-pthreads \
37 --enable-small \
38 --disable-static \
39 --disable-ffprobe \
40 --disable-ffserver \
41 --disable-ffplay \
42 --disable-encoder=h263 \
43 --disable-encoder=h263p \
44 --disable-encoder=mpeg2video \
45 --disable-encoder=mpeg4 \
46 --disable-encoder=msmpeg4v1 \
47 --disable-encoder=msmpeg4v2 \
48 --disable-encoder=msmpeg4v3 \
49 --disable-symver \
50 --disable-debug \
51 --disable-doc \
52 $ARCH_ARGS &&
53 make &&
54 make install
55 }
57 genpkg_rules() {
58 case $PACKAGE in
59 ffmpeg-compat)
60 mkdir -p $fs/usr/lib
61 cp -a $install/usr/lib/ffmpeg-compat $fs/usr/lib
62 DEPENDS="alsa-lib sdl bzip2"
63 ;;
64 *-dev)
65 mkdir -p $fs/usr
66 cp -a $install/usr/include $fs/usr
67 ;;
68 esac
69 }
71 post_install_ffmpeg_compat() {
72 echo "/usr/lib/ffmpeg-compat" >> "$1/etc/ld.so.conf"
73 }
75 post_remove_ffmpeg_compat() {
76 sed -i '/\/usr\/lib\/ffmpeg-compat/d' "$1/etc/ld.so.conf"
77 }