# HG changeset patch
# User Christophe Lincoln <pankso@slitaz.org>
# Date 1197982046 -3600
# Node ID ad5e33e4dad7702860100910470d30be609812dd
# Parent  04d4bd7596676709a5013f2b433819e35fe60fb8
Add : GTK+ with libs (atk, glib, etc)

diff -r 04d4bd759667 -r ad5e33e4dad7 atk-dev/receipt
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/atk-dev/receipt	Tue Dec 18 13:47:26 2007 +0100
@@ -0,0 +1,18 @@
+# SliTaz package receipt.
+
+PACKAGE="atk-dev"
+VERSION="1.12.4"
+CATEGORY="devel"
+SHORT_DESC="Accessibility toolkit devel files."
+MAINTAINER="pankso@slitaz.org"
+WANTED="atk"
+WEB_SITE="http://www.gnome.org/"
+
+# Rules to gen a SliTaz package suitable for Tazpkg.
+genpkg_rules()
+{
+    mkdir -p $fs/usr/lib
+    cp -a $_pkg/usr/lib/*.*a $fs/usr/lib
+    cp -a $_pkg/usr/lib/pkgconfig $fs/usr/lib
+    cp -a $_pkg/usr/include $fs/usr
+}
diff -r 04d4bd759667 -r ad5e33e4dad7 atk/receipt
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/atk/receipt	Tue Dec 18 13:47:26 2007 +0100
@@ -0,0 +1,29 @@
+# SliTaz package receipt.
+
+PACKAGE="atk"
+VERSION="1.12.4"
+CATEGORY="x-window"
+SHORT_DESC="Accessibility toolkit."
+MAINTAINER="pankso@slitaz.org"
+TARBALL="$PACKAGE-$VERSION.tar.bz2"
+WEB_SITE="http://www.gnome.org/"
+WGET_URL="http://ftp.gnome.org/pub/gnome/sources/atk/1.12/$TARBALL"
+
+# Rules to configure and make the package.
+compile_rules()
+{
+    cd $src
+    ./configure --prefix=/usr --mandir=/usr/share/man \
+    --with-html-dir=/usr/share/doc $CONFIGURE_ARGS
+    make
+    make DESTDIR=$PWD/_pkg install
+}
+
+# Rules to gen a SliTaz package suitable for Tazpkg.
+genpkg_rules()
+{
+    mkdir -p $fs/usr/lib $fs/usr/share/locale
+    cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
+    cp -a $_pkg/usr/share/locale/fr $fs/usr/share/locale
+    strip -s $fs/usr/lib/*.so*
+}
diff -r 04d4bd759667 -r ad5e33e4dad7 cairo-dev/receipt
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/cairo-dev/receipt	Tue Dec 18 13:47:26 2007 +0100
@@ -0,0 +1,18 @@
+# SliTaz package receipt.
+
+PACKAGE="cairo-dev"
+VERSION="1.4.10"
+CATEGORY="x-window"
+SHORT_DESC="2D graphics library devel files."
+MAINTAINER="pankso@slitaz.org"
+WEB_SITE="http://www.cairographics.org/"
+WANTED="cairo"
+
+# Rules to gen a SliTaz package suitable for Tazpkg.
+genpkg_rules()
+{
+    mkdir -p $fs/usr/lib
+    cp -a $_pkg/usr/lib/*.*a $fs/usr/lib
+    cp -a $_pkg/usr/lib/pkgconfig $fs/usr/lib
+    cp -a $_pkg/usr/include $fs/usr
+}
diff -r 04d4bd759667 -r ad5e33e4dad7 cairo/receipt
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/cairo/receipt	Tue Dec 18 13:47:26 2007 +0100
@@ -0,0 +1,28 @@
+# SliTaz package receipt.
+
+PACKAGE="cairo"
+VERSION="1.4.10"
+CATEGORY="x-window"
+SHORT_DESC="2D graphics library."
+MAINTAINER="pankso@slitaz.org"
+TARBALL="$PACKAGE-$VERSION.tar.gz"
+WEB_SITE="http://www.cairographics.org/"
+WGET_URL="http://cairographics.org/releases/$TARBALL"
+
+# Rules to configure and make the package.
+compile_rules()
+{
+    cd $src
+    ./configure --prefix=/usr --mandir=/usr/share/man \
+    --with-html-dir=/usr/share/doc $CONFIGURE_ARGS
+    make
+    make DESTDIR=$PWD/_pkg install
+}
+
+# Rules to gen a SliTaz package suitable for Tazpkg.
+genpkg_rules()
+{
+	mkdir -p $fs/usr/lib
+	cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
+    strip --strip-unneeded $fs/usr/lib/*
+}
diff -r 04d4bd759667 -r ad5e33e4dad7 glib-dev/receipt
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/glib-dev/receipt	Tue Dec 18 13:47:26 2007 +0100
@@ -0,0 +1,23 @@
+# SliTaz package receipt.
+
+PACKAGE="glib-dev"
+VERSION="2.12.4"
+CATEGORY="x-window"
+SHORT_DESC="C routines devel files and utilities."
+MAINTAINER="pankso@slitaz.org"
+WANTED="glib"
+WEB_SITE="http://www.gtk.org/"
+
+# Rules to gen a SliTaz package suitable for Tazpkg.
+genpkg_rules()
+{
+    mkdir -p $fs/usr/lib $fs/usr/share
+    cp -a $_pkg/usr/bin $fs/usr
+    strip --strip-unneeded $fs/usr/bin/* 2>/dev/null
+    cp -a $_pkg/usr/lib/*.*a $fs/usr/lib
+    cp -a $_pkg/usr/lib/pkgconfig $fs/usr/lib
+    cp -a $_pkg/usr/lib/glib* $fs/usr/lib
+    cp -a $_pkg/usr/include $fs/usr
+    cp -a $_pkg/usr/share/aclocal $fs/usr/share
+    cp -a $_pkg/usr/share/glib-2.0 $fs/usr/share
+}
diff -r 04d4bd759667 -r ad5e33e4dad7 glib/receipt
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/glib/receipt	Tue Dec 18 13:47:26 2007 +0100
@@ -0,0 +1,30 @@
+# SliTaz package receipt.
+
+PACKAGE="glib"
+VERSION="2.12.4"
+CATEGORY="x-window"
+SHORT_DESC="C routines."
+MAINTAINER="pankso@slitaz.org"
+TARBALL="$PACKAGE-$VERSION.tar.bz2"
+WEB_SITE="http://www.gtk.org/"
+WGET_URL="ftp://ftp.gtk.org/pub/glib/2.12/$TARBALL"
+
+# Rules to configure and make the package.
+compile_rules()
+{
+    cd $src
+    ./configure --prefix=/usr --sysconfdir=/etc \
+    --mandir=/usr/share/man --with-html-dir=/usr/share/doc \
+    $CONFIGURE_ARGS
+    make
+    make DESTDIR=$PWD/_pkg install
+}
+
+# Rules to gen a SliTaz package suitable for Tazpkg.
+genpkg_rules()
+{
+	mkdir -p $fs/usr/lib $fs/usr/share/locale
+    cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
+    cp -a $_pkg/usr/share/locale/fr $fs/usr/share/locale
+    strip --strip-unneeded $fs/usr/lib/*
+}
diff -r 04d4bd759667 -r ad5e33e4dad7 gtk+-demo/receipt
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gtk+-demo/receipt	Tue Dec 18 13:47:26 2007 +0100
@@ -0,0 +1,18 @@
+# SliTaz package receipt.
+
+PACKAGE="gtk+-demo"
+VERSION="2.8.20"
+CATEGORY="extra"
+SHORT_DESC="The GIMP Toolkit example code and demo."
+MAINTAINER="pankso@slitaz.org"
+DEPENDS="gtk+"
+WANTED="gtk+"
+WEB_SITE="http://www.gtk.org/"
+
+# Rules to gen a SliTaz package suitable for Tazpkg.
+genpkg_rules()
+{
+	mkdir -p $fs/usr/bin $fs/usr/share
+    cp -a $_pkg/usr/bin/gtk-demo $fs/usr/bin
+    cp -a $_pkg/usr/share/gtk-2.0 $fs/usr/share
+}
diff -r 04d4bd759667 -r ad5e33e4dad7 gtk+-dev/receipt
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gtk+-dev/receipt	Tue Dec 18 13:47:26 2007 +0100
@@ -0,0 +1,23 @@
+# SliTaz package receipt.
+
+PACKAGE="gtk+-dev"
+VERSION="2.8.20"
+CATEGORY="x-window"
+SHORT_DESC="The GIMP Toolkit."
+MAINTAINER="pankso@slitaz.org"
+DEPENDS="cairo-dev glib-dev pango-dev atk-dev tiff-dev pkg-config"
+WANTED="gtk+"
+WEB_SITE="http://www.gtk.org/"
+
+# Rules to gen a SliTaz package suitable for Tazpkg.
+genpkg_rules()
+{
+	mkdir -p $fs/usr/lib $fs/usr/share
+    cp -a $_pkg/usr/lib/*.*a $fs/usr/lib
+    cp -a $_pkg/usr/lib/pkgconfig $fs/usr/lib
+    # Copy all libs and remove the shared.
+    cp -a $_pkg/usr/lib/gtk-2.0 $fs/usr/lib
+    rm -rf $fs/usr/lib/gtk-2.0/2.4.0/*/*.so*
+    cp -a $_pkg/usr/include $fs/usr
+    cp -a $_pkg/usr/share/aclocal $fs/usr/share
+}
diff -r 04d4bd759667 -r ad5e33e4dad7 gtk+/receipt
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gtk+/receipt	Tue Dec 18 13:47:26 2007 +0100
@@ -0,0 +1,59 @@
+# SliTaz package receipt.
+
+PACKAGE="gtk+"
+VERSION="2.8.20"
+CATEGORY="x-window"
+SHORT_DESC="The GIMP Toolkit."
+MAINTAINER="pankso@slitaz.org"
+DEPENDS="cairo glib pango atk"
+TARBALL="$PACKAGE-$VERSION.tar.bz2"
+WEB_SITE="http://www.gtk.org/"
+WGET_URL="ftp://ftp.gtk.org/pub/gtk/v2.8/$TARBALL"
+
+# Rules to configure and make the package.
+compile_rules()
+{
+    cd $src
+    ./configure --prefix=/usr --sysconfdir=/etc \
+    --mandir=/usr/share/man --with-html-dir=/usr/share/doc \
+    $CONFIGURE_ARGS
+    make
+    make DESTDIR=$PWD/_pkg install
+}
+
+# Rules to gen a SliTaz package suitable for Tazpkg.
+genpkg_rules()
+{
+	mkdir -p $fs/usr/lib/gtk-2.0 $fs/usr/share/locale $fs/usr/bin
+	# Libs.
+    cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
+    cp -a $_pkg/usr/lib/gtk-2.0/2.4.0 $fs/usr/lib/gtk-2.0
+    rm -rf $fs/usr/lib/gtk-2.0/2.4.0/*/*.la
+    # Locale.
+    cp -a $_pkg/usr/share/locale/fr $fs/usr/share/locale
+    cp -a $_pkg/usr/share/themes $fs/usr/share
+    # Apps.
+    cp  $_pkg/usr/bin/gtk-query-immodules-2.0 $fs/usr/bin
+    cp  $_pkg/usr/bin/gtk-update-icon-cache $fs/usr/bin
+    cp  $_pkg/usr/bin/gdk-pixbuf-csource $fs/usr/bin
+    cp  $_pkg/usr/bin/gdk-pixbuf-query-loaders $fs/usr/bin
+    # Config files.
+    mkdir -p $fs/etc/gtk-2.0
+    gtk-query-immodules-2.0 > $fs/etc/gtk-2.0/gtk.immodules
+    gdk-pixbuf-query-loaders > $fs/etc/gtk-2.0/gdk-pixbuf.loaders
+    # Strip all files.
+    strip --strip-all $fs/usr/bin/*
+    strip --strip-unneeded $fs/usr/lib/*.so*
+    strip --strip-unneeded $fs/usr/lib/gtk-2.0/2.4.0/*/*
+}
+
+# Pre and post install commands for Tazpkg.
+post_install()
+{
+    local root
+    root=$1
+    echo "Processing post-install commands..."
+    /usr/bin/gtk-query-immodules-2.0 > $root/etc/gtk-2.0/gtk.immodules
+    /usr/bin/gdk-pixbuf-query-loaders > $root/etc/gtk-2.0/gdk-pixbuf.loaders
+}
+SELF_INSTALL=1
diff -r 04d4bd759667 -r ad5e33e4dad7 pango-dev/receipt
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/pango-dev/receipt	Tue Dec 18 13:47:26 2007 +0100
@@ -0,0 +1,32 @@
+# SliTaz package receipt.
+
+PACKAGE="pango-dev"
+VERSION="1.14.8"
+CATEGORY="x-window"
+SHORT_DESC="Library for layout and rendering of text devel files."
+MAINTAINER="pankso@slitaz.org"
+WANTED="pango"
+WEB_SITE="http://www.pango.org/"
+
+
+# Rules to gen a SliTaz package suitable for Tazpkg.
+genpkg_rules()
+{
+	mkdir -p $fs/usr/lib
+    cp -a $_pkg/usr/lib/*.*a $fs/usr/lib
+    cp -a $_pkg/usr/lib/pkgconfig $fs/usr/lib
+    cp -a $_pkg/usr/include $fs/usr
+    cp -a $_pkg/usr/lib/pango $fs/usr/lib
+    rm -rf $fs/usr/lib/pango/1.5.0/modules/*.so
+}
+
+# Pre and post install commands for Tazpkg.
+post_install()
+{
+    local root
+    root=$1
+    echo "Processing post-install commands..."
+    # Rebuils pango.modules when installed.
+    pango-querymodules > $root/etc/pango/pango.modules
+}
+SELF_INSTALL=1
diff -r 04d4bd759667 -r ad5e33e4dad7 pango/receipt
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/pango/receipt	Tue Dec 18 13:47:26 2007 +0100
@@ -0,0 +1,48 @@
+# SliTaz package receipt.
+
+PACKAGE="pango"
+VERSION="1.14.8"
+CATEGORY="x-window"
+SHORT_DESC="Library for layout and rendering of text."
+MAINTAINER="pankso@slitaz.org"
+TARBALL="$PACKAGE-$VERSION.tar.bz2"
+WEB_SITE="http://www.pango.org/"
+WGET_URL="ftp://ftp.gtk.org/pub/pango/1.14/$TARBALL"
+
+# Rules to configure and make the package.
+compile_rules()
+{
+    cd $src
+    ./configure --prefix=/usr --sysconfdir=/etc \
+    --mandir=/usr/share/man --with-html-dir=/usr/share/doc \
+    $CONFIGURE_ARGS
+    make
+    make DESTDIR=$PWD/_pkg install
+}
+
+# Rules to gen a SliTaz package suitable for Tazpkg.
+genpkg_rules()
+{
+	mkdir -p $fs/usr/bin $fs/usr/lib
+    cp -a $_pkg/usr/bin/* $fs/usr/bin
+    cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
+    cp -a $_pkg/usr/lib/pango $fs/usr/lib
+    rm -rf $fs/usr/lib/pango/1.5.0/modules/*.la
+    cp -a $_pkg/etc $fs
+    pango-querymodules > $fs/etc/pango/pango.modules
+    # Strip.
+    strip --strip-unneeded $fs/usr/bin/*
+    strip --strip-unneeded $fs/usr/lib/*.so*
+    strip --strip-unneeded $fs/usr/lib/pango/1.5.0/modules/*
+}
+
+# Pre and post install commands for Tazpkg.
+post_install()
+{
+    local root
+    root=$1
+    echo "Processing post-install commands..."
+    # Rebuils pango.modules when installed.
+    pango-querymodules > $root/etc/pango/pango.modules
+}
+SELF_INSTALL=1