wok-current annotate gobject-introspection/receipt @ rev 21712

get-LibreOffice: fix menu entries
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jun 09 10:58:25 2019 +0200 (2019-06-09)
parents 17e313b5b9c1
children 6831608a1b2a
rev   line source
slaxemulator@6668 1 # SliTaz package receipt.
slaxemulator@6668 2
slaxemulator@6668 3 PACKAGE="gobject-introspection"
devl547@17593 4 VERSION="1.43.3"
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"
pascal@20673 9 WEB_SITE="https://wiki.gnome.org/Projects/GObjectIntrospection"
al@14225 10 TARBALL="$PACKAGE-$VERSION.tar.xz"
yuripourre@16883 11 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"
pankso@16084 12 #HOST_ARCH="i486 arm"
al@14225 13
pascal@16215 14 DEPENDS="libgio dbus"
pankso@16084 15 BUILD_DEPENDS="flex bison glib-dev python-dev libgio-dev libffi-dev \
pankso@16084 16 cairo-dev dbus-dev"
pankso@16084 17
pankso@16084 18 # Handle cross compilation
pankso@16084 19 case "$ARCH" in
pankso@16084 20 arm*)
pankso@16084 21 export CFLAGS="$CFLAGS -L/cross/$ARCH/sysroot/usr/lib"
pascal@17670 22 export LDFLAGS="$LDFLAGS -L/cross/$ARCH/sysroot/usr/lib"
pankso@16084 23 export PKG_CONFIG_PATH="/cross/$ARCH/sysroot/usr/pkgconfig"
pankso@16084 24 BUILD_DEPENDS="glib-dev libgio-dev libffi-dev cairo-dev dbus-dev" ;;
pankso@16084 25 esac
slaxemulator@6668 26
slaxemulator@6668 27 # Rules to configure and make the package.
slaxemulator@6668 28 compile_rules()
slaxemulator@6668 29 {
slaxemulator@6668 30 ./configure \
slaxemulator@6669 31 --disable-static \
slaxemulator@6668 32 $CONFIGURE_ARGS &&
pankso@16084 33 make && make install
slaxemulator@6668 34 }
slaxemulator@6668 35
slaxemulator@6668 36 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@6668 37 genpkg_rules()
slaxemulator@6668 38 {
al@14225 39 mkdir -p \
al@14225 40 $fs/usr/lib \
al@14225 41 $fs/usr/share
al@14225 42 cp -a $install/usr/bin $fs/usr
al@14225 43 cp -a $install/usr/lib/girepository-1.0 $fs/usr/lib
al@14225 44 cp -a $install/usr/lib/gobject-introspection $fs/usr/lib
al@14225 45 cp -a $install/usr/lib/*.so* $fs/usr/lib
slaxemulator@6668 46 }