wok view gtk+/receipt @ rev 25470
Update some web_site
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Oct 07 10:48:59 2022 +0000 (2022-10-07) |
parents | 6831608a1b2a |
children |
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%.*}/$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 current_version()
30 {
31 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
32 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
33 }
35 # Handle cross compilation.
36 case "$ARCH" in
37 i?86)
38 BUILD_DEPENDS="$BUILD_DEPENDS bash cups-dev gobject-introspection-dev \
39 perl pkg-config" ;;
40 arm*)
41 ARCH_ARGS="--enable-introspection=no --disable-glibtest --disable-cups \
42 --disable-papi --with-gdktarget=x11 --with-xinput gio_can_sniff=yes"
43 export LDFLAGS="$LDFLAGS -L/cross/$ARCH/sysroot/usr/lib"
44 export CPPFLAGS="$CPPFLAGS -I/cross/$ARCH/sysroot/usr/include"
45 export LIBTOOL=${HOST_SYSTEM}-libtool ;;
46 esac
48 # Rules to configure and make the package.
49 compile_rules()
50 {
51 . $stuff/replace-icons
52 cd $src
53 patch -p0 < $stuff/undo_gen_icons.patch
54 find . -name Makefile.in | xargs sed -i 's|@AUTOMAKE@|automake|'
56 ./configure \
57 --prefix=/usr \
58 --sysconfdir=/etc \
59 --with-html-dir=/usr/share/doc \
60 $CONFIGURE_ARGS ${ARCH_ARGS} &&
61 # https://bugzilla.gnome.org/show_bug.cgi?id=655517
62 sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool &&
63 make $MAKEFLAGS $LIBTOOL &&
64 make DESTDIR=$DESTDIR install
65 }
67 # Rules to gen a SliTaz package suitable for Tazpkg.
68 genpkg_rules()
69 {
70 mkdir -p $fs/usr/lib/gtk-2.0
71 mkdir -p $fs/usr/share $fs/usr/bin
73 # Libraries.
74 cp -a $install/usr/lib/*.so* $fs/usr/lib
75 cp -a $install/usr/lib/gtk-2.0/2.10.0 $fs/usr/lib/gtk-2.0
76 rm -rf $fs/usr/lib/gtk-2.0/2.10.0/*/*.la
78 # Themes
79 cp -a $install/usr/share/themes $fs/usr/share
81 # Applications.
82 cp -a $install/usr/bin/gtk-query-immodules-2.0 $fs/usr/bin
83 cp -a $install/usr/bin/gtk-update-icon-cache $fs/usr/bin
84 cp -a $install/usr/bin/gtk-builder-convert $fs/usr/bin
86 mkdir -p $fs/etc/gtk-2.0
87 ln -s /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache \
88 $fs/etc/gtk-2.0/gdk-pixbuf.loaders
89 }
91 # Post install commands for Tazpkg.
92 post_install()
93 {
94 mkdir -p "$1/etc/gtk-2.0"
95 chroot "$1/" /usr/bin/gtk-query-immodules-2.0 > "$1/etc/gtk-2.0/gtk.immodules"
96 }