wok annotate gstreamer-1.0/receipt @ rev 20113

netsurf-sdl, qedit, mupdf : add desktop files
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Thu Oct 12 11:08:12 2017 +0200 (2017-10-12)
parents adcbf09e4135
children a78610b2eb47
rev   line source
pankso@16446 1 # SliTaz package receipt.
pankso@16446 2
pankso@16446 3 PACKAGE="gstreamer-1.0"
psychomaniak@19519 4 VERSION="1.10.1"
pankso@16446 5 SERIES="1.0"
pankso@16446 6 CATEGORY="multimedia"
pankso@16446 7 SHORT_DESC="GStreamer Multimedia Framework"
pankso@16465 8 MAINTAINER="pankso@slitaz.org"
pankso@16446 9 LICENSE="LGPL2"
pankso@16446 10 SOURCE="gstreamer"
pankso@16446 11 TARBALL="$SOURCE-$VERSION.tar.xz"
pankso@16446 12 WEB_SITE="http://gstreamer.freedesktop.org/"
pankso@16446 13 WGET_URL="$WEB_SITE/src/gstreamer/$TARBALL"
pankso@16465 14 HOST_ARCH="i486 arm"
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
pankso@16465 19 # Handle cross compilation
pankso@16465 20 case "$ARCH" in
pascal@16471 21 i?86) BUILD_DEPENDS="$BUILD_DEPENDS python-dev valgrind bison flex" ;;
pankso@16465 22 esac
pankso@16446 23
pankso@16446 24 # Rules to configure and make the package.
pankso@16446 25 compile_rules()
pankso@16446 26 {
psychomaniak@19519 27 sed '/set ERROR_CFLAGS/d' -i configure
psychomaniak@19519 28
pankso@16446 29 ./configure \
pankso@16446 30 --sysconfdir=/etc \
pankso@16446 31 --localstatedir=/var \
pankso@16446 32 --libexecdir=/usr/lib \
pankso@16446 33 --enable-silent-rules \
pankso@16446 34 --disable-static \
pankso@16446 35 --disable-examples \
pankso@16446 36 --disable-debug \
pankso@16446 37 --enable-introspection=no \
pankso@16446 38 --with-package-name="GStreamer ($SERIES)" \
pankso@16446 39 --with-package-origin="http://www.slitaz.org/" \
pankso@16446 40 $CONFIGURE_ARGS &&
psychomaniak@19519 41 make $MAKEFLAGS && make install 2>/dev/null
pankso@16446 42 }
pankso@16446 43
pankso@16446 44 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@16446 45 genpkg_rules()
pankso@16446 46 {
pankso@16446 47 mkdir -p $fs/usr/lib/gstreamer-$SERIES $fs/usr/bin $fs/usr/share/locale
pankso@16446 48 mv $install/usr/bin/*-$SERIES $fs/usr/bin
pankso@16446 49 mv $install/usr/lib/*.so* $fs/usr/lib
pankso@16446 50 mv $install/usr/lib/gstreamer-$SERIES/*.so $fs/usr/lib/gstreamer-$SERIES
pankso@16446 51 mv $install/usr/lib/gstreamer-$SERIES/gst-* $fs/usr/lib/gstreamer-$SERIES
pankso@16446 52 for locale in $LOCALES; do
pankso@16446 53 mv $install/usr/share/locale/$locale $fs/usr/share/locale
pankso@16446 54 done
pankso@16446 55 }