wok-current view gobject-introspection/receipt @ rev 16424
slitaz-boot-scripts: adapt receipt to ARM
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri Apr 18 04:48:19 2014 +0200 (2014-04-18) |
parents | 53082fab5f1e |
children | 1b038ed8ee2c |
line source
1 # SliTaz package receipt.
3 PACKAGE="gobject-introspection"
4 VERSION="1.32.1"
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 SERIES=$(echo $VERSION | cut -d. -f1,2)
12 WGET_URL="$GNOME_MIRROR/$PACKAGE/$SERIES/$TARBALL"
13 #HOST_ARCH="i486 arm"
15 DEPENDS="libgio dbus"
16 BUILD_DEPENDS="flex bison glib-dev python-dev libgio-dev libffi-dev \
17 cairo-dev dbus-dev"
19 # Handle cross compilation
20 case "$ARCH" in
21 arm*)
22 export CFLAGS="$CFLAGS -L/cross/$ARCH/sysroot/usr/lib"
23 export LDFLAGS="-L/cross/$ARCH/sysroot/usr/lib"
24 export PKG_CONFIG_PATH="/cross/$ARCH/sysroot/usr/pkgconfig"
25 BUILD_DEPENDS="glib-dev libgio-dev libffi-dev cairo-dev dbus-dev" ;;
26 esac
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 ./configure \
32 --disable-static \
33 $CONFIGURE_ARGS &&
34 make && make install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p \
41 $fs/usr/lib \
42 $fs/usr/share
43 cp -a $install/usr/bin $fs/usr
44 cp -a $install/usr/lib/girepository-1.0 $fs/usr/lib
45 cp -a $install/usr/lib/gobject-introspection $fs/usr/lib
46 cp -a $install/usr/lib/*.so* $fs/usr/lib
47 }