wok-next view gobject-introspection/receipt @ rev 19714

Up cookutils (901)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri May 12 16:19:41 2017 +0300 (2017-05-12)
parents 17e313b5b9c1
children d7873beccb0f
line source
1 # SliTaz package receipt.
3 PACKAGE="gobject-introspection"
4 VERSION="1.48.0"
5 CATEGORY="development"
6 SHORT_DESC="Introspection system for GObject-based libraries"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="LGPL2 MIT"
9 WEB_SITE="https://wiki.gnome.org/Projects/GObjectInstrospection"
10 #HOST_ARCH="i486 arm"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"
15 DEPENDS="glib glibc-base libffi libgio pcre zlib dbus"
16 BUILD_DEPENDS="glib-dev cairo-dev gtk-doc python-dev"
17 BUILD_DEPENDS_arm="glib-dev libgio-dev libffi-dev 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="$LDFLAGS -L/cross/$ARCH/sysroot/usr/lib"
24 export PKG_CONFIG_PATH="/cross/$ARCH/sysroot/usr/pkgconfig"
25 BUILD_DEPENDS=$BUILD_SEPENDS_arm
26 ;;
27 esac
29 # Rules to configure and make the package.
30 compile_rules()
31 {
32 ./configure \
33 --disable-static \
34 $CONFIGURE_ARGS &&
35 make && make install
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 cook_copy_folders bin girepository-1.0 gobject-introspection
42 cook_copy_files *.so*
43 find $fs -name '*.la' -delete
44 }