wok annotate gtk+/receipt @ rev 14011

Add: schroedinger - Dirac Video codec
author Dominique Corbex <domcox@slitaz.org>
date Sun Feb 17 19:49:27 2013 +0100 (2013-02-17)
parents 5b67942406c8
children a28eeb5b8fcd
rev   line source
pankso@22 1 # SliTaz package receipt.
pankso@22 2
pankso@22 3 PACKAGE="gtk+"
devl547@13525 4 VERSION="2.24.13"
pankso@22 5 CATEGORY="x-window"
pankso@22 6 SHORT_DESC="The GIMP Toolkit."
pankso@22 7 MAINTAINER="pankso@slitaz.org"
jozee@3751 8 SUGGESTED="cups gnutls libgcrypt libgpg-error"
slaxemulator@11796 9 TARBALL="$PACKAGE-$VERSION.tar.xz"
pankso@22 10 WEB_SITE="http://www.gtk.org/"
slaxemulator@11316 11 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION:0:4}/$TARBALL"
slaxemulator@10982 12 CONFIG_FILES="/etc/gtk-2.0/gtk.immodules"
pankso@10361 13 CROSS="bug: /bin/bash: no: command not found"
pankso@22 14
pankso@9868 15 DEPENDS="glibc-base expat libxcb xcb-util zlib glib cairo pango atk libpng \
pankso@9868 16 jpeg tiff gdk-pixbuf fontconfig freetype pixman libgio xorg-libX11 xorg-libXau \
pankso@9868 17 xorg-libXcomposite xorg-libXcursor xorg-libXdamage xorg-libXdmcp xorg-libXext \
pankso@9868 18 xorg-libXfixes xorg-libXinerama xorg-libXrender xorg-libXrandr"
pankso@10361 19 BUILD_DEPENDS="bash pkg-config xorg-xextproto cups-dev libcomerr3 cups dbus-dev \
slaxemulator@13527 20 gobject-introspection gobject-introspection-dev libffi-dev perl atk-dev \
slaxemulator@13527 21 pango-dev cairo-dev gdk-pixbuf-dev"
pankso@9868 22
pankso@22 23 # Rules to configure and make the package.
pankso@22 24 compile_rules()
pankso@22 25 {
gokhlayeh@11577 26 cd $src
gokhlayeh@11577 27 ./configure \
gokhlayeh@11577 28 --prefix=/usr \
gokhlayeh@11577 29 --sysconfdir=/etc \
gokhlayeh@11577 30 --with-html-dir=/usr/share/doc \
slaxemulator@11796 31 --build=$HOST_SYSTEM --host=$HOST_SYSTEM
slaxemulator@11796 32 # https://bugzilla.gnome.org/show_bug.cgi?id=655517
slaxemulator@11796 33 sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
gokhlayeh@11577 34 make $MAKEFLAGS &&
gokhlayeh@11577 35 make DESTDIR=$DESTDIR install
pankso@22 36 }
pankso@22 37
pankso@22 38 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@22 39 genpkg_rules()
pankso@22 40 {
pankso@547 41 mkdir -p $fs/usr/lib/gtk-2.0 $fs/usr/share $fs/usr/bin
pankso@836 42
pankso@22 43 # Libs.
slaxemulator@13527 44 cp -a $install/usr/lib/*.so* $fs/usr/lib
slaxemulator@13527 45 cp -a $install/usr/lib/gtk-2.0/2.10.0 $fs/usr/lib/gtk-2.0
pankso@2002 46 rm -rf $fs/usr/lib/gtk-2.0/2.10.0/*/*.la
pankso@836 47
pankso@2002 48 # Themes
slaxemulator@13527 49 cp -a $install/usr/share/themes $fs/usr/share
pankso@836 50
pankso@2002 51 # Apps.
slaxemulator@13527 52 cp -a $install/usr/bin/gtk-query-immodules-2.0 $fs/usr/bin
slaxemulator@13527 53 cp -a $install/usr/bin/gtk-update-icon-cache $fs/usr/bin
slaxemulator@13527 54 cp -a $install/usr/bin/gtk-builder-convert $fs/usr/bin
slaxemulator@10982 55
slaxemulator@10982 56 mkdir -p $fs/etc/gtk-2.0
slaxemulator@10982 57 touch $fs/etc/gtk-2.0/gtk.immodules
gokhlayeh@11958 58 ln -s /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache \
gokhlayeh@11958 59 $fs/etc/gtk-2.0/gdk-pixbuf.loaders
pankso@22 60 }
pankso@22 61
pankso@22 62 # Pre and post install commands for Tazpkg.
pankso@22 63 post_install()
pankso@22 64 {
pascal@5124 65 local arg
pankso@2002 66 echo "Processing post-install commands..."
slaxemulator@7774 67 if [ ! -d $1/etc/gtk-2.0 ]; then
slaxemulator@7772 68 mkdir -p $1/etc/gtk-2.0
slaxemulator@7772 69 fi
pascal@5124 70 chroot $1/ /usr/bin/gtk-query-immodules-2.0 > $1/etc/gtk-2.0/gtk.immodules
pankso@2002 71 # Force reinstall of clearlooks theme (1.0 compatibilty until
pankso@2002 72 # clearlooks are updated)
pascal@5124 73 if [ -d $1/usr/lib/gtk-2.0/2.4.0 ]; then
pascal@5124 74 arg="--forced"
pascal@5124 75 [ -n "$1" ] && arg="--forced --root=$1/"
pascal@5124 76 tazpkg get-install clearlooks $arg
pascal@5124 77 rm -rf $1/usr/lib/gtk-2.0/2.4.0
pankso@2002 78 fi
pankso@22 79 }
slaxemulator@6394 80