wok-6.x view gtk+3/receipt @ rev 22919

gtk+3: Try to cheat configure
author Hans-G?nter Theisgen
date Mon Feb 24 15:54:38 2020 +0100 (2020-02-24)
parents 1f9fe1783d99
children 070fb91070b2
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:0:4}/$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 pango-dev libxml2-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
47 ./configure \
48 --prefix=/usr \
49 --sysconfdir=/etc \
50 --localstatedir=/var \
51 --enable-colord=no \
52 --enable-debug=no \
53 --enable-introspection=yes \
54 --enable-packagekit=no \
55 --enable-x11-backend \
56 --enable-xcomposite \
57 --enable-xdamage \
58 --enable-xfixes \
59 --enable-xinerama \
60 --enable-xkb \
61 --enable-xrandr \
62 --disable-broadway-backend \
63 --disable-wayland-backend \
64 --with-x \
65 $CONFIGURE_ARGS \
66 ${ARCH_ARGS} &&
67 make $MAKEFLAGS &&
68 make DESTDIR=$DESTDIR install
69 }
71 # Rules to gen a SliTaz package suitable for Tazpkg.
72 genpkg_rules()
73 {
74 mkdir -p $fs/etc/gtk-3.0
75 mkdir -p $fs/usr/bin
76 mkdir -p $fs/usr/lib/gtk-3.0
77 mkdir -p $fs/usr/share
79 # Configuration file.
80 cp -a $install/etc $fs
81 cp -f $stuff/settings.ini $fs/etc/gtk-3.0
83 # Applications.
84 cp $install/usr/bin/gtk-query-immodules-3.0 $fs/usr/bin
85 cp $install/usr/bin/gtk-update-icon-cache $fs/usr/bin
86 # gtk3-demo & gtk3-demo-application -> gtk+3-demo
87 # gtk3-widget-factory -> gtk+3-widget-factory
89 # Libraries.
90 cp -a $install/usr/lib/*.so* $fs/usr/lib
91 cp -a $install/usr/lib/gtk-3.0/3.0.0 $fs/usr/lib/gtk-3.0
92 rm -rf $fs/usr/lib/gtk-3.0/3.0.0/*/*.la
94 # Themes.
95 cp -a $install/usr/share/themes $fs/usr/share
96 cp -a $install/usr/share/glib-2.0 $fs/usr/share
97 }