wok-6.x view gtk+/receipt @ rev 20669
Update some WEB_SITE
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jan 21 12:26:11 2019 +0100 (2019-01-21) |
parents | 124c3a7da04f |
children | 41a551d8ddd5 |
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 ./configure \
45 --prefix=/usr \
46 --sysconfdir=/etc \
47 --with-html-dir=/usr/share/doc \
48 $CONFIGURE_ARGS ${ARCH_ARGS} &&
49 # https://bugzilla.gnome.org/show_bug.cgi?id=655517
50 sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool &&
51 make $MAKEFLAGS $LIBTOOL &&
52 make DESTDIR=$DESTDIR install
53 }
55 # Rules to gen a SliTaz package suitable for Tazpkg.
56 genpkg_rules()
57 {
58 mkdir -p $fs/usr/lib/gtk-2.0 $fs/usr/share $fs/usr/bin
60 # Libs.
61 cp -a $install/usr/lib/*.so* $fs/usr/lib
62 cp -a $install/usr/lib/gtk-2.0/2.10.0 $fs/usr/lib/gtk-2.0
63 rm -rf $fs/usr/lib/gtk-2.0/2.10.0/*/*.la
65 # Themes
66 cp -a $install/usr/share/themes $fs/usr/share
68 # Apps.
69 cp -a $install/usr/bin/gtk-query-immodules-2.0 $fs/usr/bin
70 cp -a $install/usr/bin/gtk-update-icon-cache $fs/usr/bin
71 cp -a $install/usr/bin/gtk-builder-convert $fs/usr/bin
73 mkdir -p $fs/etc/gtk-2.0
74 ln -s /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache \
75 $fs/etc/gtk-2.0/gdk-pixbuf.loaders
76 }
78 # Pre and post install commands for Tazpkg.
79 post_install()
80 {
81 mkdir -p "$1/etc/gtk-2.0"
82 chroot "$1/" /usr/bin/gtk-query-immodules-2.0 > "$1/etc/gtk-2.0/gtk.immodules"
83 }