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