wok-next annotate gtk3/receipt @ rev 21103
emacs: depends on emacs-common
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Jan 03 11:21:15 2019 +0200 (2019-01-03) |
parents | 5669e8b3be70 |
children | 82b613cfd1e0 |
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@21094 | 16 COOKOPTS="force-arch" # different .pc |
al@21094 | 17 |
al@21078 | 18 BUILD_DEPENDS="libsm-dev" |
al@21020 | 19 BUILD_DEPENDS="gettext-dev wayland-protocols-dev wayland-dev glib-dev atk-dev \ |
al@21078 | 20 pango-dev cairo-dev gdk-pixbuf-dev libxinerama-dev libxi-dev \ |
al@21078 | 21 libxrandr-dev libxcomposite-dev libxdamage-dev libxkbcommon-dev \ |
al@21005 | 22 mesa-dev libepoxy-dev at-spi2-atk-dev iso-codes-dev cups-dev rest-dev \ |
al@21005 | 23 json-glib-dev gobject-introspection-dev colord-dev gtk-doc libxslt " |
al@21005 | 24 SPLIT="$PACKAGE-demo $PACKAGE-widget-factory $PACKAGE-icon-browser \ |
al@21005 | 25 $PACKAGE-broadwayd $PACKAGE-dev $PACKAGE" |
al@21005 | 26 |
al@21005 | 27 COOKOPTS="skip-log-errors" # Failed to open file ?./gdk.gresource.xml?: No such file or directory |
al@21005 | 28 |
al@21005 | 29 compile_rules() { |
al@21005 | 30 ./configure \ |
al@21005 | 31 --disable-debug \ |
al@21005 | 32 --enable-xkb \ |
al@21005 | 33 --enable-xinerama \ |
al@21005 | 34 --enable-xrandr \ |
al@21005 | 35 --enable-xfixes \ |
al@21005 | 36 --enable-xcomposite \ |
al@21005 | 37 --enable-xdamage \ |
al@21005 | 38 --enable-x11-backend \ |
al@21005 | 39 --enable-broadway-backend \ |
al@21005 | 40 --enable-wayland-backend \ |
al@21005 | 41 --enable-introspection \ |
al@21005 | 42 --enable-colord \ |
al@21005 | 43 --enable-man \ |
al@21005 | 44 --with-x \ |
al@21005 | 45 $CONFIGURE_ARGS && |
al@21005 | 46 fix libtool && |
al@21005 | 47 make && |
al@21005 | 48 make install || return 1 |
al@21005 | 49 |
al@21005 | 50 cp -f $stuff/settings.ini $install/etc/gtk-3.0 |
al@21005 | 51 # find $install -name '*.desktop' | xargs sed -i '/NoDisplay/d' |
al@21005 | 52 } |
al@21005 | 53 |
al@21005 | 54 genpkg_rules() { |
al@21005 | 55 case $PACKAGE in |
al@21005 | 56 *-demo) |
al@21005 | 57 copy gtk3-demo* *Demo* *exampleapp* |
al@21005 | 58 rm -r $fs/usr/share/gtk-doc $fs/usr/share/man |
al@21005 | 59 CAT="development|example code and demo" |
al@21005 | 60 DEPENDS="cairo gdk-pixbuf glib gtk3 libepoxy libharfbuzz pango" |
al@21005 | 61 ;; |
al@21005 | 62 *-widget-factory) |
al@21005 | 63 copy gtk3-widget* |
al@21005 | 64 rm -r $fs/usr/share/gtk-doc $fs/usr/share/man |
al@21005 | 65 CAT="development|widget factory" |
al@21005 | 66 DEPENDS="atk cairo gdk-pixbuf glib gtk3" |
al@21005 | 67 ;; |
al@21005 | 68 *-icon-browser) |
al@21005 | 69 copy gtk3-icon-browser gtk3-icon-browser.desktop |
al@21005 | 70 CAT="development|icon browser" |
al@21005 | 71 DEPENDS="glib gtk3" |
al@21005 | 72 ;; |
al@21005 | 73 *-broadwayd) |
al@21005 | 74 copy broadwayd |
al@21005 | 75 CAT="x-window|HTML5 GTK backend" |
al@21005 | 76 DEPENDS="cairo glib" |
al@21005 | 77 ;; |
al@21005 | 78 *-dev) |
al@21005 | 79 copy @dev *.its *.loc *.rng |
al@21005 | 80 DEPENDS="gtk3 \ |
al@21005 | 81 at-spi2-atk-dev atk-dev cairo-dev fontconfig-dev gdk-pixbuf-dev \ |
al@21005 | 82 glib-dev libepoxy-dev libxkbcommon-dev mesa-dev pango-dev \ |
al@21078 | 83 wayland-dev wayland-protocols-dev libx11-dev \ |
al@21078 | 84 libxcomposite-dev libxdamage-dev libxext-dev \ |
al@21078 | 85 libxfixes-dev libxi-dev libxinerama-dev \ |
al@21078 | 86 libxrandr-dev" |
al@21005 | 87 ;; |
al@21005 | 88 *) |
al@21005 | 89 COOKOPTS="!menus" |
al@21005 | 90 copy etc/ bin/ themes/ *.so* *.xml @rm |
al@21005 | 91 DEPENDS="at-spi2-atk atk cairo colord fontconfig freetype \ |
al@21005 | 92 gdk-pixbuf glib json-glib libcups libepoxy libharfbuzz \ |
al@21078 | 93 libxkbcommon mesa-libwayland-egl pango rest wayland libx11 \ |
al@21078 | 94 libxcomposite libxdamage libxext libxfixes \ |
al@21078 | 95 libxi libxinerama libxrandr" |
al@21005 | 96 CONFIG_FILES="/etc/gtk-3.0/settings.ini" |
al@21005 | 97 ;; |
al@21005 | 98 esac |
al@21005 | 99 } |
al@21005 | 100 |
al@21005 | 101 post_install_gtk3() { |
al@21005 | 102 chroot "$1/" /usr/bin/gtk-query-immodules-3.0 --update-cache |
al@21005 | 103 } |