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