# HG changeset patch # User Christopher Rogers # Date 1286712488 0 # Node ID 5a7fe7de8486f5a413bf6fefb67365a09de2d0bd # Parent 720c1ab41e76289f1c4a8b76412985ca67864e87 Added gdk-pixbuf. An image loading library for gtk2. Need for new gtk 2.22.0. diff -r 720c1ab41e76 -r 5a7fe7de8486 gdk-pixbuf-dev/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gdk-pixbuf-dev/receipt Sun Oct 10 12:08:08 2010 +0000 @@ -0,0 +1,19 @@ +# SliTaz package receipt. + +PACKAGE="gdk-pixbuf-dev" +VERSION="2.22.0" +CATEGORY="development" +SHORT_DESC="devel files for gdk-pixbuf" +MAINTAINER="slaxemulator@gmail.com" +DEPENDS="gdk-pixbuf" +WEB_SITE="http://www.gtk.org/" +WANTED="gdk-pixbuf" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib + cp -a $_pkg/usr/include $fs/usr + cp -a $_pkg/usr/lib/pkgconfig $fs/usr/lib +} + diff -r 720c1ab41e76 -r 5a7fe7de8486 gdk-pixbuf/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gdk-pixbuf/receipt Sun Oct 10 12:08:08 2010 +0000 @@ -0,0 +1,48 @@ +# SliTaz package receipt. + +PACKAGE="gdk-pixbuf" +VERSION="2.22.0" +CATEGORY="x-window" +SHORT_DESC="An image loading library for gtk2" +MAINTAINER="slaxemulator@gmail.com" +DEPENDS="glib libgio libpng tiff jpeg xorg-libX11" +BUILD_DEPENDS="$DEPENDS glib-dev jbigkit libpng-dev tiff-dev jpeg-dev xorg-libX11-dev" +TARBALL="$PACKAGE-$VERSION.tar.bz2" +WEB_SITE="http://www.gtk.org/" +WGET_URL="http://download.gnome.org/sources/gdk-pixbuf/${VERSION%.*}/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + ./configure \ + --prefix=/usr \ + --infodir=/usr/share/info \ + --mandir=/usr/share/man \ + --without-libjasper \ + --with-included-loaders=png \ + $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/bin $fs/usr + cp -a $_pkg/usr/lib/gdk-pixbuf-2.0 $fs/usr/lib + cp -a $_pkg/usr/lib/*.so* $fs/usr/lib + + # Config files + mkdir -p $fs/etc/gtk-2.0 + $fs/usr/bin/gdk-pixbuf-query-loaders > $fs/etc/gtk-2.0/gdk-pixbuf.loaders +} + +# Pre and post install commands for Tazpkg. +post_install() +{ + local arg + echo "Processing post-install commands..." + chroot $1/ /usr/bin/gdk-pixbuf-query-loaders > $1/etc/gtk-2.0/gdk-pixbuf.loaders + +}