wok-6.x view gtk+3/receipt @ rev 25192
updated python-formencode (1.2.2 -> 2.0.1)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jul 13 10:37:28 2022 +0100 (2022-07-13) |
parents | fb3600dec0d4 |
children |
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 current_version()
41 {
42 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
43 sed "/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
44 }
46 # Rules to configure and make the package.
47 compile_rules()
48 {
49 # With cups-2.3.1 installed, configure says CUPS >= 1.2 not found
50 # and aborts processing.
51 # Workaround:
52 sed -i 's|as_fn_error $? "CUPS >= 1.2|echo $? "CUPS >= 1.2|' configure
54 # unrecognised:
55 # --enable-packagekit=no
57 ./configure \
58 --prefix=/usr \
59 --sysconfdir=/etc \
60 --localstatedir=/var \
61 --enable-colord=no \
62 --enable-cups \
63 --enable-debug=no \
64 --enable-introspection=yes \
65 --enable-x11-backend \
66 --enable-xcomposite \
67 --enable-xdamage \
68 --enable-xfixes \
69 --enable-xinerama \
70 --enable-xkb \
71 --enable-xrandr \
72 --disable-broadway-backend \
73 --disable-wayland-backend \
74 --with-x \
75 $CONFIGURE_ARGS \
76 ${ARCH_ARGS} &&
77 make $MAKEFLAGS &&
78 make DESTDIR=$DESTDIR install
79 }
81 # Rules to gen a SliTaz package suitable for Tazpkg.
82 genpkg_rules()
83 {
84 mkdir -p $fs/etc/gtk-3.0
85 mkdir -p $fs/usr/bin
86 mkdir -p $fs/usr/lib/gtk-3.0
87 mkdir -p $fs/usr/share
89 # Configuration file.
90 cp -a $install/etc $fs
91 cp -f $stuff/settings.ini $fs/etc/gtk-3.0
93 # Applications.
94 cp $install/usr/bin/gtk-query-immodules-3.0 $fs/usr/bin
95 cp $install/usr/bin/gtk-update-icon-cache $fs/usr/bin
96 # gtk3-demo & gtk3-demo-application -> gtk+3-demo
97 # gtk3-widget-factory -> gtk+3-widget-factory
99 # Libraries.
100 cp -a $install/usr/lib/*.so* $fs/usr/lib
101 cp -a $install/usr/lib/gtk-3.0/3.0.0 $fs/usr/lib/gtk-3.0
102 rm -rf $fs/usr/lib/gtk-3.0/3.0.0/*/*.la
104 # Themes.
105 cp -a $install/usr/share/themes $fs/usr/share
106 cp -a $install/usr/share/glib-2.0 $fs/usr/share
107 }