wok-current view ffmpeg/receipt @ rev 24133

Up tazinst (115)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Oct 23 15:17:56 2021 +0000 (2021-10-23)
parents a449793b9af3
children 453c249b6219
line source
1 # SliTaz package receipt.
3 PACKAGE="ffmpeg"
4 VERSION="4.2.2"
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-avresample \
61 --enable-gnutls \
62 ${ARCH_ARGS} &&
63 make &&
64 make install
65 }
67 # Rules to gen a SliTaz package suitable for Tazpkg.
68 genpkg_rules()
69 {
70 mkdir -p \
71 $fs/usr/bin \
72 $fs/usr/lib \
73 $fs/usr/share
75 cp -a $install/usr/lib/*so* $fs/usr/lib
76 cp -a $install/usr/bin/ffmpeg $fs/usr/bin
77 cp -a $install/usr/share/$PACKAGE $fs/usr/share
79 rm -rf $fs/usr/share/$PACKAGE/examples
80 }