wok-next annotate glib/receipt @ rev 15342

mplayerplug-in, gecko-mediaplayer: add -I/usr/include/nspr
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Sep 29 15:05:37 2013 +0000 (2013-09-29)
parents 380ffe05937a
children fd22b033a84a
rev   line source
pascal@6023 1 # SliTaz package receipt.
pankso@22 2
pankso@22 3 PACKAGE="glib"
pascal@13394 4 VERSION="2.32.4"
pankso@22 5 CATEGORY="x-window"
pankso@22 6 SHORT_DESC="C routines."
pankso@22 7 MAINTAINER="pankso@slitaz.org"
pascal@15000 8 LICENSE="GPL2"
pankso@12471 9 TARBALL="$PACKAGE-$VERSION.tar.xz"
pankso@22 10 WEB_SITE="http://www.gtk.org/"
slaxemulator@10985 11 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION:0:4}/$TARBALL"
pankso@22 12
pankso@12471 13 DEPENDS="pcre libffi libxml2 elfutils"
pankso@12471 14 BUILD_DEPENDS="pcre-dev libffi-dev gettext zlib-dev perl python python-dev \
pankso@12471 15 elfutils-dev libxml2-dev libxml2-tools"
slaxemulator@10804 16
pankso@22 17 # Rules to configure and make the package.
pankso@22 18 compile_rules()
pankso@22 19 {
pankso@842 20 cd $src
slaxemulator@10245 21 ./configure --sysconfdir=/etc \
pankso@12471 22 --with-pcre=system \
pankso@12471 23 $CONFIGURE_ARGS &&
slaxemulator@10245 24 make && make install
pankso@22 25 }
pankso@22 26
pankso@22 27 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@22 28 genpkg_rules()
pankso@22 29 {
pankso@547 30 mkdir -p $fs/usr/lib
slaxemulator@11626 31 cp -a $install/usr/bin $fs/usr
slaxemulator@10985 32 cp -a $install/usr/lib/*.so* $fs/usr/lib
pankso@12471 33
pankso@12471 34 # Split gio --> libgio
pankso@842 35 rm $fs/usr/lib/libgio*
pankso@12471 36
slaxemulator@12597 37 # Python codegen, tester, Perl mkenums --> glib-dev
slaxemulator@12597 38 for bin in gdbus-codegen gtester* glib-mkenums
pankso@12471 39 do
pankso@12471 40 rm $fs/usr/bin/$bin
pankso@12471 41 done
pankso@12471 42
pankso@12471 43 # Cook packages that want glib.
pankso@12471 44 for w in libgio libgio-dev
pankso@12471 45 do
pascal@15152 46 [ -x "/usr/bin/cook" ] && echo cook $w
pankso@12471 47 done
pankso@22 48 }