wok view gstreamer/receipt @ rev 18565

Add pass
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Nov 09 10:16:49 2015 +0100 (2015-11-09)
parents dead8955c3ca
children b6a74775afd4
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="http://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 # Rules to configure and make the package.
29 compile_rules()
30 {
31 ./configure \
32 --sysconfdir=/etc \
33 --localstatedir=/var \
34 --libexecdir=/usr/lib \
35 --enable-silent-rules \
36 --disable-static \
37 --disable-examples \
38 --disable-debug \
39 --with-package-name="GStreamer ($SERIES)" \
40 --with-package-origin="$origin" \
41 $CONFIGURE_ARGS &&
42 make $MAKEFLAGS && make install
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 mkdir -p $fs/usr/lib/gstreamer-$SERIES $fs/usr/bin $fs/usr/share/locale
49 cp -a $install/usr/bin/*-$SERIES $fs/usr/bin
50 cp -a $install/usr/lib/*.so* $fs/usr/lib
51 cp -a $install/usr/lib/gstreamer-$SERIES/*.so $fs/usr/lib/gstreamer-$SERIES
52 cp -a $install/usr/lib/gstreamer-$SERIES/gst-* $fs/usr/lib/gstreamer-$SERIES
53 for locale in $LOCALES; do
54 mv $install/usr/share/locale/$locale $fs/usr/share/locale
55 done
56 }