wok-next diff gst0-ffmpeg/receipt @ rev 20630
Up gegl, giflib, graphite2.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Apr 27 01:47:24 2018 +0300 (2018-04-27) |
parents | 5af737a221b4 |
children | d958fec46c9f |
line diff
1.1 --- a/gst0-ffmpeg/receipt Sun Oct 15 19:06:21 2017 +0200 1.2 +++ b/gst0-ffmpeg/receipt Fri Apr 27 01:47:24 2018 +0300 1.3 @@ -1,42 +1,66 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="gst0-ffmpeg" 1.8 VERSION="0.10.13" 1.9 -SERIES="0.10" 1.10 CATEGORY="multimedia" 1.11 -SHORT_DESC="GStreamer FFmpeg Plugins" 1.12 -MAINTAINER="jozee@slitaz.org" 1.13 +SHORT_DESC="GStreamer-0.10 FFmpeg Plugins" 1.14 +MAINTAINER="jozee@slitaz.org" # + psychomaniak@xakep.ru 1.15 LICENSE="GPL2" 1.16 +WEB_SITE="http://gstreamer.freedesktop.org/" 1.17 + 1.18 TARBALL="gst-ffmpeg-$VERSION.tar.bz2" 1.19 -WEB_SITE="http://gstreamer.freedesktop.org/" 1.20 WGET_URL="$WEB_SITE/src/gst-ffmpeg/$TARBALL" 1.21 1.22 -PROVIDE="gst0-ffmpeg-small" 1.23 - 1.24 -DEPENDS="gst0-plugins-base bzip2" 1.25 BUILD_DEPENDS="gstreamer0-dev gst0-plugins-base-dev bzip2-dev \ 1.26 coreutils-file-format coreutils-file-special glib-dev yasm" 1.27 -SUGGESTED="gst0-plugins-good" 1.28 +SPLIT="gst0-ffmpeg-small:small" 1.29 1.30 -# Rules to configure and make the package. 1.31 -compile_rules() 1.32 -{ 1.33 +compile_rules() { 1.34 + case $SET in 1.35 + '') ARCH_ARGS="--enable-runtime-cpudetect";; 1.36 + small) ARCH_ARGS="--enable-runtime-cpudetect \ 1.37 + --disable-bsfs \ 1.38 + --disable-parsers \ 1.39 + --disable-encoders \ 1.40 + --disable-decoders \ 1.41 + --disable-demuxers \ 1.42 + --disable-muxers \ 1.43 + --enable-decoder=h264 \ 1.44 + --enable-decoder=aac_latm \ 1.45 + --enable-decoder=aac \ 1.46 + --enable-decoder=mpeg4 \ 1.47 + --enable-decoder=mp3float \ 1.48 + --enable-decoder=vp8 \ 1.49 + --enable-decoder=flv";; 1.50 + esac 1.51 + 1.52 sed -i 's/"g"/"rm"/' gst-libs/ext/libav/libavcodec/x86/h264_qpel_mmx.c 1.53 + 1.54 ./configure \ 1.55 - --prefix=/usr \ 1.56 --disable-static \ 1.57 - --with-ffmpeg-extra-configure="--enable-runtime-cpudetect" \ 1.58 - --with-package-name="GStreamer FFMpeg Plugin ($SERIES)" \ 1.59 + --with-ffmpeg-extra-configure="$ARCH_ARGS" \ 1.60 + --with-package-name="GStreamer FFMpeg Plugin (0.10)" \ 1.61 --with-package-origin="http://www.slitaz.org/" \ 1.62 $CONFIGURE_ARGS && 1.63 - sed 's/RANK_NONE/RANK_SECONDARY/g' -i $src/ext/ffmpeg/gstffmpegdec.c 1.64 + fix libtool && 1.65 + sed 's/RANK_NONE/RANK_SECONDARY/g' -i $src/ext/ffmpeg/gstffmpegdec.c && 1.66 make $MAKEFLAGS && 1.67 make DESTDIR=$install install 1.68 } 1.69 1.70 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.71 -genpkg_rules() 1.72 -{ 1.73 - mkdir -p $fs/usr/lib/gstreamer-$SERIES 1.74 - cp -a $install/usr/lib/gstreamer-$SERIES/*.so* $fs/usr/lib/gstreamer-$SERIES 1.75 +genpkg_rules() { 1.76 + case $PACKAGE in 1.77 + gst0-ffmpeg) 1.78 + copy @std 1.79 + DEPENDS="gst0-plugins-base bzip2" 1.80 + SUGGESTED="gst0-plugins-good" 1.81 + PROVIDE="gst0-ffmpeg-small" 1.82 + ;; 1.83 + gst0-ffmpeg-small) 1.84 + copy @std 1.85 + DEPENDS="gst0-plugins-base bzip2" 1.86 + CAT="multimedia|small set" 1.87 + SUGGESTED="gst0-plugins-good" 1.88 + ;; 1.89 + esac 1.90 }