wok-next annotate gtk3/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents f48456621a9d
children 5669e8b3be70
rev   line source
al@21005 1 # SliTaz package receipt v2.
al@21005 2
al@21005 3 PACKAGE="gtk3"
al@21005 4 VERSION="3.24.1"
al@21005 5 CATEGORY="x-window"
al@21005 6 SHORT_DESC="GNOME Toolkit 3" # it isn't GIMP Toolkit, don't try to convince me
al@21005 7 MAINTAINER="al.bobylev@gmail.com"
al@21005 8 LICENSE="LGPL2"
al@21005 9 WEB_SITE="https://www.gtk.org/"
al@21005 10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/x/gtk3.html"
al@21005 11 REPOLOGY="gtk3"
al@21005 12
al@21005 13 TARBALL="gtk+-$VERSION.tar.xz"
al@21005 14 WGET_URL="$GNOME_MIRROR/gtk+/${VERSION%.*}/$TARBALL"
al@21005 15
al@21005 16 BUILD_DEPENDS="xorg-libSM-dev"
al@21020 17 BUILD_DEPENDS="gettext-dev wayland-protocols-dev wayland-dev glib-dev atk-dev \
al@21005 18 pango-dev cairo-dev gdk-pixbuf-dev xorg-libXinerama-dev xorg-libXi-dev \
al@21005 19 xorg-libXrandr-dev xorg-libXcomposite-dev xorg-libXdamage-dev libxkbcommon-dev \
al@21005 20 mesa-dev libepoxy-dev at-spi2-atk-dev iso-codes-dev cups-dev rest-dev \
al@21005 21 json-glib-dev gobject-introspection-dev colord-dev gtk-doc libxslt "
al@21005 22 SPLIT="$PACKAGE-demo $PACKAGE-widget-factory $PACKAGE-icon-browser \
al@21005 23 $PACKAGE-broadwayd $PACKAGE-dev $PACKAGE"
al@21005 24
al@21005 25 COOKOPTS="skip-log-errors" # Failed to open file ?./gdk.gresource.xml?: No such file or directory
al@21005 26
al@21005 27 compile_rules() {
al@21005 28 ./configure \
al@21005 29 --disable-debug \
al@21005 30 --enable-xkb \
al@21005 31 --enable-xinerama \
al@21005 32 --enable-xrandr \
al@21005 33 --enable-xfixes \
al@21005 34 --enable-xcomposite \
al@21005 35 --enable-xdamage \
al@21005 36 --enable-x11-backend \
al@21005 37 --enable-broadway-backend \
al@21005 38 --enable-wayland-backend \
al@21005 39 --enable-introspection \
al@21005 40 --enable-colord \
al@21005 41 --enable-man \
al@21005 42 --with-x \
al@21005 43 $CONFIGURE_ARGS &&
al@21005 44 fix libtool &&
al@21005 45 make &&
al@21005 46 make install || return 1
al@21005 47
al@21005 48 cp -f $stuff/settings.ini $install/etc/gtk-3.0
al@21005 49 # find $install -name '*.desktop' | xargs sed -i '/NoDisplay/d'
al@21005 50 }
al@21005 51
al@21005 52 genpkg_rules() {
al@21005 53 case $PACKAGE in
al@21005 54 *-demo)
al@21005 55 copy gtk3-demo* *Demo* *exampleapp*
al@21005 56 rm -r $fs/usr/share/gtk-doc $fs/usr/share/man
al@21005 57 CAT="development|example code and demo"
al@21005 58 DEPENDS="cairo gdk-pixbuf glib gtk3 libepoxy libharfbuzz pango"
al@21005 59 ;;
al@21005 60 *-widget-factory)
al@21005 61 copy gtk3-widget*
al@21005 62 rm -r $fs/usr/share/gtk-doc $fs/usr/share/man
al@21005 63 CAT="development|widget factory"
al@21005 64 DEPENDS="atk cairo gdk-pixbuf glib gtk3"
al@21005 65 ;;
al@21005 66 *-icon-browser)
al@21005 67 copy gtk3-icon-browser gtk3-icon-browser.desktop
al@21005 68 CAT="development|icon browser"
al@21005 69 DEPENDS="glib gtk3"
al@21005 70 ;;
al@21005 71 *-broadwayd)
al@21005 72 copy broadwayd
al@21005 73 CAT="x-window|HTML5 GTK backend"
al@21005 74 DEPENDS="cairo glib"
al@21005 75 ;;
al@21005 76 *-dev)
al@21005 77 copy @dev *.its *.loc *.rng
al@21005 78 DEPENDS="gtk3 \
al@21005 79 at-spi2-atk-dev atk-dev cairo-dev fontconfig-dev gdk-pixbuf-dev \
al@21005 80 glib-dev libepoxy-dev libxkbcommon-dev mesa-dev pango-dev \
al@21005 81 wayland-dev wayland-protocols-dev xorg-libX11-dev \
al@21005 82 xorg-libXcomposite-dev xorg-libXdamage-dev xorg-libXext-dev \
al@21005 83 xorg-libXfixes-dev xorg-libXi-dev xorg-libXinerama-dev \
al@21005 84 xorg-libXrandr-dev"
al@21005 85 ;;
al@21005 86 *)
al@21005 87 COOKOPTS="!menus"
al@21005 88 copy etc/ bin/ themes/ *.so* *.xml @rm
al@21005 89 DEPENDS="at-spi2-atk atk cairo colord fontconfig freetype \
al@21005 90 gdk-pixbuf glib json-glib libcups libepoxy libharfbuzz \
al@21005 91 libxkbcommon mesa-libwayland-egl pango rest wayland xorg-libX11 \
al@21005 92 xorg-libXcomposite xorg-libXdamage xorg-libXext xorg-libXfixes \
al@21005 93 xorg-libXi xorg-libXinerama xorg-libXrandr"
al@21005 94 CONFIG_FILES="/etc/gtk-3.0/settings.ini"
al@21005 95 ;;
al@21005 96 esac
al@21005 97 }
al@21005 98
al@21005 99 post_install_gtk3() {
al@21005 100 chroot "$1/" /usr/bin/gtk-query-immodules-3.0 --update-cache
al@21005 101 }