wok view gtk+3/receipt @ rev 23769
linux:CONFIG_INPUT_ATLAS_BTNS=m
author | Richard Dunbar <mojo@slitaz.org> |
---|---|
date | Thu May 14 20:21:23 2020 -0400 (2020-05-14) |
parents | 38d6dbd8db71 |
children | fb3600dec0d4 |
line source
1 # SliTaz package receipt.
3 PACKAGE="gtk+3"
4 VERSION="3.14.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/"
11 SOURCE="gtk+"
12 TARBALL="$SOURCE-$VERSION.tar.xz"
13 WGET_URL="$GNOME_MIRROR/$SOURCE/${VERSION%.*}/$TARBALL"
15 SUGGESTED="cups"
16 DEPENDS="at-spi2-atk atk gdk-pixbuf pango slitaz-icon util-linux-uuid
17 xorg-libXcomposite xorg-libXcursor xorg-libXi xorg-libXinerama
18 xorg-libXrandr"
19 BUILD_DEPENDS="at-spi2-atk atk-dev autoconf automake bash cairo-dev
20 cups-dev dbus-dev gdk-pixbuf-dev gobject-introspection-dev
21 indent libffi-dev libxml2-dev pango-dev perl pkg-config
22 util-linux-uuid-dev xorg-dev"
24 CONFIG_FILES="/etc/gtk-3.0/settings.ini"
26 #HOST_ARCH="i486 arm"
27 CROSS_BUGS="bug: /bin/bash: no: command not found"
29 # Handle cross compilation.
30 case "$ARCH" in
31 arm*)
32 BUILD_DEPENDS="atk-dev dbus-dev dbus-glib-dev gdk-pixbuf-dev \
33 pango-dev xorg-inputproto"
34 ARCH_ARGS="--enable-introspection=no --disable-glibtest --disable-cups \
35 --disable-papi --with-xinput gio_can_sniff=yes"
36 export LDFLAGS="$LDFLAGS -L/cross/$ARCH/sysroot/usr/lib"
37 export CPPFLAGS="$CPPFLAGS -I/cross/$ARCH/sysroot/usr/include" ;;
38 esac
40 # Rules to configure and make the package.
41 compile_rules()
42 {
43 # With cups-2.3.1 installed, configure says CUPS >= 1.2 not found
44 # Try to cheat configure by:
45 sed -i '25179a CUPS_API_MAJOR=1' configure
46 # Results in error: dereferencing pointer to incomplete type
47 # Can we waive cups support?
49 # unrecognised:
50 # --enable-packagekit=no
52 ./configure \
53 --prefix=/usr \
54 --sysconfdir=/etc \
55 --localstatedir=/var \
56 --enable-colord=no \
57 --enable-debug=no \
58 --enable-introspection=yes \
59 --enable-x11-backend \
60 --enable-xcomposite \
61 --enable-xdamage \
62 --enable-xfixes \
63 --enable-xinerama \
64 --enable-xkb \
65 --enable-xrandr \
66 --disable-broadway-backend \
67 --disable-cups \
68 --disable-wayland-backend \
69 --with-x \
70 $CONFIGURE_ARGS \
71 ${ARCH_ARGS} &&
72 make $MAKEFLAGS &&
73 make DESTDIR=$DESTDIR install
74 }
76 # Rules to gen a SliTaz package suitable for Tazpkg.
77 genpkg_rules()
78 {
79 mkdir -p $fs/etc/gtk-3.0
80 mkdir -p $fs/usr/bin
81 mkdir -p $fs/usr/lib/gtk-3.0
82 mkdir -p $fs/usr/share
84 # Configuration file.
85 cp -a $install/etc $fs
86 cp -f $stuff/settings.ini $fs/etc/gtk-3.0
88 # Applications.
89 cp $install/usr/bin/gtk-query-immodules-3.0 $fs/usr/bin
90 cp $install/usr/bin/gtk-update-icon-cache $fs/usr/bin
91 # gtk3-demo & gtk3-demo-application -> gtk+3-demo
92 # gtk3-widget-factory -> gtk+3-widget-factory
94 # Libraries.
95 cp -a $install/usr/lib/*.so* $fs/usr/lib
96 cp -a $install/usr/lib/gtk-3.0/3.0.0 $fs/usr/lib/gtk-3.0
97 rm -rf $fs/usr/lib/gtk-3.0/3.0.0/*/*.la
99 # Themes.
100 cp -a $install/usr/share/themes $fs/usr/share
101 cp -a $install/usr/share/glib-2.0 $fs/usr/share
102 }