wok-current annotate gtk+/receipt @ rev 16171
ARM: e17 still need more bdeps
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Mar 30 03:41:12 2014 +0200 (2014-03-30) |
parents | 696015c40e54 |
children | 2a69ae5600b8 |
rev | line source |
---|---|
pankso@22 | 1 # SliTaz package receipt. |
pankso@22 | 2 |
pankso@22 | 3 PACKAGE="gtk+" |
pankso@16171 | 4 VERSION="2.20.1" |
pankso@22 | 5 CATEGORY="x-window" |
pankso@22 | 6 SHORT_DESC="The GIMP Toolkit." |
pankso@22 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15000 | 8 LICENSE="GPL2" |
jozee@3751 | 9 SUGGESTED="cups gnutls libgcrypt libgpg-error" |
pankso@16171 | 10 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pankso@22 | 11 WEB_SITE="http://www.gtk.org/" |
slaxemulator@11316 | 12 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION:0:4}/$TARBALL" |
slaxemulator@10982 | 13 CONFIG_FILES="/etc/gtk-2.0/gtk.immodules" |
pankso@16171 | 14 |
pankso@16137 | 15 HOST_ARCH="i486 arm" |
pankso@16137 | 16 CROSS_BUGS="/bin/bash: no: command not found" |
pankso@22 | 17 |
pankso@9868 | 18 DEPENDS="glibc-base expat libxcb xcb-util zlib glib cairo pango atk libpng \ |
pankso@9868 | 19 jpeg tiff gdk-pixbuf fontconfig freetype pixman libgio xorg-libX11 xorg-libXau \ |
pankso@9868 | 20 xorg-libXcomposite xorg-libXcursor xorg-libXdamage xorg-libXdmcp xorg-libXext \ |
pankso@9868 | 21 xorg-libXfixes xorg-libXinerama xorg-libXrender xorg-libXrandr" |
pankso@16137 | 22 BUILD_DEPENDS="bash pkg-config xorg-xextproto cups-dev libcomerr3 \ |
pankso@16137 | 23 dbus-dev gobject-introspection-dev libffi-dev perl atk-dev pango-dev \ |
pankso@16137 | 24 cairo-dev gdk-pixbuf-dev libxml2-dev" |
pankso@16137 | 25 |
pankso@16137 | 26 # Handle cross compilation. |
pankso@16137 | 27 case "$ARCH" in |
pankso@16137 | 28 arm*) |
pankso@16137 | 29 BUILD_DEPENDS="atk-dev pango-dev gdk-pixbuf-dev dbus-dev dbus-glib-dev \ |
pankso@16137 | 30 xorg-inputproto" |
pankso@16137 | 31 ARCH_ARGS="--enable-introspection=no --disable-glibtest --disable-cups \ |
pankso@16137 | 32 --disable-papi --with-gdktarget=x11 --with-xinput --enable-display-migration \ |
pankso@16137 | 33 gio_can_sniff=yes" |
pankso@16137 | 34 export LDFLAGS=-L/cross/$ARCH/sysroot/usr/lib |
pankso@16137 | 35 export CPPFLAGS=-I/cross/$ARCH/sysroot/usr/include ;; |
pankso@16137 | 36 esac |
pankso@9868 | 37 |
pankso@22 | 38 # Rules to configure and make the package. |
pankso@22 | 39 compile_rules() |
pankso@22 | 40 { |
gokhlayeh@11577 | 41 ./configure \ |
gokhlayeh@11577 | 42 --prefix=/usr \ |
gokhlayeh@11577 | 43 --sysconfdir=/etc \ |
gokhlayeh@11577 | 44 --with-html-dir=/usr/share/doc \ |
pankso@16137 | 45 $CONFIGURE_ARGS $ARCH_ARGS && |
slaxemulator@11796 | 46 # https://bugzilla.gnome.org/show_bug.cgi?id=655517 |
pankso@16137 | 47 sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool && |
gokhlayeh@11577 | 48 make $MAKEFLAGS && |
gokhlayeh@11577 | 49 make DESTDIR=$DESTDIR install |
pankso@22 | 50 } |
pankso@22 | 51 |
pankso@22 | 52 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@22 | 53 genpkg_rules() |
pankso@22 | 54 { |
pankso@547 | 55 mkdir -p $fs/usr/lib/gtk-2.0 $fs/usr/share $fs/usr/bin |
pankso@836 | 56 |
pankso@22 | 57 # Libs. |
slaxemulator@13527 | 58 cp -a $install/usr/lib/*.so* $fs/usr/lib |
slaxemulator@13527 | 59 cp -a $install/usr/lib/gtk-2.0/2.10.0 $fs/usr/lib/gtk-2.0 |
pankso@2002 | 60 rm -rf $fs/usr/lib/gtk-2.0/2.10.0/*/*.la |
pankso@836 | 61 |
pankso@2002 | 62 # Themes |
slaxemulator@13527 | 63 cp -a $install/usr/share/themes $fs/usr/share |
pankso@836 | 64 |
pankso@2002 | 65 # Apps. |
slaxemulator@13527 | 66 cp -a $install/usr/bin/gtk-query-immodules-2.0 $fs/usr/bin |
slaxemulator@13527 | 67 cp -a $install/usr/bin/gtk-update-icon-cache $fs/usr/bin |
slaxemulator@13527 | 68 cp -a $install/usr/bin/gtk-builder-convert $fs/usr/bin |
slaxemulator@10982 | 69 |
slaxemulator@10982 | 70 mkdir -p $fs/etc/gtk-2.0 |
slaxemulator@10982 | 71 touch $fs/etc/gtk-2.0/gtk.immodules |
gokhlayeh@11958 | 72 ln -s /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache \ |
gokhlayeh@11958 | 73 $fs/etc/gtk-2.0/gdk-pixbuf.loaders |
pankso@22 | 74 } |
pankso@22 | 75 |
pankso@22 | 76 # Pre and post install commands for Tazpkg. |
pankso@22 | 77 post_install() |
pankso@22 | 78 { |
pascal@5124 | 79 local arg |
pankso@2002 | 80 echo "Processing post-install commands..." |
slaxemulator@7774 | 81 if [ ! -d $1/etc/gtk-2.0 ]; then |
slaxemulator@7772 | 82 mkdir -p $1/etc/gtk-2.0 |
slaxemulator@7772 | 83 fi |
pascal@5124 | 84 chroot $1/ /usr/bin/gtk-query-immodules-2.0 > $1/etc/gtk-2.0/gtk.immodules |
pankso@2002 | 85 # Force reinstall of clearlooks theme (1.0 compatibilty until |
pankso@2002 | 86 # clearlooks are updated) |
pascal@5124 | 87 if [ -d $1/usr/lib/gtk-2.0/2.4.0 ]; then |
pascal@5124 | 88 arg="--forced" |
pascal@5124 | 89 [ -n "$1" ] && arg="--forced --root=$1/" |
pascal@5124 | 90 tazpkg get-install clearlooks $arg |
pascal@5124 | 91 rm -rf $1/usr/lib/gtk-2.0/2.4.0 |
pankso@2002 | 92 fi |
pankso@22 | 93 } |
slaxemulator@6394 | 94 |