wok view gtk+/receipt @ rev 3747

Update: attr,acl (configure)
author Matthew Sheets <rcx@zoominternet.net>
date Thu Jul 23 14:00:31 2009 +0000 (2009-07-23)
parents 6f03da3f17c9
children 1c30b062cd8e
line source
1 # SliTaz package receipt.
3 PACKAGE="gtk+"
4 VERSION="2.16.5"
5 CATEGORY="x-window"
6 SHORT_DESC="The GIMP Toolkit."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="glibc-base cups expat gnutls libgcrypt libxcb xcb-util zlib libgpg-error \
9 glib cairo pango atk libpng jpeg tiff fontconfig freetype pixman libgio \
10 xorg-libX11 xorg-libXau xorg-libXcomposite xorg-libXcursor xorg-libXdamage \
11 xorg-libXdmcp xorg-libXext xorg-libXfixes xorg-libXinerama xorg-libXrender"
12 BUILD_DEPENDS="cairo-dev glib-dev pango-dev atk-dev libpng-dev jpeg-dev \
13 pkg-config xorg-dev xorg-dev-proto fontconfig-dev freetype-dev pixman-dev \
14 tiff-dev libgio-dev xorg-libXdamage zlib-dev xorg-xextproto expat-dev cups-dev"
15 TARBALL="$PACKAGE-$VERSION.tar.bz2"
16 WEB_SITE="http://www.gtk.org/"
17 WGET_URL="http://ftp.gnome.org/pub/gnome/sources/gtk+/2.16/$TARBALL"
18 CONFIG_FILES="/etc/gtk-2.0"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 cd $src
24 ./configure \
25 --prefix=/usr \
26 --sysconfdir=/etc \
27 --mandir=/usr/share/man \
28 --with-html-dir=/usr/share/doc \
29 --without-libjasper \
30 $CONFIGURE_ARGS &&
31 make &&
32 make DESTDIR=$PWD/_pkg install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/lib/gtk-2.0 $fs/usr/share $fs/usr/bin
40 # Libs.
41 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
42 cp -a $_pkg/usr/lib/gtk-2.0/2.10.0 $fs/usr/lib/gtk-2.0
43 rm -rf $fs/usr/lib/gtk-2.0/2.10.0/*/*.la
45 # Themes
46 cp -a $_pkg/usr/share/themes $fs/usr/share
48 # Apps.
49 cp $_pkg/usr/bin/gtk-query-immodules-2.0 $fs/usr/bin
50 cp $_pkg/usr/bin/gtk-update-icon-cache $fs/usr/bin
51 cp $_pkg/usr/bin/gdk-pixbuf-csource $fs/usr/bin
52 cp $_pkg/usr/bin/gdk-pixbuf-query-loaders $fs/usr/bin
53 cp $_pkg/usr/bin/gtk-builder-convert $fs/usr/bin
55 # Config files.
56 mkdir -p $fs/etc/gtk-2.0
57 gtk-query-immodules-2.0 > $fs/etc/gtk-2.0/gtk.immodules
58 gdk-pixbuf-query-loaders > $fs/etc/gtk-2.0/gdk-pixbuf.loaders
59 }
61 # Pre and post install commands for Tazpkg.
62 post_install()
63 {
64 local root
65 root=$1
66 echo "Processing post-install commands..."
67 /usr/bin/gtk-query-immodules-2.0 > $root/etc/gtk-2.0/gtk.immodules
68 /usr/bin/gdk-pixbuf-query-loaders > $root/etc/gtk-2.0/gdk-pixbuf.loaders
69 # Force reinstall of clearlooks theme (1.0 compatibilty until
70 # clearlooks are updated)
71 if [ -d $root/usr/lib/gtk-2.0/2.4.0 ]; then
72 tazpkg get-install clearlooks --forced
73 rm -rf $root/usr/lib/gtk-2.0/2.4.0
74 fi
75 }
76 SELF_INSTALL=1