wok-current view gtk+3/receipt @ rev 24110
rdesktop: add debian patch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Sep 28 10:48:56 2021 +0000 (2021-09-28) |
parents | 070fb91070b2 |
children | 6831608a1b2a |
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 # and aborts processing.
45 # Workaround:
46 sed -i 's|as_fn_error $? "CUPS >= 1.2|echo $? "CUPS >= 1.2|' configure
48 # unrecognised:
49 # --enable-packagekit=no
51 ./configure \
52 --prefix=/usr \
53 --sysconfdir=/etc \
54 --localstatedir=/var \
55 --enable-colord=no \
56 --enable-cups \
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-wayland-backend \
68 --with-x \
69 $CONFIGURE_ARGS \
70 ${ARCH_ARGS} &&
71 make $MAKEFLAGS &&
72 make DESTDIR=$DESTDIR install
73 }
75 # Rules to gen a SliTaz package suitable for Tazpkg.
76 genpkg_rules()
77 {
78 mkdir -p $fs/etc/gtk-3.0
79 mkdir -p $fs/usr/bin
80 mkdir -p $fs/usr/lib/gtk-3.0
81 mkdir -p $fs/usr/share
83 # Configuration file.
84 cp -a $install/etc $fs
85 cp -f $stuff/settings.ini $fs/etc/gtk-3.0
87 # Applications.
88 cp $install/usr/bin/gtk-query-immodules-3.0 $fs/usr/bin
89 cp $install/usr/bin/gtk-update-icon-cache $fs/usr/bin
90 # gtk3-demo & gtk3-demo-application -> gtk+3-demo
91 # gtk3-widget-factory -> gtk+3-widget-factory
93 # Libraries.
94 cp -a $install/usr/lib/*.so* $fs/usr/lib
95 cp -a $install/usr/lib/gtk-3.0/3.0.0 $fs/usr/lib/gtk-3.0
96 rm -rf $fs/usr/lib/gtk-3.0/3.0.0/*/*.la
98 # Themes.
99 cp -a $install/usr/share/themes $fs/usr/share
100 cp -a $install/usr/share/glib-2.0 $fs/usr/share
101 }