wok annotate gtk+3/receipt @ rev 19908

add ussp-push
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Apr 13 09:13:02 2017 +0200 (2017-04-13)
parents 17e313b5b9c1
children a78610b2eb47
rev   line source
al@13955 1 # SliTaz package receipt.
al@13955 2
al@13955 3 PACKAGE="gtk+3"
devl547@17616 4 VERSION="3.14.8"
al@13955 5 CATEGORY="x-window"
al@13955 6 SHORT_DESC="The GIMP Toolkit 3.x"
al@13955 7 MAINTAINER="pankso@slitaz.org"
pascal@15004 8 LICENSE="LGPL2"
al@14225 9 SOURCE="gtk+"
al@13955 10 TARBALL="$SOURCE-$VERSION.tar.xz"
al@13955 11 WEB_SITE="http://www.gtk.org/"
devl547@17616 12 WGET_URL="$GNOME_MIRROR/$SOURCE/${VERSION:0:4}/$TARBALL"
al@13955 13 CONFIG_FILES="/etc/gtk-3.0/settings.ini"
pankso@16171 14
pankso@16171 15 #HOST_ARCH="i486 arm"
pankso@16171 16 CROSS_BUGS="bug: /bin/bash: no: command not found"
al@13955 17
al@14225 18 DEPENDS="atk gdk-pixbuf pango xorg-libXcomposite xorg-libXcursor xorg-libXi \
al@18784 19 xorg-libXinerama xorg-libXrandr at-spi2-atk util-linux-uuid slitaz-icon"
al@14225 20 SUGGESTED="cups"
al@13955 21 BUILD_DEPENDS="bash pkg-config cups-dev dbus-dev gobject-introspection-dev \
devl547@17616 22 perl gdk-pixbuf-dev xorg-dev libffi-dev atk-dev pango-dev cairo-dev \
devl547@17616 23 indent libxml2-dev at-spi2-atk util-linux-uuid-dev"
al@13955 24
pankso@16171 25 # Handle cross compilation.
pankso@16171 26 case "$ARCH" in
pankso@16171 27 arm*)
pankso@16171 28 BUILD_DEPENDS="atk-dev pango-dev gdk-pixbuf-dev dbus-dev dbus-glib-dev \
pankso@16171 29 xorg-inputproto"
pankso@16171 30 ARCH_ARGS="--enable-introspection=no --disable-glibtest --disable-cups \
pankso@16171 31 --disable-papi --with-xinput gio_can_sniff=yes"
pascal@17670 32 export LDFLAGS="$LDFLAGS -L/cross/$ARCH/sysroot/usr/lib"
pascal@17670 33 export CPPFLAGS="$CPPFLAGS -I/cross/$ARCH/sysroot/usr/include" ;;
pankso@16171 34 esac
pankso@16171 35
al@13955 36 # Rules to configure and make the package.
al@13955 37 compile_rules()
al@13955 38 {
al@13955 39 ./configure \
al@13955 40 --prefix=/usr \
al@13955 41 --sysconfdir=/etc \
al@14225 42 --localstatedir=/var \
al@14225 43 --enable-debug=no \
al@14225 44 --enable-xkb \
al@14225 45 --enable-xinerama \
al@14225 46 --enable-xrandr \
al@14225 47 --enable-xfixes \
al@14225 48 --enable-xcomposite \
al@14225 49 --enable-xdamage \
al@14225 50 --enable-x11-backend \
al@14225 51 --enable-introspection=yes \
al@14225 52 --enable-packagekit=no \
al@14225 53 --enable-colord=no \
devl547@17616 54 --disable-wayland-backend \
devl547@17616 55 --disable-broadway-backend \
devl547@17616 56 --with-x $CONFIGURE_ARGS ${ARCH_ARGS} &&
al@13955 57 make $MAKEFLAGS &&
al@13955 58 make DESTDIR=$DESTDIR install
al@13955 59 }
al@13955 60
al@13955 61 # Rules to gen a SliTaz package suitable for Tazpkg.
al@13955 62 genpkg_rules()
al@13955 63 {
al@14225 64 mkdir -p \
al@14225 65 $fs/etc/gtk-3.0 \
al@14225 66 $fs/usr/bin \
al@14225 67 $fs/usr/lib/gtk-3.0 \
al@14225 68 $fs/usr/share
al@14225 69
al@14225 70 # Configuration file.
al@14225 71 cp -a $install/etc $fs
al@14225 72 cp -f $stuff/settings.ini $fs/etc/gtk-3.0
al@14225 73
al@14225 74 # Apps.
al@14225 75 cp $install/usr/bin/gtk-query-immodules-3.0 $fs/usr/bin
al@14225 76 cp $install/usr/bin/gtk-update-icon-cache $fs/usr/bin
al@14225 77 # gtk3-demo & gtk3-demo-application -> gtk+3-demo
al@14225 78 # gtk3-widget-factory -> gtk+3-widget-factory
al@13955 79
al@13955 80 # Libs.
al@13955 81 cp -a $install/usr/lib/*.so* $fs/usr/lib
al@14225 82 cp -a $install/usr/lib/gtk-3.0/3.0.0 $fs/usr/lib/gtk-3.0
al@13955 83 rm -rf $fs/usr/lib/gtk-3.0/3.0.0/*/*.la
al@13955 84
al@14225 85 # Themes.
al@13955 86 cp -a $install/usr/share/themes $fs/usr/share
al@13955 87 cp -a $install/usr/share/glib-2.0 $fs/usr/share
al@13955 88 }