wok-next annotate gobject-introspection/receipt @ rev 19879
qemacs: does not need gcc3
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Oct 04 18:36:44 2017 +0200 (2017-10-04) |
parents | d7873beccb0f |
children | ab7c63b80420 |
rev | line source |
---|---|
al@19768 | 1 # SliTaz package receipt v2. |
slaxemulator@6668 | 2 |
slaxemulator@6668 | 3 PACKAGE="gobject-introspection" |
al@19768 | 4 VERSION="1.50.0" |
al@14225 | 5 CATEGORY="development" |
al@14225 | 6 SHORT_DESC="Introspection system for GObject-based libraries" |
slaxemulator@6668 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15021 | 8 LICENSE="LGPL2 MIT" |
al@19768 | 9 WEB_SITE="https://wiki.gnome.org/Projects/GObjectIntrospection" |
al@19682 | 10 #HOST_ARCH="i486 arm" |
al@19682 | 11 |
al@14225 | 12 TARBALL="$PACKAGE-$VERSION.tar.xz" |
yuripourre@16883 | 13 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL" |
al@14225 | 14 |
al@19768 | 15 BUILD_DEPENDS="glib-dev cairo-dev gtk-doc python-dev util-linux-mount-dev" |
al@19779 | 16 BUILD_DEPENDS_arm="glib-dev libffi-dev cairo-dev dbus-dev" |
al@19768 | 17 SPLIT="gobject-introspection-dev" |
pankso@16084 | 18 |
pankso@16084 | 19 # Handle cross compilation |
pankso@16084 | 20 case "$ARCH" in |
pankso@16084 | 21 arm*) |
al@19768 | 22 export CFLAGS="$CFLAGS -L/cross/$ARCH/sysroot/usr/lib" |
pascal@17670 | 23 export LDFLAGS="$LDFLAGS -L/cross/$ARCH/sysroot/usr/lib" |
al@19768 | 24 export PKG_CONFIG_PATH="/cross/$ARCH/sysroot/usr/pkgconfig" |
al@19682 | 25 ;; |
pankso@16084 | 26 esac |
slaxemulator@6668 | 27 |
slaxemulator@6668 | 28 # Rules to configure and make the package. |
slaxemulator@6668 | 29 compile_rules() |
slaxemulator@6668 | 30 { |
slaxemulator@6668 | 31 ./configure \ |
slaxemulator@6669 | 32 --disable-static \ |
slaxemulator@6668 | 33 $CONFIGURE_ARGS && |
pankso@16084 | 34 make && make install |
slaxemulator@6668 | 35 } |
slaxemulator@6668 | 36 |
slaxemulator@6668 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@6668 | 38 genpkg_rules() |
slaxemulator@6668 | 39 { |
al@19768 | 40 case $PACKAGE in |
al@19768 | 41 gobject-introspection) |
al@19768 | 42 copy @std *.typelib |
al@19768 | 43 rm -r $fs/usr/share |
al@19779 | 44 DEPENDS="glib libffi pcre util-linux-blkid util-linux-mount \ |
al@19768 | 45 util-linux-uuid zlib" |
al@19768 | 46 ;; |
al@19768 | 47 *-dev) |
al@19768 | 48 copy @std @dev |
al@19768 | 49 remove_already_packed |
al@19779 | 50 DEPENDS="gobject-introspection glib-dev libffi-dev \ |
al@19768 | 51 pcre-dev util-linux-blkid-dev util-linux-mount-dev \ |
al@19768 | 52 util-linux-uuid-dev zlib-dev" |
al@19768 | 53 ;; |
al@19768 | 54 esac |
slaxemulator@6668 | 55 } |