wok annotate gstreamer-1.0/receipt @ rev 25378
updated ufw (0.36 -> 0.36.1)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Jul 30 15:14:33 2022 +0100 (2022-07-30) |
parents | 800de22df35e |
children |
rev | line source |
---|---|
pankso@16446 | 1 # SliTaz package receipt. |
pankso@16446 | 2 |
pankso@16446 | 3 PACKAGE="gstreamer-1.0" |
Hans-G?nter@22888 | 4 VERSION="1.16.2" |
pankso@16446 | 5 SERIES="1.0" |
pankso@16446 | 6 CATEGORY="multimedia" |
Hans-G?nter@22888 | 7 SHORT_DESC="GStreamer Multimedia Framework." |
pankso@16465 | 8 MAINTAINER="pankso@slitaz.org" |
pankso@16446 | 9 LICENSE="LGPL2" |
Hans-G?nter@22888 | 10 WEB_SITE="https://gstreamer.freedesktop.org/" |
Hans-G?nter@22888 | 11 |
pankso@16446 | 12 SOURCE="gstreamer" |
pankso@16446 | 13 TARBALL="$SOURCE-$VERSION.tar.xz" |
pankso@16446 | 14 WGET_URL="$WEB_SITE/src/gstreamer/$TARBALL" |
pankso@16446 | 15 |
pankso@16446 | 16 DEPENDS="glib libgio libxml2" |
pankso@16465 | 17 BUILD_DEPENDS="glib-dev libgio-dev libxml2-dev pkg-config" |
pankso@16465 | 18 |
Hans-G?nter@22888 | 19 HOST_ARCH="i486 arm" |
Hans-G?nter@22888 | 20 |
pankso@16465 | 21 # Handle cross compilation |
pankso@16465 | 22 case "$ARCH" in |
Hans-G?nter@22888 | 23 i?86) BUILD_DEPENDS="$BUILD_DEPENDS bison flex python-dev valgrind" ;; |
pankso@16465 | 24 esac |
pankso@16446 | 25 |
pascal@24070 | 26 current_version() |
pascal@24070 | 27 { |
pascal@24070 | 28 wget -O - https://gstreamer.freedesktop.org/src/${PACKAGE%-1.0}/ 2>/dev/null | \ |
pascal@24070 | 29 sed '/tar/!d;s|.*'${PACKAGE%-1.0}'-||;s|.tar.*||' | sed '$!d' |
pascal@24070 | 30 } |
pascal@24070 | 31 |
pankso@16446 | 32 # Rules to configure and make the package. |
pankso@16446 | 33 compile_rules() |
pankso@16446 | 34 { |
Hans-G?nter@22888 | 35 sed -i '/set ERROR_CFLAGS/d' configure |
Hans-G?nter@22888 | 36 |
pascal@23892 | 37 # Update for make 3.81 |
pascal@23892 | 38 sed -i 's|\\#|#|' libs/gst/controller/Makefile* |
pascal@23892 | 39 |
Hans-G?nter@22888 | 40 ./configure \ |
Hans-G?nter@22888 | 41 --sysconfdir=/etc \ |
Hans-G?nter@22888 | 42 --localstatedir=/var \ |
Hans-G?nter@22888 | 43 --libexecdir=/usr/lib \ |
Hans-G?nter@22888 | 44 --enable-silent-rules \ |
Hans-G?nter@22888 | 45 --disable-static \ |
Hans-G?nter@22888 | 46 --disable-examples \ |
Hans-G?nter@22888 | 47 --disable-debug \ |
Hans-G?nter@22888 | 48 --enable-introspection=no \ |
Hans-G?nter@22888 | 49 --with-package-name="GStreamer ($SERIES)" \ |
Hans-G?nter@22888 | 50 --with-package-origin="http://www.slitaz.org/" \ |
pankso@16446 | 51 $CONFIGURE_ARGS && |
Hans-G?nter@22888 | 52 make $MAKEFLAGS && |
Hans-G?nter@22888 | 53 make install 2>/dev/null |
pankso@16446 | 54 } |
pankso@16446 | 55 |
pankso@16446 | 56 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@16446 | 57 genpkg_rules() |
pankso@16446 | 58 { |
Hans-G?nter@22888 | 59 mkdir -p $fs/usr/lib/gstreamer-$SERIES |
Hans-G?nter@22888 | 60 mkdir -p $fs/usr/bin |
Hans-G?nter@22888 | 61 mkdir -p $fs/usr/share/locale |
Hans-G?nter@22888 | 62 |
Hans-G?nter@22888 | 63 mv $install/usr/bin/*-$SERIES $fs/usr/bin |
Hans-G?nter@22888 | 64 mv $install/usr/lib/*.so* $fs/usr/lib |
Hans-G?nter@22888 | 65 mv $install/usr/lib/gstreamer-$SERIES/*.so $fs/usr/lib/gstreamer-$SERIES |
Hans-G?nter@22888 | 66 mv $install/usr/lib/gstreamer-$SERIES/gst-* $fs/usr/lib/gstreamer-$SERIES |
Hans-G?nter@22888 | 67 for locale in $LOCALES |
Hans-G?nter@22888 | 68 do |
Hans-G?nter@22888 | 69 mv $install/usr/share/locale/$locale $fs/usr/share/locale |
Hans-G?nter@22888 | 70 done |
pankso@16446 | 71 } |