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