wok view gstreamer/receipt @ rev 24070

Up harfbuzz (2.8.1)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jul 06 14:28:49 2021 +0000 (2021-07-06)
parents df98a48adee2
children 6831608a1b2a
line source
1 # SliTaz package receipt.
3 PACKAGE="gstreamer"
4 VERSION="0.10.36"
5 SERIES="0.10"
6 CATEGORY="multimedia"
7 SHORT_DESC="GStreamer Multimedia Framework"
8 MAINTAINER="jozee@slitaz.org"
9 LICENSE="LGPL2"
10 TARBALL="$PACKAGE-$VERSION.tar.xz"
11 WEB_SITE="https://gstreamer.freedesktop.org/"
12 WGET_URL="$WEB_SITE/src/$PACKAGE/$TARBALL"
13 HOST_ARCH="i486 arm"
15 LOCALES="da de es fr id it pt_BR ru zh_CN"
16 DEPENDS="glib libgio libxml2"
17 BUILD_DEPENDS="glib-dev libgio-dev libxml2-dev"
19 # Handle cross compilation
20 case "$ARCH" in
21 i?86) BUILD_DEPENDS="$BUILD_DEPENDS gobject-introspection-dev \
22 python-dev bison flex m4 valgrind"
23 origin="http://www.slitaz.org" ;;
24 arm*)
25 origin="http://arm.slitaz.org"
26 esac
28 current_version()
29 {
30 wget -O - https://gstreamer.freedesktop.org/src/$PACKAGE/ 2>/dev/null | \
31 sed /$PACKAGE'-0/!d;s|.*'$PACKAGE'-||;s|.tar.*||' | sed '$!d'
32 }
34 # Rules to configure and make the package.
35 compile_rules()
36 {
37 # YYLEX_PARAM is no longer supported in Bison 3
38 sed -i "/YYLEX_PARAM/d;s|%left '!.*|&\\n%lex-param { void *scanner }|" \
39 gst/parse/grammar.y
41 ./configure \
42 --sysconfdir=/etc \
43 --localstatedir=/var \
44 --libexecdir=/usr/lib \
45 --enable-silent-rules \
46 --disable-static \
47 --disable-examples \
48 --disable-debug \
49 --with-package-name="GStreamer ($SERIES)" \
50 --with-package-origin="$origin" \
51 $CONFIGURE_ARGS &&
52 make $MAKEFLAGS && make install
53 }
55 # Rules to gen a SliTaz package suitable for Tazpkg.
56 genpkg_rules()
57 {
58 mkdir -p $fs/usr/lib/gstreamer-$SERIES $fs/usr/bin $fs/usr/share/locale
59 cp -a $install/usr/bin/*-$SERIES $fs/usr/bin
60 cp -a $install/usr/lib/*.so* $fs/usr/lib
61 cp -a $install/usr/lib/gstreamer-$SERIES/*.so $fs/usr/lib/gstreamer-$SERIES
62 cp -a $install/usr/lib/gstreamer-$SERIES/gst-* $fs/usr/lib/gstreamer-$SERIES
63 # for locale in $LOCALES; do
64 # mv $install/usr/share/locale/$locale $fs/usr/share/locale
65 # done
66 }