wok-next annotate ffmpeg/receipt @ rev 19941
gst0-ffmpeg*: tiny patch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Oct 15 19:06:21 2017 +0200 (2017-10-15) |
parents | 6a4c46da8e17 |
children | 3417c3ffbd13 |
rev | line source |
---|---|
al@19825 | 1 # SliTaz package receipt v2. |
pascal@1708 | 2 |
pascal@1708 | 3 PACKAGE="ffmpeg" |
al@19825 | 4 VERSION="3.2.4" |
pascal@1708 | 5 CATEGORY="multimedia" |
al@19825 | 6 SHORT_DESC="Record, convert and stream audio and video" |
pascal@1708 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15215 | 8 LICENSE="GPL2 LGPL2.1" |
jozee@2675 | 9 WEB_SITE="http://ffmpeg.org/" |
pankso@16026 | 10 HOST_ARCH="i486 arm" |
pankso@16026 | 11 |
al@19825 | 12 TARBALL="$PACKAGE-$VERSION.tar.xz" |
al@19825 | 13 WGET_URL="${WEB_SITE}releases/$TARBALL" |
pankso@13016 | 14 |
al@19825 | 15 BUILD_DEPENDS_arm="zlib-dev bzip2-dev yasm" |
al@19825 | 16 #BUILD_DEPENDS="libsdl-dev zlib-dev bzip2-dev coreutils-file-format \ |
al@19825 | 17 #coreutils-file-special yasm" |
al@19825 | 18 BUILD_DEPENDS="coreutils-file-format libass-dev fdk-aac-dev lame-dev opus-dev \ |
al@19825 | 19 libtheora-dev libvorbis-dev libvpx-dev x264-dev x265-dev xorg-libX11-dev" |
al@19825 | 20 SPLIT="ffmpeg-dev" |
pankso@16026 | 21 |
pascal@1708 | 22 # Rules to configure and make the package. |
pascal@1708 | 23 compile_rules() |
pascal@1708 | 24 { |
al@19825 | 25 # http://www.linuxfromscratch.org/blfs/view/stable/multimedia/ffmpeg.html |
al@19825 | 26 |
al@19825 | 27 # Handle cross compilation. |
al@19825 | 28 case "$ARCH" in |
al@19825 | 29 i?86) ARCH_ARGS="--arch=$ARCH --cpu=$ARCH" ;; |
al@19825 | 30 arm*) ARCH_ARGS="--enable-cross-compile --arch=armel --target-os=linux \ |
al@19825 | 31 --cross-prefix=$HOST_SYSTEM-" ;; |
al@19825 | 32 esac |
al@19825 | 33 |
pankso@4460 | 34 ./configure \ |
pankso@4460 | 35 --prefix=/usr \ |
al@19825 | 36 --enable-gpl \ |
al@19825 | 37 --enable-version3 \ |
al@19825 | 38 --enable-nonfree \ |
al@19825 | 39 --disable-static \ |
domcox@12846 | 40 --enable-shared \ |
al@19825 | 41 --disable-debug \ |
al@19825 | 42 --enable-libass \ |
al@19825 | 43 --enable-libfdk-aac \ |
al@19825 | 44 --enable-libfreetype \ |
al@19825 | 45 --enable-libmp3lame \ |
al@19825 | 46 --enable-libopus \ |
al@19825 | 47 --enable-libtheora \ |
al@19825 | 48 --enable-libvorbis \ |
al@19825 | 49 --enable-libvpx \ |
al@19825 | 50 --enable-libx264 \ |
al@19825 | 51 --enable-libx265 \ |
al@19825 | 52 --enable-x11grab \ |
al@19825 | 53 --docdir=/usr/share/doc/ffmpeg-$VERSION \ |
domcox@12846 | 54 --enable-runtime-cpudetect \ |
al@19825 | 55 $ARCH_ARGS && |
al@19825 | 56 |
al@19825 | 57 # --enable-avresample \ |
al@19825 | 58 # --enable-pthreads \ |
al@19825 | 59 # --enable-small \ |
al@19825 | 60 # --enable-ffserver \ |
al@19825 | 61 # --disable-ffprobe \ |
al@19825 | 62 # --disable-encoder=h263 \ |
al@19825 | 63 # --disable-encoder=h263p \ |
al@19825 | 64 # --disable-encoder=mpeg2video \ |
al@19825 | 65 # --disable-encoder=msmpeg4v2 \ |
al@19825 | 66 # --disable-encoder=msmpeg4v3 \ |
al@19825 | 67 # --disable-symver \ |
al@19825 | 68 # --disable-doc \ |
al@19825 | 69 |
al@19825 | 70 make && |
al@19825 | 71 gcc tools/qt-faststart.c -o tools/qt-faststart && |
al@19825 | 72 make install && |
al@19825 | 73 install -v -m755 tools/qt-faststart $install/usr/bin && |
al@19825 | 74 docdir=$install/usr/share/doc/ffmpeg-$VERSION && |
al@19825 | 75 mkdir -p $docdir && |
al@19825 | 76 cp doc/*.txt $docdir |
pascal@1708 | 77 } |
pascal@1708 | 78 |
pascal@1708 | 79 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1708 | 80 genpkg_rules() |
pascal@1708 | 81 { |
al@19825 | 82 case $PACKAGE in |
al@19825 | 83 ffmpeg) |
al@19825 | 84 copy @std |
al@19825 | 85 rm -rf $fs/usr/share/$PACKAGE/examples/ |
al@19825 | 86 SUGGESTED="ffplay" |
al@19825 | 87 TAGS="audio video convert stream" |
al@19825 | 88 DEPENDS="bzlib fdk-aac freetype lame libass liblzma libtheora-enc \ |
al@19825 | 89 libvorbis libvpx opus x264 x265 xorg-libxcb zlib" |
al@19825 | 90 case "$SLITAZ_ARCH" in |
al@19825 | 91 arm*) DEPENDS="alsa-lib bzip2 zlib" ;; |
al@19825 | 92 esac |
al@19825 | 93 ;; |
al@19825 | 94 *-dev) |
al@19825 | 95 copy @dev examples/ |
al@19825 | 96 DEPENDS="ffmpeg bzip2-dev fdk-aac-dev freetype-dev lame-dev \ |
al@19825 | 97 libass-dev libogg-dev libtheora-dev libvorbis-dev libvpx-dev \ |
al@19825 | 98 opus-dev x264-dev x265-dev xorg-libX11-dev xorg-libxcb-dev xz-dev \ |
al@19825 | 99 zlib-dev" |
al@19825 | 100 ;; |
al@19825 | 101 esac |
pascal@1708 | 102 } |