wok-next view ffmpeg/receipt @ rev 19884
libxklavier: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Oct 07 14:53:11 2017 +0200 (2017-10-07) |
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 }