wok-next view ffmpeg-compat/receipt @ rev 20845

Add neofetch, tcl2c-fork; build two versions of tklauncher (using tcl2c and tcl2c-fork) with different warnings
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Jun 23 09:45:42 2018 +0300 (2018-06-23)
parents c4e53a39395a
children d5aab818505e
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_arm="zlib-dev bzip2-dev yasm libsdl-dev"
15 BUILD_DEPENDS="libsdl-dev zlib-dev bzip2-dev coreutils-file-format \
16 coreutils-file-special yasm"
17 SPLIT="ffmpeg-compat-dev"
19 compile_rules() {
20 case "$ARCH" in
21 i?86)
22 ARCH_ARGS="--arch=$ARCH --cpu=$ARCH";;
23 arm*)
24 ARCH_ARGS="--enable-cross-compile --arch=armel --target-os=linux \
25 --cross-prefix=$HOST_SYSTEM-";;
26 x86_64)
27 ARCH_ARGS="" #???
28 ;;
29 esac
31 ./configure \
32 --prefix=/usr \
33 --incdir=/usr/include/ffmpeg-compat \
34 --libdir=/usr/lib/ffmpeg-compat \
35 --shlibdir=/usr/lib/ffmpeg-compat \
36 --enable-shared \
37 --enable-gpl \
38 --enable-runtime-cpudetect \
39 --enable-pthreads \
40 --enable-small \
41 --disable-static \
42 --disable-ffprobe \
43 --disable-ffserver \
44 --disable-ffplay \
45 --disable-encoder=h263 \
46 --disable-encoder=h263p \
47 --disable-encoder=mpeg2video \
48 --disable-encoder=mpeg4 \
49 --disable-encoder=msmpeg4v1 \
50 --disable-encoder=msmpeg4v2 \
51 --disable-encoder=msmpeg4v3 \
52 --disable-symver \
53 --disable-debug \
54 --disable-doc \
55 $ARCH_ARGS &&
56 make && make install
57 }
59 genpkg_rules() {
60 case $PACKAGE in
61 ffmpeg-compat)
62 mkdir -p $fs/usr/lib
63 cp -a $install/usr/lib/ffmpeg-compat $fs/usr/lib
64 DEPENDS="alsa-lib libsdl bzip2"
65 case "$SLITAZ_ARCH" in
66 arm*) DEPENDS="alsa-lib bzip2";;
67 esac
68 ;;
69 *-dev)
70 mkdir -p $fs/usr
71 cp -a $install/usr/include $fs/usr
72 ;;
73 esac
74 }
76 post_install_ffmpeg_compat() {
77 echo "/usr/lib/ffmpeg-compat" >> "$1/etc/ld.so.conf"
78 }
80 post_remove_ffmpeg_compat() {
81 sed -i '#/usr/lib/ffmpeg-compat#'d "$1/etc/ld.so.conf"
82 }