wok-current view gtk+3/receipt @ rev 18802
syslinux/iso2exe.sh: fix clear_custom_config
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jan 12 15:40:40 2016 +0100 (2016-01-12) |
parents | 17e313b5b9c1 |
children | a78610b2eb47 |
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 SOURCE="gtk+"
10 TARBALL="$SOURCE-$VERSION.tar.xz"
11 WEB_SITE="http://www.gtk.org/"
12 WGET_URL="$GNOME_MIRROR/$SOURCE/${VERSION:0:4}/$TARBALL"
13 CONFIG_FILES="/etc/gtk-3.0/settings.ini"
15 #HOST_ARCH="i486 arm"
16 CROSS_BUGS="bug: /bin/bash: no: command not found"
18 DEPENDS="atk gdk-pixbuf pango xorg-libXcomposite xorg-libXcursor xorg-libXi \
19 xorg-libXinerama xorg-libXrandr at-spi2-atk util-linux-uuid slitaz-icon"
20 SUGGESTED="cups"
21 BUILD_DEPENDS="bash pkg-config cups-dev dbus-dev gobject-introspection-dev \
22 perl gdk-pixbuf-dev xorg-dev libffi-dev atk-dev pango-dev cairo-dev \
23 indent libxml2-dev at-spi2-atk util-linux-uuid-dev"
25 # Handle cross compilation.
26 case "$ARCH" in
27 arm*)
28 BUILD_DEPENDS="atk-dev pango-dev gdk-pixbuf-dev dbus-dev dbus-glib-dev \
29 xorg-inputproto"
30 ARCH_ARGS="--enable-introspection=no --disable-glibtest --disable-cups \
31 --disable-papi --with-xinput gio_can_sniff=yes"
32 export LDFLAGS="$LDFLAGS -L/cross/$ARCH/sysroot/usr/lib"
33 export CPPFLAGS="$CPPFLAGS -I/cross/$ARCH/sysroot/usr/include" ;;
34 esac
36 # Rules to configure and make the package.
37 compile_rules()
38 {
39 ./configure \
40 --prefix=/usr \
41 --sysconfdir=/etc \
42 --localstatedir=/var \
43 --enable-debug=no \
44 --enable-xkb \
45 --enable-xinerama \
46 --enable-xrandr \
47 --enable-xfixes \
48 --enable-xcomposite \
49 --enable-xdamage \
50 --enable-x11-backend \
51 --enable-introspection=yes \
52 --enable-packagekit=no \
53 --enable-colord=no \
54 --disable-wayland-backend \
55 --disable-broadway-backend \
56 --with-x $CONFIGURE_ARGS ${ARCH_ARGS} &&
57 make $MAKEFLAGS &&
58 make DESTDIR=$DESTDIR install
59 }
61 # Rules to gen a SliTaz package suitable for Tazpkg.
62 genpkg_rules()
63 {
64 mkdir -p \
65 $fs/etc/gtk-3.0 \
66 $fs/usr/bin \
67 $fs/usr/lib/gtk-3.0 \
68 $fs/usr/share
70 # Configuration file.
71 cp -a $install/etc $fs
72 cp -f $stuff/settings.ini $fs/etc/gtk-3.0
74 # Apps.
75 cp $install/usr/bin/gtk-query-immodules-3.0 $fs/usr/bin
76 cp $install/usr/bin/gtk-update-icon-cache $fs/usr/bin
77 # gtk3-demo & gtk3-demo-application -> gtk+3-demo
78 # gtk3-widget-factory -> gtk+3-widget-factory
80 # Libs.
81 cp -a $install/usr/lib/*.so* $fs/usr/lib
82 cp -a $install/usr/lib/gtk-3.0/3.0.0 $fs/usr/lib/gtk-3.0
83 rm -rf $fs/usr/lib/gtk-3.0/3.0.0/*/*.la
85 # Themes.
86 cp -a $install/usr/share/themes $fs/usr/share
87 cp -a $install/usr/share/glib-2.0 $fs/usr/share
88 }