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