wok view gtk+3/receipt @ rev 17315

Up: tazweb (1.10)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Nov 03 00:55:32 2014 +0200 (2014-11-03)
parents 579c7a25f84e
children 9e3347f502bd
line source
1 # SliTaz package receipt.
3 PACKAGE="gtk+3"
4 VERSION="3.4.4"
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:3}/$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"
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 indent \
23 libxml2-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=-L/cross/$ARCH/sysroot/usr/lib
33 export 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 --with-x $CONFIGURE_ARGS ${ARCH_ARGS}&&
55 make $MAKEFLAGS &&
56 make DESTDIR=$DESTDIR install
57 }
59 # Rules to gen a SliTaz package suitable for Tazpkg.
60 genpkg_rules()
61 {
62 mkdir -p \
63 $fs/etc/gtk-3.0 \
64 $fs/usr/bin \
65 $fs/usr/lib/gtk-3.0 \
66 $fs/usr/share
68 # Configuration file.
69 cp -a $install/etc $fs
70 cp -f $stuff/settings.ini $fs/etc/gtk-3.0
72 # Apps.
73 cp $install/usr/bin/gtk-query-immodules-3.0 $fs/usr/bin
74 cp $install/usr/bin/gtk-update-icon-cache $fs/usr/bin
75 # gtk3-demo & gtk3-demo-application -> gtk+3-demo
76 # gtk3-widget-factory -> gtk+3-widget-factory
78 # Libs.
79 cp -a $install/usr/lib/*.so* $fs/usr/lib
80 cp -a $install/usr/lib/gtk-3.0/3.0.0 $fs/usr/lib/gtk-3.0
81 rm -rf $fs/usr/lib/gtk-3.0/3.0.0/*/*.la
83 # Themes.
84 cp -a $install/usr/share/themes $fs/usr/share
85 cp -a $install/usr/share/glib-2.0 $fs/usr/share
86 }