wok view ffmpeg/receipt @ rev 21750
tazboot: shrink
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jun 15 16:18:19 2019 +0200 (2019-06-15) |
parents | d37d15244372 |
children | a449793b9af3 |
line source
1 # SliTaz package receipt.
3 PACKAGE="ffmpeg"
4 VERSION="4.1.3"
5 CATEGORY="multimedia"
6 TAGS="audio video convert stream"
7 SHORT_DESC="Record, convert and stream audio and video."
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="GPL2 LGPL2.1"
10 WEB_SITE="https://ffmpeg.org/"
12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
13 WGET_URL="${WEB_SITE}releases/$TARBALL"
15 SUGGESTED="ffplay"
16 DEPENDS="alsa-lib bzip2 gnutls harfbuzz lame libsdl2 libtasn1 libvorbis \
17 libvpx nettle opus pcre rtmpdump x264 x265 xorg-libXau \
18 xorg-libXdmcp zlib"
19 BUILD_DEPENDS="bzip2-dev coreutils-file-format coreutils-file-special \
20 gnutls-dev harfbuzz-dev lame-dev libgnutls libsdl2-dev \
21 libvorbis-dev libvpx-dev nettle-dev opus-dev pcre-dev \
22 rtmpdump-dev x264-dev x265-dev xorg-libXau-dev xorg-libXdmcp-dev \
23 yasm zlib-dev"
25 HOST_ARCH="i486 arm"
27 case "$SLITAZ_ARCH" in
28 arm*) DEPENDS="alsa-lib bzip2 gnutls harfbuzz lame libsdl2 libvorbis \
29 libtasn1 libvpx nettle opus pcre rtmpdump x264 x265 \
30 xorg-libXau xorg-libXdmcp zlib" ;;
31 esac
33 # Handle cross compilation. Host coreutils-file-* are used
34 case "$ARCH" in
35 i?86)
36 ARCH_ARGS="--arch=$ARCH --cpu=$ARCH" ;;
37 arm*)
38 BUILD_DEPENDS="bzip2-dev yasm zlib-dev"
39 ARCH_ARGS="--enable-cross-compile --arch=armel --target-os=linux \
40 --cross-prefix=$HOST_SYSTEM-" ;;
41 esac
43 # Rules to configure and make the package.
44 compile_rules()
45 {
46 ./configure \
47 --prefix=/usr \
48 --enable-gpl \
49 --enable-nonfree \
50 --enable-shared \
51 --disable-static \
52 --disable-doc \
53 --enable-libfreetype \
54 --enable-libmp3lame \
55 --enable-libopus \
56 --enable-libvorbis \
57 --enable-libvpx \
58 --enable-libx264 \
59 --enable-libx265 \
60 --enable-gnutls \
61 ${ARCH_ARGS} &&
62 make &&
63 make install
64 }
66 # Rules to gen a SliTaz package suitable for Tazpkg.
67 genpkg_rules()
68 {
69 mkdir -p \
70 $fs/usr/bin \
71 $fs/usr/lib \
72 $fs/usr/share
74 cp -a $install/usr/lib/*so* $fs/usr/lib
75 cp -a $install/usr/bin/ffmpeg $fs/usr/bin
76 cp -a $install/usr/share/$PACKAGE $fs/usr/share
78 rm -rf $fs/usr/share/$PACKAGE/examples
79 }