wok-6.x view ffmpeg/receipt @ rev 25122
Up apache (2.4.54)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jun 28 08:48:09 2022 +0000 (2022-06-28) |
parents | a8c19836fac1 |
children |
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 # What is the latest version available today?
44 current_version()
45 {
46 wget -O - ${WGET_URL%/*} 2>/dev/null | \
47 sed "/snapshot/d;/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
48 }
50 # Rules to configure and make the package.
51 compile_rules()
52 {
53 ./configure \
54 --prefix=/usr \
55 --enable-gpl \
56 --enable-nonfree \
57 --enable-shared \
58 --disable-static \
59 --disable-doc \
60 --enable-libfreetype \
61 --enable-libmp3lame \
62 --enable-libopus \
63 --enable-libvorbis \
64 --enable-libvpx \
65 --enable-libx264 \
66 --enable-libx265 \
67 --enable-avresample \
68 --enable-gnutls \
69 ${ARCH_ARGS} &&
70 make &&
71 make install
72 }
74 # Rules to gen a SliTaz package suitable for Tazpkg.
75 genpkg_rules()
76 {
77 mkdir -p \
78 $fs/usr/bin \
79 $fs/usr/lib \
80 $fs/usr/share
82 cp -a $install/usr/lib/*so* $fs/usr/lib
83 cp -a $install/usr/bin/ffmpeg $fs/usr/bin
84 cp -a $install/usr/share/$PACKAGE $fs/usr/share
86 rm -rf $fs/usr/share/$PACKAGE/examples
87 }