wok view gtk+/receipt @ rev 22122
updated webalizer (2.21-02 -> 2.23.08)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Nov 03 16:24:25 2019 +0100 (2019-11-03) |
parents | a78610b2eb47 |
children | 1feb3c8c0087 |
line source
1 # SliTaz package receipt.
3 PACKAGE="gtk+"
4 VERSION="2.24.24"
5 CATEGORY="x-window"
6 SHORT_DESC="The GIMP Toolkit."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 SUGGESTED="cups gnutls libgcrypt libgpg-error"
10 TARBALL="$PACKAGE-$VERSION.tar.xz"
11 WEB_SITE="https://www.gtk.org/"
12 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION:0:4}/$TARBALL"
13 HOST_ARCH="i486 arm"
15 DEPENDS="glibc-base expat libxcb xcb-util zlib glib cairo pango atk libpng \
16 jpeg tiff gdk-pixbuf fontconfig freetype pixman libgio xorg-libX11 xorg-libXau \
17 xorg-libXcomposite xorg-libXcursor xorg-libXdamage xorg-libXdmcp xorg-libXext \
18 xorg-libXfixes xorg-libXinerama xorg-libXrender xorg-libXrandr harfbuzz"
20 BUILD_DEPENDS="atk-dev pango-dev gdk-pixbuf-dev dbus-dev dbus-glib-dev \
21 xorg-inputproto libxcb-dev fontconfig-dev freetype-dev pixman-dev libxml2-dev \
22 libpng-dev libffi-dev xorg-xextproto harfbuzz-dev faenza-icon-theme optipng \
23 xorg-libX11-dev xorg-libXext-dev xorg-libXrender-dev automake"
25 # Handle cross compilation.
26 case "$ARCH" in
27 i?86)
28 BUILD_DEPENDS="$BUILD_DEPENDS bash pkg-config cups-dev perl \
29 gobject-introspection-dev" ;;
30 arm*)
31 ARCH_ARGS="--enable-introspection=no --disable-glibtest --disable-cups \
32 --disable-papi --with-gdktarget=x11 --with-xinput gio_can_sniff=yes"
33 export LDFLAGS="$LDFLAGS -L/cross/$ARCH/sysroot/usr/lib"
34 export CPPFLAGS="$CPPFLAGS -I/cross/$ARCH/sysroot/usr/include"
35 export LIBTOOL=${HOST_SYSTEM}-libtool ;;
36 esac
38 # Rules to configure and make the package.
39 compile_rules()
40 {
41 . $stuff/replace-icons; cd $src
42 patch -p0 < $stuff/undo_gen_icons.patch
44 find . -name Makefile.in | xargs sed -i 's|@AUTOMAKE@|automake|'
45 ./configure \
46 --prefix=/usr \
47 --sysconfdir=/etc \
48 --with-html-dir=/usr/share/doc \
49 $CONFIGURE_ARGS ${ARCH_ARGS} &&
50 # https://bugzilla.gnome.org/show_bug.cgi?id=655517
51 sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool &&
52 make $MAKEFLAGS $LIBTOOL &&
53 make DESTDIR=$DESTDIR install
54 }
56 # Rules to gen a SliTaz package suitable for Tazpkg.
57 genpkg_rules()
58 {
59 mkdir -p $fs/usr/lib/gtk-2.0 $fs/usr/share $fs/usr/bin
61 # Libs.
62 cp -a $install/usr/lib/*.so* $fs/usr/lib
63 cp -a $install/usr/lib/gtk-2.0/2.10.0 $fs/usr/lib/gtk-2.0
64 rm -rf $fs/usr/lib/gtk-2.0/2.10.0/*/*.la
66 # Themes
67 cp -a $install/usr/share/themes $fs/usr/share
69 # Apps.
70 cp -a $install/usr/bin/gtk-query-immodules-2.0 $fs/usr/bin
71 cp -a $install/usr/bin/gtk-update-icon-cache $fs/usr/bin
72 cp -a $install/usr/bin/gtk-builder-convert $fs/usr/bin
74 mkdir -p $fs/etc/gtk-2.0
75 ln -s /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache \
76 $fs/etc/gtk-2.0/gdk-pixbuf.loaders
77 }
79 # Pre and post install commands for Tazpkg.
80 post_install()
81 {
82 mkdir -p "$1/etc/gtk-2.0"
83 chroot "$1/" /usr/bin/gtk-query-immodules-2.0 > "$1/etc/gtk-2.0/gtk.immodules"
84 }