wok-next annotate gtk+3/receipt @ rev 20569

Fix libtool where applicable (a*-f* packages yet); combine collectd* receipts
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Apr 13 07:14:16 2018 +0300 (2018-04-13)
parents 0e7893ac206d
children d958fec46c9f
rev   line source
al@19841 1 # SliTaz package receipt v2.
al@13955 2
al@13955 3 PACKAGE="gtk+3"
al@19841 4 VERSION="3.22.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@19691 9 WEB_SITE="https://www.gtk.org/"
al@20443 10 LFS="http://www.linuxfromscratch.org/blfs/view/stable/x/gtk3.html"
al@13955 11
al@19841 12 TARBALL="gtk+-$VERSION.tar.xz"
al@19841 13 WGET_URL="$GNOME_MIRROR/gtk+/${VERSION%.*}/$TARBALL"
al@19841 14
al@19841 15 BUILD_DEPENDS_arm="atk-dev pango-dev gdk-pixbuf-dev dbus-dev dbus-glib-dev \
al@19841 16 xorg-inputproto"
al@19691 17 BUILD_DEPENDS="glib-dev atk-dev pango-dev cairo-dev gdk-pixbuf-dev gettext \
al@19691 18 xorg-libXinerama-dev xorg-libXi-dev xorg-libXrandr-dev xorg-libXcomposite-dev \
al@19691 19 xorg-libXdamage-dev libepoxy-dev at-spi2-atk-dev cups-dev colord-dev gtk-doc \
al@20443 20 libxslt gobject-introspection-dev xorg-libSM-dev"
al@19841 21 SPLIT="gtk+3-demo gtk+3-widget-factory gtk+3-icon-browser gtk+3 gtk+3-dev"
al@20443 22 COOKOPTS="skip-log-errors" # Failed to open file ?./gdk.gresource.xml?: No such file or directory
al@20534 23 CROSS_BUGS="bug: /bin/bash: no: command not found"
pankso@16171 24
al@20443 25 compile_rules() {
al@19841 26 # Handle cross compilation.
al@19841 27 case "$ARCH" in
al@19841 28 arm*)
al@19841 29 ARCH_ARGS="--enable-introspection=no --disable-glibtest \
al@19841 30 --disable-cups --disable-papi --with-xinput gio_can_sniff=yes"
al@19841 31 export LDFLAGS="$LDFLAGS -L/cross/$ARCH/sysroot/usr/lib"
al@19841 32 export CPPFLAGS="$CPPFLAGS -I/cross/$ARCH/sysroot/usr/include"
al@19841 33 ;;
al@19841 34 esac
al@19841 35
al@13955 36 ./configure \
al@19842 37 --disable-debug \
al@14225 38 --enable-xkb \
al@14225 39 --enable-xinerama \
al@14225 40 --enable-xrandr \
al@14225 41 --enable-xfixes \
al@14225 42 --enable-xcomposite \
al@14225 43 --enable-xdamage \
al@14225 44 --enable-x11-backend \
al@19691 45 --enable-introspection \
al@19691 46 --enable-colord \
devl547@17616 47 --disable-wayland-backend \
devl547@17616 48 --disable-broadway-backend \
al@19691 49 --with-x \
al@19691 50 $CONFIGURE_ARGS $ARCH_ARGS &&
al@20443 51 fix libtool &&
al@20443 52 make $MAKEFLAGS &&
al@20443 53 make DESTDIR=$DESTDIR install || return 1
al@19691 54
al@20534 55 cp -f $stuff/settings.ini $install/etc/gtk-3.0
al@19691 56 find $install -name '*.desktop' | xargs sed -i '/NoDisplay/d'
al@13955 57 }
al@13955 58
al@20443 59 genpkg_rules() {
al@19841 60 case $PACKAGE in
al@19841 61 gtk+3-demo)
al@19841 62 copy gtk3-demo* *Demo* *exampleapp*
al@19841 63 rm -r $fs/usr/share/gtk-doc $fs/usr/share/man
al@19841 64 CAT="development|example code and demo"
al@20443 65 DEPENDS="cairo gdk-pixbuf glib gtk+3 libepoxy libharfbuzz pango"
al@19841 66 ;;
al@19841 67 gtk+3-widget-factory)
al@19841 68 copy gtk3-widget*
al@19841 69 rm -r $fs/usr/share/gtk-doc $fs/usr/share/man
al@19841 70 CAT="development|widget factory"
al@20443 71 DEPENDS="atk cairo gdk-pixbuf glib gtk+3"
al@19841 72 ;;
al@19841 73 gtk+3-icon-browser)
al@19841 74 copy gtk3-icon-browser gtk3-icon-browser.desktop
al@19841 75 CAT="development|icon browser"
al@20443 76 DEPENDS="glib gtk+3"
al@19841 77 ;;
al@19841 78 gtk+3)
al@19841 79 COOKOPTS="!menus"
al@20443 80 copy etc/ bin/ themes/ *.so* *.xml @rm
al@20443 81 DEPENDS="at-spi2-atk atk cairo colord fontconfig gdk-pixbuf glib \
al@20443 82 libcups libepoxy pango xorg-libX11 xorg-libXcomposite \
al@20443 83 xorg-libXdamage xorg-libXext xorg-libXfixes xorg-libXi \
al@20443 84 xorg-libXinerama xorg-libXrandr"
al@19841 85 CONFIG_FILES="/etc/gtk-3.0/settings.ini"
al@19841 86 SUGGESTED="cups"
al@19841 87 ;;
al@19841 88 gtk+3-dev)
al@19841 89 copy @dev *.its *.loc *.rng
al@19841 90 DEPENDS="gtk+3 gtk+3-demo gtk+3-icon-browser gtk+3-widget-factory \
al@20443 91 at-spi2-atk-dev atk-dev cairo-dev fontconfig-dev gdk-pixbuf-dev \
al@20443 92 glib-dev libepoxy-dev pango-dev xorg-libX11-dev \
al@20443 93 xorg-libXcomposite-dev xorg-libXdamage-dev xorg-libXext-dev \
al@20443 94 xorg-libXfixes-dev xorg-libXi-dev xorg-libXinerama-dev \
al@20443 95 xorg-libXrandr-dev"
al@19841 96 ;;
al@19841 97 esac
al@19691 98 }
al@14225 99
al@19841 100 post_install_gtk_3() {
al@19691 101 chroot "$1/" /usr/bin/gtk-query-immodules-3.0 --update-cache
al@13955 102 }