wok-next annotate gtk+3/receipt @ rev 20297
Up spl (0.7.3)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Nov 09 21:37:23 2017 +0100 (2017-11-09) |
parents | d0308bf5ec4a |
children | 0e7893ac206d |
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/" |
pankso@16171 | 10 #HOST_ARCH="i486 arm" |
pankso@16171 | 11 CROSS_BUGS="bug: /bin/bash: no: command not found" |
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@19691 | 21 libxslt" |
al@19841 | 22 SPLIT="gtk+3-demo gtk+3-widget-factory gtk+3-icon-browser gtk+3 gtk+3-dev" |
pankso@16171 | 23 |
al@13955 | 24 # Rules to configure and make the package. |
al@13955 | 25 compile_rules() |
al@13955 | 26 { |
al@19841 | 27 # http://www.linuxfromscratch.org/blfs/view/stable/x/gtk3.html |
al@19841 | 28 |
al@19841 | 29 # Handle cross compilation. |
al@19841 | 30 case "$ARCH" in |
al@19841 | 31 arm*) |
al@19841 | 32 ARCH_ARGS="--enable-introspection=no --disable-glibtest \ |
al@19841 | 33 --disable-cups --disable-papi --with-xinput gio_can_sniff=yes" |
al@19841 | 34 export LDFLAGS="$LDFLAGS -L/cross/$ARCH/sysroot/usr/lib" |
al@19841 | 35 export CPPFLAGS="$CPPFLAGS -I/cross/$ARCH/sysroot/usr/include" |
al@19841 | 36 ;; |
al@19841 | 37 esac |
al@19841 | 38 |
al@13955 | 39 ./configure \ |
al@13955 | 40 --sysconfdir=/etc \ |
al@14225 | 41 --localstatedir=/var \ |
al@19842 | 42 --disable-debug \ |
al@14225 | 43 --enable-xkb \ |
al@14225 | 44 --enable-xinerama \ |
al@14225 | 45 --enable-xrandr \ |
al@14225 | 46 --enable-xfixes \ |
al@14225 | 47 --enable-xcomposite \ |
al@14225 | 48 --enable-xdamage \ |
al@14225 | 49 --enable-x11-backend \ |
al@19691 | 50 --enable-introspection \ |
al@19691 | 51 --enable-colord \ |
devl547@17616 | 52 --disable-wayland-backend \ |
devl547@17616 | 53 --disable-broadway-backend \ |
al@19691 | 54 --with-x \ |
al@19691 | 55 $CONFIGURE_ARGS $ARCH_ARGS && |
al@19842 | 56 make $MAKEFLAGS 2>&1 | fgrep -v './gdk.gresource.xml' && # ugly fix, but alas... |
al@13955 | 57 make DESTDIR=$DESTDIR install |
al@19691 | 58 |
al@19841 | 59 cp -f $stuff/settings.ini $install/etc/gtk-3.0 && |
al@19691 | 60 find $install -name '*.desktop' | xargs sed -i '/NoDisplay/d' |
al@13955 | 61 } |
al@13955 | 62 |
al@13955 | 63 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@13955 | 64 genpkg_rules() |
al@13955 | 65 { |
al@19841 | 66 case $PACKAGE in |
al@19841 | 67 gtk+3-demo) |
al@19841 | 68 copy gtk3-demo* *Demo* *exampleapp* |
al@19841 | 69 rm -r $fs/usr/share/gtk-doc $fs/usr/share/man |
al@19841 | 70 CAT="development|example code and demo" |
al@19841 | 71 ;; |
al@19841 | 72 gtk+3-widget-factory) |
al@19841 | 73 copy gtk3-widget* |
al@19841 | 74 rm -r $fs/usr/share/gtk-doc $fs/usr/share/man |
al@19841 | 75 CAT="development|widget factory" |
al@19841 | 76 ;; |
al@19841 | 77 gtk+3-icon-browser) |
al@19841 | 78 copy gtk3-icon-browser gtk3-icon-browser.desktop |
al@19841 | 79 CAT="development|icon browser" |
al@19841 | 80 ;; |
al@19841 | 81 gtk+3) |
al@19841 | 82 COOKOPTS="!menus" |
al@19841 | 83 copy etc/ bin/ themes/ *.so* *.xml |
al@19841 | 84 remove_already_packed |
al@19841 | 85 DEPENDS="at-spi2-atk at-spi2-core atk bzlib cairo colord dbus \ |
al@19841 | 86 eudev fontconfig freetype gdk-pixbuf glib lcms2 libcups libepoxy \ |
al@19841 | 87 libffi libgnutls libharfbuzz liblzma libpng16 libxml2 pango pcre \ |
al@19841 | 88 util-linux-blkid util-linux-mount util-linux-uuid xorg-libICE \ |
al@19841 | 89 xorg-libSM xorg-libX11 xorg-libXau xorg-libXcomposite \ |
al@19841 | 90 xorg-libXdamage xorg-libXdmcp xorg-libXext xorg-libXfixes \ |
al@19841 | 91 xorg-libXi xorg-libXinerama xorg-libXrandr xorg-libXrender \ |
al@19841 | 92 xorg-libxcb xorg-pixman zlib" |
al@19841 | 93 CONFIG_FILES="/etc/gtk-3.0/settings.ini" |
al@19841 | 94 SUGGESTED="cups" |
al@19841 | 95 ;; |
al@19841 | 96 gtk+3-dev) |
al@19841 | 97 copy @dev *.its *.loc *.rng |
al@19841 | 98 DEPENDS="gtk+3 gtk+3-demo gtk+3-icon-browser gtk+3-widget-factory \ |
al@19841 | 99 at-spi2-atk-dev at-spi2-core-dev atk-dev bzip2-dev cairo-dev \ |
al@19841 | 100 colord-dev cups-dev dbus-dev eudev-dev fontconfig-dev freetype-dev \ |
al@19841 | 101 gdk-pixbuf-dev glib-dev gnutls-dev harfbuzz-dev lcms2-dev \ |
al@19841 | 102 libepoxy-dev libffi-dev libpng16-dev libxml2-dev pango-dev \ |
al@19841 | 103 pcre-dev util-linux-blkid-dev util-linux-mount-dev \ |
al@19841 | 104 util-linux-uuid-dev xorg-libICE-dev xorg-libSM-dev xorg-libX11-dev \ |
al@19841 | 105 xorg-libXau-dev xorg-libXcomposite-dev xorg-libXdamage-dev \ |
al@19841 | 106 xorg-libXdmcp-dev xorg-libXext-dev xorg-libXfixes-dev \ |
al@19841 | 107 xorg-libXi-dev xorg-libXinerama-dev xorg-libXrandr-dev \ |
al@19841 | 108 xorg-libXrender-dev xorg-libxcb-dev xorg-pixman-dev xz-dev zlib-dev" |
al@19841 | 109 ;; |
al@19841 | 110 esac |
al@19691 | 111 } |
al@14225 | 112 |
al@19841 | 113 post_install_gtk_3() { |
al@19691 | 114 chroot "$1/" /usr/bin/gtk-query-immodules-3.0 --update-cache |
al@13955 | 115 } |