wok-next view ffmpeg/receipt @ rev 20095

Update/add packages needed for building MATE desktop:
Add: gnome-keyring3, gtkmm3, libappindicator-gtk[23], libfakekey, libgnome-keyring3, libindicator-gtk[23], libpeas.
Update: atkmm, cairomm, gcr, glibmm, gssdp, gupnp, icon-naming-utils, libcap-ng, libspectre, libwnck3, libxklavier, pangomm, perl-xml-sax.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Oct 28 16:45:22 2017 +0300 (2017-10-28)
parents 6a4c46da8e17
children 3417c3ffbd13
line source
1 # SliTaz package receipt v2.
3 PACKAGE="ffmpeg"
4 VERSION="3.2.4"
5 CATEGORY="multimedia"
6 SHORT_DESC="Record, convert and stream audio and video"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2 LGPL2.1"
9 WEB_SITE="http://ffmpeg.org/"
10 HOST_ARCH="i486 arm"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="${WEB_SITE}releases/$TARBALL"
15 BUILD_DEPENDS_arm="zlib-dev bzip2-dev yasm"
16 #BUILD_DEPENDS="libsdl-dev zlib-dev bzip2-dev coreutils-file-format \
17 #coreutils-file-special yasm"
18 BUILD_DEPENDS="coreutils-file-format libass-dev fdk-aac-dev lame-dev opus-dev \
19 libtheora-dev libvorbis-dev libvpx-dev x264-dev x265-dev xorg-libX11-dev"
20 SPLIT="ffmpeg-dev"
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 # http://www.linuxfromscratch.org/blfs/view/stable/multimedia/ffmpeg.html
27 # Handle cross compilation.
28 case "$ARCH" in
29 i?86) ARCH_ARGS="--arch=$ARCH --cpu=$ARCH" ;;
30 arm*) ARCH_ARGS="--enable-cross-compile --arch=armel --target-os=linux \
31 --cross-prefix=$HOST_SYSTEM-" ;;
32 esac
34 ./configure \
35 --prefix=/usr \
36 --enable-gpl \
37 --enable-version3 \
38 --enable-nonfree \
39 --disable-static \
40 --enable-shared \
41 --disable-debug \
42 --enable-libass \
43 --enable-libfdk-aac \
44 --enable-libfreetype \
45 --enable-libmp3lame \
46 --enable-libopus \
47 --enable-libtheora \
48 --enable-libvorbis \
49 --enable-libvpx \
50 --enable-libx264 \
51 --enable-libx265 \
52 --enable-x11grab \
53 --docdir=/usr/share/doc/ffmpeg-$VERSION \
54 --enable-runtime-cpudetect \
55 $ARCH_ARGS &&
57 # --enable-avresample \
58 # --enable-pthreads \
59 # --enable-small \
60 # --enable-ffserver \
61 # --disable-ffprobe \
62 # --disable-encoder=h263 \
63 # --disable-encoder=h263p \
64 # --disable-encoder=mpeg2video \
65 # --disable-encoder=msmpeg4v2 \
66 # --disable-encoder=msmpeg4v3 \
67 # --disable-symver \
68 # --disable-doc \
70 make &&
71 gcc tools/qt-faststart.c -o tools/qt-faststart &&
72 make install &&
73 install -v -m755 tools/qt-faststart $install/usr/bin &&
74 docdir=$install/usr/share/doc/ffmpeg-$VERSION &&
75 mkdir -p $docdir &&
76 cp doc/*.txt $docdir
77 }
79 # Rules to gen a SliTaz package suitable for Tazpkg.
80 genpkg_rules()
81 {
82 case $PACKAGE in
83 ffmpeg)
84 copy @std
85 rm -rf $fs/usr/share/$PACKAGE/examples/
86 SUGGESTED="ffplay"
87 TAGS="audio video convert stream"
88 DEPENDS="bzlib fdk-aac freetype lame libass liblzma libtheora-enc \
89 libvorbis libvpx opus x264 x265 xorg-libxcb zlib"
90 case "$SLITAZ_ARCH" in
91 arm*) DEPENDS="alsa-lib bzip2 zlib" ;;
92 esac
93 ;;
94 *-dev)
95 copy @dev examples/
96 DEPENDS="ffmpeg bzip2-dev fdk-aac-dev freetype-dev lame-dev \
97 libass-dev libogg-dev libtheora-dev libvorbis-dev libvpx-dev \
98 opus-dev x264-dev x265-dev xorg-libX11-dev xorg-libxcb-dev xz-dev \
99 zlib-dev"
100 ;;
101 esac
102 }