wok-next view ffmpeg/receipt @ rev 21084

Add librefox
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Dec 25 14:44:32 2018 +0200 (2018-12-25)
parents d5aab818505e
children 0f2575775b2d
line source
1 # SliTaz package receipt v2.
3 PACKAGE="ffmpeg"
4 VERSION="3.4.2"
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 LFS="http://www.linuxfromscratch.org/blfs/view/svn/multimedia/ffmpeg.html"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="${WEB_SITE}releases/$TARBALL"
15 BUILD_DEPENDS="coreutils-file-format libass-dev fdk-aac-dev lame-dev opus-dev \
16 libtheora-dev libvorbis-dev libvpx-dev x264-dev x265-dev libx11-dev \
17 libsdl2-dev yasm"
18 SPLIT="ffplay ffserver $PACKAGE-dev $PACKAGE"
20 compile_rules() {
21 case "$ARCH" in
22 i?86) ARCH_ARGS="--arch=$ARCH --cpu=$ARCH";;
23 esac
25 sed -i 's|-lflite"|-lflite -lasound"|' configure
26 ./configure \
27 --prefix=/usr \
28 --enable-gpl \
29 --enable-version3 \
30 --enable-nonfree \
31 --disable-static \
32 --enable-shared \
33 --disable-debug \
34 --enable-libass \
35 --enable-libfdk-aac \
36 --enable-libfreetype \
37 --enable-libmp3lame \
38 --enable-libopus \
39 --enable-libtheora \
40 --enable-libvorbis \
41 --enable-libvpx \
42 --enable-libx264 \
43 --enable-libx265 \
44 --docdir=/usr/share/doc/ffmpeg-$VERSION \
45 \
46 --enable-runtime-cpudetect \
47 $ARCH_ARGS &&
48 make &&
49 gcc tools/qt-faststart.c -o tools/qt-faststart &&
50 make install || return 1
52 install -v -m755 tools/qt-faststart $install/usr/bin
53 install -Dm644 $stuff/ffserver.conf $install/etc/ffserver.conf
55 cook_pick_docs doc/*.txt
56 }
58 genpkg_rules() {
59 case $PACKAGE in
60 ffplay)
61 copy ffplay
62 CAT="multimedia|very simple and portable media player using the ffmpeg and the SDL library"
63 TAGS="audio video player"
64 DEPENDS="ffmpeg libsdl"
65 ;;
66 ffserver)
67 copy ffserver ffserver.conf
68 CAT="multimedia|FFmpeg audio/video fast and small stream server"
69 TAGS="audio video server"
70 DEPENDS="ffmpeg"
71 ;;
72 *-dev)
73 copy @dev examples/
74 DEPENDS="ffmpeg bzip2-dev fdk-aac-dev freetype-dev lame-dev \
75 libass-dev libogg-dev libtheora-dev libvorbis-dev libvpx-dev \
76 opus-dev x264-dev x265-dev libx11-dev libxcb-dev xz-dev \
77 zlib-dev"
78 ;;
79 ffmpeg)
80 copy @std @rm
81 SUGGESTED="ffplay"
82 TAGS="audio video convert stream"
83 DEPENDS="bzlib fdk-aac freetype lame libass liblzma libtheora-enc \
84 libvorbis libvpx opus x264 x265 libxcb zlib"
85 ;;
86 esac
87 }