wok annotate gtk+3/receipt @ rev 16441
ARM: add libev, xcb-util-wm
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri Apr 18 15:56:37 2014 +0200 (2014-04-18) |
parents | 579c7a25f84e |
children | 9e3347f502bd |
rev | line source |
---|---|
al@13955 | 1 # SliTaz package receipt. |
al@13955 | 2 |
al@13955 | 3 PACKAGE="gtk+3" |
al@14225 | 4 VERSION="3.4.4" |
al@13955 | 5 CATEGORY="x-window" |
al@13955 | 6 SHORT_DESC="The GIMP Toolkit 3.x" |
al@13955 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15004 | 8 LICENSE="LGPL2" |
al@14225 | 9 SOURCE="gtk+" |
al@13955 | 10 TARBALL="$SOURCE-$VERSION.tar.xz" |
al@13955 | 11 WEB_SITE="http://www.gtk.org/" |
al@13955 | 12 WGET_URL="$GNOME_MIRROR/$SOURCE/${VERSION:0:3}/$TARBALL" |
al@13955 | 13 CONFIG_FILES="/etc/gtk-3.0/settings.ini" |
pankso@16171 | 14 |
pankso@16171 | 15 #HOST_ARCH="i486 arm" |
pankso@16171 | 16 CROSS_BUGS="bug: /bin/bash: no: command not found" |
al@13955 | 17 |
al@14225 | 18 DEPENDS="atk gdk-pixbuf pango xorg-libXcomposite xorg-libXcursor xorg-libXi \ |
al@14225 | 19 xorg-libXinerama xorg-libXrandr" |
al@14225 | 20 SUGGESTED="cups" |
al@13955 | 21 BUILD_DEPENDS="bash pkg-config cups-dev dbus-dev gobject-introspection-dev \ |
pascal@15017 | 22 perl gdk-pixbuf-dev xorg-dev libffi-dev atk-dev pango-dev cairo-dev indent \ |
pascal@15017 | 23 libxml2-dev" |
al@13955 | 24 |
pankso@16171 | 25 # Handle cross compilation. |
pankso@16171 | 26 case "$ARCH" in |
pankso@16171 | 27 arm*) |
pankso@16171 | 28 BUILD_DEPENDS="atk-dev pango-dev gdk-pixbuf-dev dbus-dev dbus-glib-dev \ |
pankso@16171 | 29 xorg-inputproto" |
pankso@16171 | 30 ARCH_ARGS="--enable-introspection=no --disable-glibtest --disable-cups \ |
pankso@16171 | 31 --disable-papi --with-xinput gio_can_sniff=yes" |
pankso@16171 | 32 export LDFLAGS=-L/cross/$ARCH/sysroot/usr/lib |
pankso@16171 | 33 export CPPFLAGS=-I/cross/$ARCH/sysroot/usr/include ;; |
pankso@16171 | 34 esac |
pankso@16171 | 35 |
al@13955 | 36 # Rules to configure and make the package. |
al@13955 | 37 compile_rules() |
al@13955 | 38 { |
al@13955 | 39 ./configure \ |
al@13955 | 40 --prefix=/usr \ |
al@13955 | 41 --sysconfdir=/etc \ |
al@14225 | 42 --localstatedir=/var \ |
al@14225 | 43 --enable-debug=no \ |
al@14225 | 44 --enable-xkb \ |
al@14225 | 45 --enable-xinerama \ |
al@14225 | 46 --enable-xrandr \ |
al@14225 | 47 --enable-xfixes \ |
al@14225 | 48 --enable-xcomposite \ |
al@14225 | 49 --enable-xdamage \ |
al@14225 | 50 --enable-x11-backend \ |
al@14225 | 51 --enable-introspection=yes \ |
al@14225 | 52 --enable-packagekit=no \ |
al@14225 | 53 --enable-colord=no \ |
pankso@16171 | 54 --with-x $CONFIGURE_ARGS ${ARCH_ARGS}&& |
al@13955 | 55 make $MAKEFLAGS && |
al@13955 | 56 make DESTDIR=$DESTDIR install |
al@13955 | 57 } |
al@13955 | 58 |
al@13955 | 59 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@13955 | 60 genpkg_rules() |
al@13955 | 61 { |
al@14225 | 62 mkdir -p \ |
al@14225 | 63 $fs/etc/gtk-3.0 \ |
al@14225 | 64 $fs/usr/bin \ |
al@14225 | 65 $fs/usr/lib/gtk-3.0 \ |
al@14225 | 66 $fs/usr/share |
al@14225 | 67 |
al@14225 | 68 # Configuration file. |
al@14225 | 69 cp -a $install/etc $fs |
al@14225 | 70 cp -f $stuff/settings.ini $fs/etc/gtk-3.0 |
al@14225 | 71 |
al@14225 | 72 # Apps. |
al@14225 | 73 cp $install/usr/bin/gtk-query-immodules-3.0 $fs/usr/bin |
al@14225 | 74 cp $install/usr/bin/gtk-update-icon-cache $fs/usr/bin |
al@14225 | 75 # gtk3-demo & gtk3-demo-application -> gtk+3-demo |
al@14225 | 76 # gtk3-widget-factory -> gtk+3-widget-factory |
al@13955 | 77 |
al@13955 | 78 # Libs. |
al@13955 | 79 cp -a $install/usr/lib/*.so* $fs/usr/lib |
al@14225 | 80 cp -a $install/usr/lib/gtk-3.0/3.0.0 $fs/usr/lib/gtk-3.0 |
al@13955 | 81 rm -rf $fs/usr/lib/gtk-3.0/3.0.0/*/*.la |
al@13955 | 82 |
al@14225 | 83 # Themes. |
al@13955 | 84 cp -a $install/usr/share/themes $fs/usr/share |
al@13955 | 85 cp -a $install/usr/share/glib-2.0 $fs/usr/share |
al@13955 | 86 } |