wok-next view ffmpeg/receipt @ rev 20430

fake-sane: fix copy-paste typo
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Jan 24 13:29:11 2018 +0200 (2018-01-24)
parents 3417c3ffbd13
children c4e53a39395a
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 libsdl2-dev"
21 SPLIT="ffmpeg ffmpeg-dev ffserver ffplay"
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 # http://www.linuxfromscratch.org/blfs/view/stable/multimedia/ffmpeg.html
28 # Handle cross compilation.
29 case "$ARCH" in
30 i?86) ARCH_ARGS="--arch=$ARCH --cpu=$ARCH" ;;
31 arm*) ARCH_ARGS="--enable-cross-compile --arch=armel --target-os=linux \
32 --cross-prefix=$HOST_SYSTEM-" ;;
33 esac
35 ./configure \
36 --prefix=/usr \
37 --enable-gpl \
38 --enable-version3 \
39 --enable-nonfree \
40 --disable-static \
41 --enable-shared \
42 --disable-debug \
43 --enable-libass \
44 --enable-libfdk-aac \
45 --enable-libfreetype \
46 --enable-libmp3lame \
47 --enable-libopus \
48 --enable-libtheora \
49 --enable-libvorbis \
50 --enable-libvpx \
51 --enable-libx264 \
52 --enable-libx265 \
53 --enable-x11grab \
54 --docdir=/usr/share/doc/ffmpeg-$VERSION \
55 --enable-runtime-cpudetect \
56 $ARCH_ARGS &&
58 # --enable-avresample \
59 # --enable-pthreads \
60 # --enable-small \
61 # --enable-ffserver \
62 # --disable-ffprobe \
63 # --disable-encoder=h263 \
64 # --disable-encoder=h263p \
65 # --disable-encoder=mpeg2video \
66 # --disable-encoder=msmpeg4v2 \
67 # --disable-encoder=msmpeg4v3 \
68 # --disable-symver \
69 # --disable-doc \
71 make &&
72 gcc tools/qt-faststart.c -o tools/qt-faststart &&
73 make install &&
74 install -v -m755 tools/qt-faststart $install/usr/bin &&
75 docdir=$install/usr/share/doc/ffmpeg-$VERSION &&
76 mkdir -p $docdir &&
77 cp doc/*.txt $docdir
78 }
80 # Rules to gen a SliTaz package suitable for Tazpkg.
81 genpkg_rules()
82 {
83 case $PACKAGE in
84 ffmpeg)
85 copy @std
86 rm -rf $fs/usr/share/$PACKAGE/examples/
87 SUGGESTED="ffplay"
88 TAGS="audio video convert stream"
89 DEPENDS="bzlib fdk-aac freetype lame libass liblzma libtheora-enc \
90 libvorbis libvpx opus x264 x265 xorg-libxcb zlib"
91 case "$SLITAZ_ARCH" in
92 arm*) DEPENDS="alsa-lib bzip2 zlib" ;;
93 esac
94 ;;
95 ffplay)
96 CAT="multimedia|Very simple and portable media player using the ffmpeg and the SDL library."
97 TAGS="audio video player"
98 DEPENDS="ffmpeg libsdl"
99 mkdir -p $fs/usr/bin
100 cp -a $install/usr/bin/ffplay $fs/usr/bin
101 ;;
102 ffserver)
103 CAT="multimedia|FFmpeg audio/video fast and small stream server."
104 TAGS="audio video server"
105 DEPENDS="ffmpeg"
106 mkdir -p $fs/usr/bin $fs/etc
107 cp ${stuff}/ffserver.conf $fs/etc
108 cp -a $install/usr/bin/ffserver $fs/usr/bin
109 ;;
110 *-dev)
111 copy @dev examples/
112 DEPENDS="ffmpeg bzip2-dev fdk-aac-dev freetype-dev lame-dev \
113 libass-dev libogg-dev libtheora-dev libvorbis-dev libvpx-dev \
114 opus-dev x264-dev x265-dev xorg-libX11-dev xorg-libxcb-dev xz-dev \
115 zlib-dev"
116 ;;
117 esac
118 }