wok-6.x view gtk+/receipt @ rev 32
Add : alsa-* and sound libs (ogg, mad, etc) + mpg123
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Dec 18 14:04:58 2007 +0100 (2007-12-18) |
parents | |
children | d103e8bbb768 |
line source
1 # SliTaz package receipt.
3 PACKAGE="gtk+"
4 VERSION="2.8.20"
5 CATEGORY="x-window"
6 SHORT_DESC="The GIMP Toolkit."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="cairo glib pango atk"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://www.gtk.org/"
11 WGET_URL="ftp://ftp.gtk.org/pub/gtk/v2.8/$TARBALL"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 cd $src
17 ./configure --prefix=/usr --sysconfdir=/etc \
18 --mandir=/usr/share/man --with-html-dir=/usr/share/doc \
19 $CONFIGURE_ARGS
20 make
21 make DESTDIR=$PWD/_pkg install
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 mkdir -p $fs/usr/lib/gtk-2.0 $fs/usr/share/locale $fs/usr/bin
28 # Libs.
29 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
30 cp -a $_pkg/usr/lib/gtk-2.0/2.4.0 $fs/usr/lib/gtk-2.0
31 rm -rf $fs/usr/lib/gtk-2.0/2.4.0/*/*.la
32 # Locale.
33 cp -a $_pkg/usr/share/locale/fr $fs/usr/share/locale
34 cp -a $_pkg/usr/share/themes $fs/usr/share
35 # Apps.
36 cp $_pkg/usr/bin/gtk-query-immodules-2.0 $fs/usr/bin
37 cp $_pkg/usr/bin/gtk-update-icon-cache $fs/usr/bin
38 cp $_pkg/usr/bin/gdk-pixbuf-csource $fs/usr/bin
39 cp $_pkg/usr/bin/gdk-pixbuf-query-loaders $fs/usr/bin
40 # Config files.
41 mkdir -p $fs/etc/gtk-2.0
42 gtk-query-immodules-2.0 > $fs/etc/gtk-2.0/gtk.immodules
43 gdk-pixbuf-query-loaders > $fs/etc/gtk-2.0/gdk-pixbuf.loaders
44 # Strip all files.
45 strip --strip-all $fs/usr/bin/*
46 strip --strip-unneeded $fs/usr/lib/*.so*
47 strip --strip-unneeded $fs/usr/lib/gtk-2.0/2.4.0/*/*
48 }
50 # Pre and post install commands for Tazpkg.
51 post_install()
52 {
53 local root
54 root=$1
55 echo "Processing post-install commands..."
56 /usr/bin/gtk-query-immodules-2.0 > $root/etc/gtk-2.0/gtk.immodules
57 /usr/bin/gdk-pixbuf-query-loaders > $root/etc/gtk-2.0/gdk-pixbuf.loaders
58 }
59 SELF_INSTALL=1