wok-next view ffmpeg/receipt @ rev 20859

Update ALSA stack (1.1.6)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Jun 27 13:35:43 2018 +0300 (2018-06-27)
parents c4e53a39395a
children f48456621a9d
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/stable/multimedia/ffmpeg.html"
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="coreutils-file-format libass-dev fdk-aac-dev lame-dev opus-dev \
17 libtheora-dev libvorbis-dev libvpx-dev x264-dev x265-dev xorg-libX11-dev \
18 libsdl2-dev yasm"
19 SPLIT="ffplay ffserver ffmpeg-dev ffmpeg"
21 compile_rules() {
22 case "$ARCH" in
23 i?86) ARCH_ARGS="--arch=$ARCH --cpu=$ARCH" ;;
24 arm*) ARCH_ARGS="--enable-cross-compile --arch=armel --target-os=linux \
25 --cross-prefix=$HOST_SYSTEM-" ;;
26 esac
28 sed -i 's|-lflite"|-lflite -lasound"|' configure
29 ./configure \
30 --prefix=/usr \
31 --enable-gpl \
32 --enable-version3 \
33 --enable-nonfree \
34 --disable-static \
35 --enable-shared \
36 --disable-debug \
37 --enable-libass \
38 --enable-libfdk-aac \
39 --enable-libfreetype \
40 --enable-libmp3lame \
41 --enable-libopus \
42 --enable-libtheora \
43 --enable-libvorbis \
44 --enable-libvpx \
45 --enable-libx264 \
46 --enable-libx265 \
47 --docdir=/usr/share/doc/ffmpeg-$VERSION \
48 \
49 --enable-runtime-cpudetect \
50 $ARCH_ARGS &&
51 make &&
52 gcc tools/qt-faststart.c -o tools/qt-faststart &&
53 make install || return 1
55 install -v -m755 tools/qt-faststart $install/usr/bin
56 install -Dm644 $stuff/ffserver.conf $install/etc/ffserver.conf
58 cook_pick_docs doc/*.txt
59 }
61 genpkg_rules() {
62 case $PACKAGE in
63 ffplay)
64 copy ffplay
65 CAT="multimedia|very simple and portable media player using the ffmpeg and the SDL library"
66 TAGS="audio video player"
67 DEPENDS="ffmpeg libsdl"
68 ;;
69 ffserver)
70 copy ffserver ffserver.conf
71 CAT="multimedia|FFmpeg audio/video fast and small stream server"
72 TAGS="audio video server"
73 DEPENDS="ffmpeg"
74 ;;
75 *-dev)
76 copy @dev examples/
77 DEPENDS="ffmpeg bzip2-dev fdk-aac-dev freetype-dev lame-dev \
78 libass-dev libogg-dev libtheora-dev libvorbis-dev libvpx-dev \
79 opus-dev x264-dev x265-dev xorg-libX11-dev xorg-libxcb-dev xz-dev \
80 zlib-dev"
81 ;;
82 ffmpeg)
83 copy @std @rm
84 SUGGESTED="ffplay"
85 TAGS="audio video convert stream"
86 DEPENDS="bzlib fdk-aac freetype lame libass liblzma libtheora-enc \
87 libvorbis libvpx opus x264 x265 xorg-libxcb zlib"
88 case "$SLITAZ_ARCH" in
89 arm*) DEPENDS="alsa-lib bzip2 zlib" ;;
90 esac
91 ;;
92 esac
93 }