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