wok view gtk+3/receipt @ rev 22803
gtk+3: added build dependencies autoconf and automake
author | Hans-G?nter Theisgen |
---|---|
date | Tue Jan 28 09:26:25 2020 +0100 (2020-01-28) |
parents | a78610b2eb47 |
children | 1f9fe1783d99 |
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 pango-dev gdk-pixbuf-dev dbus-dev dbus-glib-dev \
33 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 ./configure \
44 --prefix=/usr \
45 --sysconfdir=/etc \
46 --localstatedir=/var \
47 --enable-debug=no \
48 --enable-xkb \
49 --enable-xinerama \
50 --enable-xrandr \
51 --enable-xfixes \
52 --enable-xcomposite \
53 --enable-xdamage \
54 --enable-x11-backend \
55 --enable-introspection=yes \
56 --enable-packagekit=no \
57 --enable-colord=no \
58 --disable-wayland-backend \
59 --disable-broadway-backend \
60 --with-x \
61 $CONFIGURE_ARGS \
62 ${ARCH_ARGS} &&
63 make $MAKEFLAGS &&
64 make DESTDIR=$DESTDIR install
65 }
67 # Rules to gen a SliTaz package suitable for Tazpkg.
68 genpkg_rules()
69 {
70 mkdir -p \
71 $fs/etc/gtk-3.0 \
72 $fs/usr/bin \
73 $fs/usr/lib/gtk-3.0 \
74 $fs/usr/share
76 # Configuration file.
77 cp -a $install/etc $fs
78 cp -f $stuff/settings.ini $fs/etc/gtk-3.0
80 # Applications.
81 cp $install/usr/bin/gtk-query-immodules-3.0 $fs/usr/bin
82 cp $install/usr/bin/gtk-update-icon-cache $fs/usr/bin
83 # gtk3-demo & gtk3-demo-application -> gtk+3-demo
84 # gtk3-widget-factory -> gtk+3-widget-factory
86 # Libraries.
87 cp -a $install/usr/lib/*.so* $fs/usr/lib
88 cp -a $install/usr/lib/gtk-3.0/3.0.0 $fs/usr/lib/gtk-3.0
89 rm -rf $fs/usr/lib/gtk-3.0/3.0.0/*/*.la
91 # Themes.
92 cp -a $install/usr/share/themes $fs/usr/share
93 cp -a $install/usr/share/glib-2.0 $fs/usr/share
94 }