wok view gst-ffmpeg/receipt @ rev 25615
Add libslirp (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Aug 03 12:03:26 2023 +0000 (15 months ago) |
parents | 6831608a1b2a |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="gst-ffmpeg"
4 VERSION="0.10.13"
5 SERIES="${VERSION%.*}" # first two numbers from version
6 CATEGORY="multimedia"
7 SHORT_DESC="GStreamer FFmpeg Plugins"
8 MAINTAINER="jozee@slitaz.org"
9 LICENSE="GPL2"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WEB_SITE="https://gstreamer.freedesktop.org/"
12 WGET_URL="$WEB_SITE/src/$PACKAGE/$TARBALL"
14 PROVIDE="gst-ffmpeg-small"
16 DEPENDS="gst-plugins-base bzip2"
17 BUILD_DEPENDS="gstreamer-dev gst-plugins-base-dev bzip2-dev \
18 coreutils-file-format coreutils-file-special glib-dev yasm"
19 SUGGESTED="gst-plugins-good"
21 # What is the latest version available today?
22 current_version()
23 {
24 wget -O - https://gstreamer.freedesktop.org/src/$PACKAGE/ 2>/dev/null | \
25 sed '/tar/!d;s|.*'$PACKAGE'-||;s|.tar.*||' | sed '$!d'
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 sed -i 's|ORC_TARGET_ALTIVEC_ALTIVEC|ORC_TARGET_POWERPC_ALTIVEC|' ext/*/*.c
32 ./configure \
33 --prefix=/usr \
34 --disable-static \
35 --with-ffmpeg-extra-configure="--enable-runtime-cpudetect" \
36 --with-package-name="GStreamer FFMpeg Plugin ($SERIES)" \
37 --with-package-origin="http://www.slitaz.org/" \
38 $CONFIGURE_ARGS &&
39 sed 's/RANK_NONE/RANK_SECONDARY/g' -i $src/ext/ffmpeg/gstffmpegdec.c
40 make $MAKEFLAGS &&
41 make DESTDIR=$install install
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/usr/lib/gstreamer-$SERIES
48 cp -a $install/usr/lib/gstreamer-$SERIES/*.so* $fs/usr/lib/gstreamer-$SERIES
49 }