wok-next view ffmpeg/receipt @ rev 21727

created recipe for vbindiff
author Hans-G?nter Theisgen
date Sat Nov 21 14:32:44 2020 +0100 (2020-11-21)
parents 82b613cfd1e0
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="ffmpeg"
4 VERSION="4.3"
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="https://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 fdk-aac-dev lame-dev libass-dev
16 libtheora-dev libvorbis-dev libvpx-dev libx11-dev opus-dev
17 sdl2-dev x264-dev x265-dev yasm"
18 SPLIT="ffplay ffserver $PACKAGE-dev $PACKAGE"
20 compile_rules()
21 {
22 case "$ARCH" in
23 i?86) ARCH_ARGS="--arch=$ARCH --cpu=$ARCH";;
24 esac
26 sed -i 's|-lflite"|-lflite -lasound"|' configure
28 ./configure \
29 --prefix=/usr \
30 --docdir=/usr/share/doc/ffmpeg-$VERSION \
31 --disable-debug \
32 --enable-gpl \
33 --enable-libass \
34 --enable-libfdk-aac \
35 --enable-libfreetype \
36 --enable-libmp3lame \
37 --enable-libopus \
38 --enable-libtheora \
39 --enable-libvorbis \
40 --enable-libvpx \
41 --enable-libx264 \
42 --enable-libx265 \
43 --enable-nonfree \
44 --enable-runtime-cpudetect \
45 --enable-shared \
46 --disable-static \
47 --enable-version3 \
48 $ARCH_ARGS &&
49 make &&
50 gcc tools/qt-faststart.c -o tools/qt-faststart &&
51 make install || return 1
53 install -v -m755 tools/qt-faststart $install/usr/bin
54 install -Dm644 $stuff/ffserver.conf $install/etc/ffserver.conf
56 cook_pick_docs doc/*.txt
57 }
59 genpkg_rules()
60 {
61 case $PACKAGE in
62 ffplay)
63 copy ffplay
64 CAT="multimedia|very simple and portable media player using the ffmpeg and the SDL library"
65 TAGS="audio video player"
66 DEPENDS="ffmpeg sdl"
67 ;;
68 ffserver)
69 copy ffserver ffserver.conf
70 CAT="multimedia|FFmpeg audio/video fast and small stream server"
71 TAGS="audio video server"
72 DEPENDS="ffmpeg"
73 ;;
74 *-dev)
75 copy @dev examples/
76 DEPENDS="bzip2-dev fdk-aac-dev ffmpeg freetype-dev lame-dev
77 libass-dev libogg-dev libtheora-dev libvorbis-dev
78 libvpx-dev libx11-dev libxcb-dev opus-dev x264-dev
79 x265-dev xz-dev zlib-dev"
80 ;;
81 ffmpeg)
82 copy @std @rm
83 SUGGESTED="ffplay"
84 TAGS="audio video convert stream"
85 DEPENDS="fdk-aac freetype lame libass libbzip2 liblzma
86 libtheora-enc libvorbis libvpx libxcb opus x264 x265 zlib"
87 ;;
88 esac
89 }