wok-6.x view ffmpeg/receipt @ rev 20816

Up busybox (1.30.1)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 18 16:16:24 2019 +0100 (2019-02-18)
parents 8def4d95979c
children d8057344b557
line source
1 # SliTaz package receipt.
3 PACKAGE="ffmpeg"
4 VERSION="2.8.10"
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 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WGET_URL="${WEB_SITE}releases/$TARBALL"
12 HOST_ARCH="i486 arm"
14 SUGGESTED="ffplay"
15 TAGS="audio video convert stream"
17 DEPENDS="alsa-lib libsdl bzip2 zlib libvorbis x264 x265 gnutls libvpx opus \
18 lame rtmpdump harfbuzz xorg-libXau xorg-libXdmcp pcre libtasn1 nettle"
19 BUILD_DEPENDS="libsdl-dev zlib-dev bzip2-dev coreutils-file-format \
20 libvorbis-dev x264-dev x265-dev gnutls-dev libvpx-dev opus-dev lame-dev \
21 rtmpdump-dev harfbuzz-dev xorg-libXau-dev xorg-libXdmcp-dev pcre-dev \
22 nettle-dev coreutils-file-special yasm libgnutls"
24 case "$SLITAZ_ARCH" in
25 arm*) DEPENDS="alsa-lib libsdl bzip2 zlib libvorbis x264 x265 gnutls \
26 libvpx opus lame rtmpdump harfbuzz xorg-libXau xorg-libXdmcp \
27 pcre libtasn1 nettle" ;;
28 esac
30 # Handle cross compilation. Host coreutils-file-* are used
31 case "$ARCH" in
32 i?86)
33 ARCH_ARGS="--arch=$ARCH --cpu=$ARCH" ;;
34 arm*)
35 BUILD_DEPENDS="zlib-dev bzip2-dev yasm"
36 ARCH_ARGS="--enable-cross-compile --arch=armel --target-os=linux \
37 --cross-prefix=$HOST_SYSTEM-" ;;
38 esac
40 # Rules to configure and make the package.
41 compile_rules()
42 {
43 ./configure \
44 --prefix=/usr \
45 --enable-gpl \
46 --enable-nonfree \
47 --enable-shared \
48 --disable-static \
49 --disable-doc \
50 --enable-libfreetype \
51 --enable-libmp3lame \
52 --enable-libopus \
53 --enable-libvorbis \
54 --enable-libvpx \
55 --enable-libx264 \
56 --enable-libx265 \
57 --enable-gnutls \
58 ${ARCH_ARGS} &&
59 make && make install
60 }
62 # Rules to gen a SliTaz package suitable for Tazpkg.
63 genpkg_rules()
64 {
65 mkdir -p \
66 $fs/usr/bin \
67 $fs/usr/lib \
68 $fs/usr/share
69 cp -a $install/usr/lib/*so* $fs/usr/lib
70 cp -a $install/usr/bin/ffmpeg $fs/usr/bin
71 cp -a $install/usr/share/$PACKAGE $fs/usr/share
72 rm -rf $fs/usr/share/$PACKAGE/examples
73 }