wok annotate gtk+/receipt @ rev 5860
udns: fix compile_rules
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jul 19 10:44:28 2010 +0200 (2010-07-19) |
parents | 2626cd7681ca |
children | 719c8e10f2c0 |
rev | line source |
---|---|
pankso@22 | 1 # SliTaz package receipt. |
pankso@22 | 2 |
pankso@22 | 3 PACKAGE="gtk+" |
slaxemulator@5464 | 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" |
jozee@3751 | 8 DEPENDS="glibc-base expat libxcb xcb-util zlib \ |
rcx@3743 | 9 glib cairo pango atk libpng jpeg tiff fontconfig freetype pixman libgio \ |
rcx@3743 | 10 xorg-libX11 xorg-libXau xorg-libXcomposite xorg-libXcursor xorg-libXdamage \ |
rcx@3743 | 11 xorg-libXdmcp xorg-libXext xorg-libXfixes xorg-libXinerama xorg-libXrender" |
pankso@3426 | 12 BUILD_DEPENDS="cairo-dev glib-dev pango-dev atk-dev libpng-dev jpeg-dev \ |
pankso@3426 | 13 pkg-config xorg-dev xorg-dev-proto fontconfig-dev freetype-dev pixman-dev \ |
pankso@5390 | 14 tiff-dev libgio-dev xorg-libXdamage-dev xorg-libXinerama-dev zlib-dev \ |
pankso@5390 | 15 xorg-xextproto expat-dev cups-dev libcomerr3" |
jozee@3751 | 16 SUGGESTED="cups gnutls libgcrypt libgpg-error" |
pankso@22 | 17 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pankso@22 | 18 WEB_SITE="http://www.gtk.org/" |
slaxemulator@5464 | 19 WGET_URL="http://ftp.gnome.org/pub/gnome/sources/gtk+/${VERSION%.*}/$TARBALL" |
pascal@1634 | 20 CONFIG_FILES="/etc/gtk-2.0" |
pankso@22 | 21 |
pankso@22 | 22 # Rules to configure and make the package. |
pankso@22 | 23 compile_rules() |
pankso@22 | 24 { |
pankso@22 | 25 cd $src |
pankso@547 | 26 ./configure \ |
pankso@547 | 27 --prefix=/usr \ |
pankso@547 | 28 --sysconfdir=/etc \ |
pankso@547 | 29 --mandir=/usr/share/man \ |
pankso@547 | 30 --with-html-dir=/usr/share/doc \ |
pankso@2002 | 31 --without-libjasper \ |
pascal@2430 | 32 $CONFIGURE_ARGS && |
pascal@5784 | 33 make -j 4 && |
pankso@22 | 34 make DESTDIR=$PWD/_pkg install |
pankso@22 | 35 } |
pankso@22 | 36 |
pankso@22 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@22 | 38 genpkg_rules() |
pankso@22 | 39 { |
pankso@547 | 40 mkdir -p $fs/usr/lib/gtk-2.0 $fs/usr/share $fs/usr/bin |
pankso@836 | 41 |
pankso@22 | 42 # Libs. |
pankso@2002 | 43 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib |
pankso@2002 | 44 cp -a $_pkg/usr/lib/gtk-2.0/2.10.0 $fs/usr/lib/gtk-2.0 |
pankso@2002 | 45 rm -rf $fs/usr/lib/gtk-2.0/2.10.0/*/*.la |
pankso@836 | 46 |
pankso@2002 | 47 # Themes |
pankso@2002 | 48 cp -a $_pkg/usr/share/themes $fs/usr/share |
pankso@836 | 49 |
pankso@2002 | 50 # Apps. |
pankso@2002 | 51 cp $_pkg/usr/bin/gtk-query-immodules-2.0 $fs/usr/bin |
pankso@2002 | 52 cp $_pkg/usr/bin/gtk-update-icon-cache $fs/usr/bin |
pankso@2002 | 53 cp $_pkg/usr/bin/gdk-pixbuf-csource $fs/usr/bin |
pankso@2002 | 54 cp $_pkg/usr/bin/gdk-pixbuf-query-loaders $fs/usr/bin |
rcx@3620 | 55 cp $_pkg/usr/bin/gtk-builder-convert $fs/usr/bin |
pankso@836 | 56 |
pankso@2002 | 57 # Config files. |
pankso@2002 | 58 mkdir -p $fs/etc/gtk-2.0 |
pankso@2002 | 59 gtk-query-immodules-2.0 > $fs/etc/gtk-2.0/gtk.immodules |
pankso@2002 | 60 gdk-pixbuf-query-loaders > $fs/etc/gtk-2.0/gdk-pixbuf.loaders |
pankso@22 | 61 } |
pankso@22 | 62 |
pankso@22 | 63 # Pre and post install commands for Tazpkg. |
pankso@22 | 64 post_install() |
pankso@22 | 65 { |
pascal@5124 | 66 local arg |
pankso@2002 | 67 echo "Processing post-install commands..." |
pascal@5124 | 68 chroot $1/ /usr/bin/gtk-query-immodules-2.0 > $1/etc/gtk-2.0/gtk.immodules |
pascal@5124 | 69 chroot $1/ /usr/bin/gdk-pixbuf-query-loaders > $1/etc/gtk-2.0/gdk-pixbuf.loaders |
pankso@2002 | 70 # Force reinstall of clearlooks theme (1.0 compatibilty until |
pankso@2002 | 71 # clearlooks are updated) |
pascal@5124 | 72 if [ -d $1/usr/lib/gtk-2.0/2.4.0 ]; then |
pascal@5124 | 73 arg="--forced" |
pascal@5124 | 74 [ -n "$1" ] && arg="--forced --root=$1/" |
pascal@5124 | 75 tazpkg get-install clearlooks $arg |
pascal@5124 | 76 rm -rf $1/usr/lib/gtk-2.0/2.4.0 |
pankso@2002 | 77 fi |
pankso@22 | 78 } |