wok-next view gtk+/receipt @ rev 20806
I. node update: security -> https://nodejs.org/en/blog/vulnerability/june-2018-security-releases/ 9.5.0 -> 9.11.2 II. add checksum
author | Erkan Yilmaz <erkan@slitaz.org> |
---|---|
date | Wed Jun 13 08:26:54 2018 +0000 (2018-06-13) |
parents | 460e0b6335e2 |
children | d958fec46c9f |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="gtk+"
4 VERSION="2.24.31"
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/"
10 LFS="http://www.linuxfromscratch.org/blfs/view/stable/x/gtk2.html"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION:0:4}/$TARBALL"
15 BUILD_DEPENDS_arm="atk-dev pango-dev gdk-pixbuf-dev dbus-dev dbus-glib-dev \
16 xorg-inputproto xorg-libxcb-dev fontconfig-dev freetype-dev xorg-pixman-dev libxml2-dev \
17 libpng16-dev libffi-dev xorg-xextproto harfbuzz-dev faenza-icon-theme optipng \
18 xorg-libX11-dev xorg-libXext-dev xorg-libXrender-dev automake"
19 BUILD_DEPENDS="paper-icon-theme rsvg-convert optipng-static pngquant-static \
20 symlinks \
21 glib-dev atk-dev pango-dev cairo-dev gdk-pixbuf-dev cups-dev \
22 gobject-introspection-dev gtk-doc automake gettext xorg-libXinerama-dev"
23 BUILD_DEPENDS="glib-dev atk-dev pango-dev cairo-dev gdk-pixbuf-dev cups-dev \
24 gobject-introspection-dev gtk-doc gettext xorg-libXinerama-dev"
25 SPLIT="gtk+-demo gtk+ gtk+-dev"
27 compile_rules() {
28 case "$ARCH" in
29 arm*)
30 BUILD_DEPENDS=$BUILD_DEPENDS_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 ;;
37 esac
39 # . $stuff/replace-icons-paper; cd $src
41 # find $src -type f -name 'Makefile.in' -exec sed -i 's|1.15|1.15.1|' '{}' \;
42 # or
43 # autoreconf -fi && # fix 'version mismatch' between 1.15 and 1.15.1
44 ./configure \
45 --enable-debug=no \
46 $CONFIGURE_ARGS $ARCH_ARGS &&
47 fix libtool &&
48 make $MAKEFLAGS $LIBTOOL &&
49 make install || return 1
51 ln -s /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache \
52 $install/etc/gtk-2.0/gdk-pixbuf.loaders
54 mkdir -p $install/usr/share/applications
55 cp $stuff/*.desktop $install/usr/share/applications
56 }
58 genpkg_rules() {
59 case $PACKAGE in
60 gtk+-demo)
61 copy gtk-demo demo/ *.desktop
62 CAT="development|example code and demo"
63 DEPENDS="cairo gdk-pixbuf glib gtk+ pango"
64 ;;
65 gtk+)
66 COOKOPTS="!menus"
67 copy @std @rm
68 DEPENDS="atk cairo fontconfig gdk-pixbuf glib libcups pango \
69 xorg-libX11 xorg-libXext xorg-libXinerama xorg-libXrender"
70 CONFIG_FILES="/etc/gtk-2.0/im-multipress.conf"
71 SUGGESTED="cups gnutls libgcrypt libgpg-error"
72 ;;
73 gtk+-dev)
74 copy @dev
75 DEPENDS="gtk+ \
76 atk-dev cairo-dev gdk-pixbuf-dev glib-dev pango-dev"
77 ;;
78 esac
79 }
81 post_install_gtk_() {
82 chroot "$1/" /usr/bin/gtk-query-immodules-2.0 --update-cache
83 }