wok-6.x view gobject-introspection/receipt @ rev 17448

Add Qcad 2D CAD application
author Christophe Lincoln <pankso@slitaz.org>
date Sun Dec 14 10:13:18 2014 +0100 (2014-12-14)
parents a4569c7ba24f
children 4a3d38846288
line source
1 # SliTaz package receipt.
3 PACKAGE="gobject-introspection"
4 VERSION="1.34.2"
5 CATEGORY="development"
6 SHORT_DESC="Introspection system for GObject-based libraries"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="LGPL2 MIT"
9 WEB_SITE="http://live.gnome.org/GObjectInstrospection"
10 TARBALL="$PACKAGE-$VERSION.tar.xz"
11 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"
12 #HOST_ARCH="i486 arm"
14 DEPENDS="libgio dbus"
15 BUILD_DEPENDS="flex bison glib-dev python-dev libgio-dev libffi-dev \
16 cairo-dev dbus-dev"
18 # Handle cross compilation
19 case "$ARCH" in
20 arm*)
21 export CFLAGS="$CFLAGS -L/cross/$ARCH/sysroot/usr/lib"
22 export LDFLAGS="-L/cross/$ARCH/sysroot/usr/lib"
23 export PKG_CONFIG_PATH="/cross/$ARCH/sysroot/usr/pkgconfig"
24 BUILD_DEPENDS="glib-dev libgio-dev libffi-dev cairo-dev dbus-dev" ;;
25 esac
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 ./configure \
31 --disable-static \
32 $CONFIGURE_ARGS &&
33 make && make install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p \
40 $fs/usr/lib \
41 $fs/usr/share
42 cp -a $install/usr/bin $fs/usr
43 cp -a $install/usr/lib/girepository-1.0 $fs/usr/lib
44 cp -a $install/usr/lib/gobject-introspection $fs/usr/lib
45 cp -a $install/usr/lib/*.so* $fs/usr/lib
46 }