wok view ffmpeg/receipt @ rev 19662

Up ffmpeg (2.8.10), mpv (0.17.0) thanks I-Jurij
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jan 30 18:07:40 2017 +0100 (2017-01-30)
parents 6a4c46da8e17
children e3c243d75a44
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 lame rtmpdump harfbuzz xorg-libXau xorg-libXdmcp pcre libtasn1 nettle"
18 BUILD_DEPENDS="libsdl-dev zlib-dev bzip2-dev coreutils-file-format libvorbis-dev x264-dev x265-dev gnutls-dev linvpx-dev opus-dev lame-dev rtmpdump-dev harfbuzz-dev xorg-libXau-dev xorg-libXdmcp-dev pcre-dev nettle-dev \
19 coreutils-file-special yasm"
21 case "$SLITAZ_ARCH" in
22 arm*) DEPENDS="alsa-lib libsdl bzip2 zlib libvorbis x264 x265 gnutls libvpx opus lame rtmpdump harfbuzz xorg-libXau xorg-libXdmcp pcre libtasn1 nettle" ;;
23 esac
25 # Handle cross compilation. Host coreutils-file-* are used
26 case "$ARCH" in
27 i?86)
28 ARCH_ARGS="--arch=$ARCH --cpu=$ARCH" ;;
29 arm*)
30 BUILD_DEPENDS="zlib-dev bzip2-dev yasm"
31 ARCH_ARGS="--enable-cross-compile --arch=armel --target-os=linux \
32 --cross-prefix=$HOST_SYSTEM-" ;;
33 esac
35 # Rules to configure and make the package.
36 compile_rules()
37 {
38 ./configure \
39 --prefix=/usr \
40 --enable-gpl \
41 --enable-nonfree \
42 --enable-shared \
43 --disable-static \
44 --disable-doc \
45 --enable-libfreetype \
46 --enable-libmp3lame \
47 --enable-libopus \
48 --enable-libvorbis \
49 --enable-libvpx \
50 --enable-libx264 \
51 --enable-libx265
52 --enable-gnutls \
54 ${ARCH_ARGS} &&
55 make && make install
56 }
58 # Rules to gen a SliTaz package suitable for Tazpkg.
59 genpkg_rules()
60 {
61 mkdir -p \
62 $fs/usr/bin \
63 $fs/usr/lib \
64 $fs/usr/share
65 cp -a $install/usr/lib/*so* $fs/usr/lib
66 cp -a $install/usr/bin/ffmpeg $fs/usr/bin
67 cp -a $install/usr/share/$PACKAGE $fs/usr/share
68 rm -rf $fs/usr/share/$PACKAGE/examples
69 }