wok annotate gstreamer/receipt @ rev 22812
gstreamer: YYLEX_PARAM is no longer supported in Bison 3
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Feb 01 10:55:30 2020 +0100 (2020-02-01) |
parents | a78610b2eb47 |
children | 3cdc90c472a2 |
rev | line source |
---|---|
jozee@2674 | 1 # SliTaz package receipt. |
jozee@2674 | 2 |
jozee@2674 | 3 PACKAGE="gstreamer" |
domcox@14015 | 4 VERSION="0.10.36" |
domcox@14015 | 5 SERIES="0.10" |
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 |
jozee@2674 | 28 # Rules to configure and make the package. |
jozee@2674 | 29 compile_rules() |
jozee@2674 | 30 { |
pascal@22812 | 31 # YYLEX_PARAM is no longer supported in Bison 3 |
pascal@22812 | 32 sed -i "/YYLEX_PARAM/d;s|%left '!.*|&\\n%lex-param { void *scanner }|" \ |
pascal@22812 | 33 gst/parse/grammar.y |
pascal@22812 | 34 |
pankso@4068 | 35 ./configure \ |
pankso@4068 | 36 --sysconfdir=/etc \ |
pankso@4068 | 37 --localstatedir=/var \ |
slaxemulator@11184 | 38 --libexecdir=/usr/lib \ |
domcox@14473 | 39 --enable-silent-rules \ |
domcox@14015 | 40 --disable-static \ |
domcox@14015 | 41 --disable-examples \ |
domcox@14015 | 42 --disable-debug \ |
domcox@14015 | 43 --with-package-name="GStreamer ($SERIES)" \ |
pankso@16236 | 44 --with-package-origin="$origin" \ |
pascal@15265 | 45 $CONFIGURE_ARGS && |
gokhlayeh@11574 | 46 make $MAKEFLAGS && make install |
jozee@2674 | 47 } |
jozee@2674 | 48 |
jozee@2674 | 49 # Rules to gen a SliTaz package suitable for Tazpkg. |
jozee@2674 | 50 genpkg_rules() |
jozee@2674 | 51 { |
domcox@14015 | 52 mkdir -p $fs/usr/lib/gstreamer-$SERIES $fs/usr/bin $fs/usr/share/locale |
pankso@16236 | 53 cp -a $install/usr/bin/*-$SERIES $fs/usr/bin |
pankso@16236 | 54 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pankso@16236 | 55 cp -a $install/usr/lib/gstreamer-$SERIES/*.so $fs/usr/lib/gstreamer-$SERIES |
pankso@16236 | 56 cp -a $install/usr/lib/gstreamer-$SERIES/gst-* $fs/usr/lib/gstreamer-$SERIES |
psychomaniak@19130 | 57 # for locale in $LOCALES; do |
psychomaniak@19130 | 58 # mv $install/usr/share/locale/$locale $fs/usr/share/locale |
psychomaniak@19130 | 59 # done |
jozee@2674 | 60 } |