wok-next view gst0-ffmpeg/receipt @ rev 21020
Cleaning is almost finished... I should proceed to upgrades.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 02 14:15:08 2018 +0200 (2018-11-02) |
parents | a3c581bf52b8 |
children |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="gst0-ffmpeg"
4 VERSION="0.10.13"
5 CATEGORY="multimedia"
6 SHORT_DESC="GStreamer-0.10 FFmpeg Plugins"
7 MAINTAINER="psychomaniak@xakep.ru"
8 LICENSE="GPL2"
9 WEB_SITE="https://gstreamer.freedesktop.org/"
10 REPOLOGY="gstreamer0plugins:ffmpeg"
12 TARBALL="gst-ffmpeg-$VERSION.tar.bz2"
13 WGET_URL="$WEB_SITE/src/gst-ffmpeg/$TARBALL"
15 BUILD_DEPENDS="gstreamer0-dev gst0-plugins-base-dev bzip2-dev \
16 coreutils-file-format coreutils-file-special glib-dev yasm"
17 SPLIT="$PACKAGE-small:small"
19 compile_rules() {
20 case $SET in
21 '') ARCH_ARGS="--enable-runtime-cpudetect";;
22 small) ARCH_ARGS="--enable-runtime-cpudetect \
23 --disable-bsfs \
24 --disable-parsers \
25 --disable-encoders \
26 --disable-decoders \
27 --disable-demuxers \
28 --disable-muxers \
29 --enable-decoder=h264 \
30 --enable-decoder=aac_latm \
31 --enable-decoder=aac \
32 --enable-decoder=mpeg4 \
33 --enable-decoder=mp3float \
34 --enable-decoder=vp8 \
35 --enable-decoder=flv";;
36 esac
38 sed -i 's/"g"/"rm"/' gst-libs/ext/libav/libavcodec/x86/h264_qpel_mmx.c
40 ./configure \
41 --disable-static \
42 --with-ffmpeg-extra-configure="$ARCH_ARGS" \
43 --with-package-name="GStreamer FFMpeg Plugin (0.10)" \
44 --with-package-origin="http://www.slitaz.org/" \
45 $CONFIGURE_ARGS &&
46 fix libtool &&
47 sed 's/RANK_NONE/RANK_SECONDARY/g' -i $src/ext/ffmpeg/gstffmpegdec.c &&
48 make $MAKEFLAGS &&
49 make DESTDIR=$install install
50 }
52 genpkg_rules() {
53 case $PACKAGE in
54 gst0-ffmpeg)
55 copy @std
56 DEPENDS="gst0-plugins-base bzip2"
57 SUGGESTED="gst0-plugins-good"
58 PROVIDE="gst0-ffmpeg-small"
59 ;;
60 gst0-ffmpeg-small)
61 copy @std
62 DEPENDS="gst0-plugins-base bzip2"
63 CAT="multimedia|small set"
64 SUGGESTED="gst0-plugins-good"
65 ;;
66 esac
67 }