wok-next view gtk+/receipt @ rev 20074
Up dooble, smtube
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Wed Oct 25 05:01:33 2017 +0200 (2017-10-25) |
parents | f463de72afe3 |
children | 0e7893ac206d |
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 HOST_ARCH="i486 arm"
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 libxcb-dev fontconfig-dev freetype-dev pixman-dev libxml2-dev \
17 libpng-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 SPLIT="gtk+-demo gtk+ gtk+-dev"
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 # http://www.linuxfromscratch.org/blfs/view/stable/x/gtk2.html
30 # Handle cross compilation.
31 case "$ARCH" in
32 arm*)
33 BUILD_DEPENDS=$BUILD_DEPENDS_arm
34 ARCH_ARGS="--enable-introspection=no --disable-glibtest --disable-cups \
35 --disable-papi --with-gdktarget=x11 --with-xinput gio_can_sniff=yes"
36 export LDFLAGS="$LDFLAGS -L/cross/$ARCH/sysroot/usr/lib"
37 export CPPFLAGS="$CPPFLAGS -I/cross/$ARCH/sysroot/usr/include"
38 export LIBTOOL=${HOST_SYSTEM}-libtool
39 ;;
40 esac
42 . $stuff/replace-icons-paper; cd $src
44 ./configure \
45 --sysconfdir=/etc \
46 --with-html-dir=/usr/share/doc \
47 --enable-debug=no \
48 $CONFIGURE_ARGS $ARCH_ARGS &&
49 make $MAKEFLAGS $LIBTOOL &&
50 make install &&
52 ln -s /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache \
53 $install/etc/gtk-2.0/gdk-pixbuf.loaders &&
55 mkdir -p $install/usr/share/applications &&
56 cp $stuff/*.desktop $install/usr/share/applications
57 }
59 # Rules to gen a SliTaz package suitable for Tazpkg.
60 genpkg_rules()
61 {
62 case $PACKAGE in
63 gtk+-demo)
64 copy gtk-demo demo/ *.desktop
65 CAT="development|example code and demo"
66 DEPENDS="atk bzlib cairo fontconfig freetype gdk-pixbuf glib gtk+ \
67 libffi libharfbuzz liblzma libpng16 libxml2 pango pcre \
68 util-linux-blkid util-linux-mount util-linux-uuid xorg-libX11 \
69 xorg-libXau xorg-libXdmcp xorg-libXext xorg-libXinerama \
70 xorg-libXrender xorg-libxcb xorg-pixman zlib"
71 ;;
72 gtk+)
73 COOKOPTS="!menus"
74 copy @std
75 remove_already_packed
76 DEPENDS="atk bzlib cairo fontconfig freetype gdk-pixbuf glib \
77 libcups libffi libgnutls libharfbuzz liblzma libpng16 libxml2 \
78 pango pcre util-linux-blkid util-linux-mount util-linux-uuid \
79 xorg-libX11 xorg-libXau xorg-libXdmcp xorg-libXext \
80 xorg-libXinerama xorg-libXrender xorg-libxcb xorg-pixman zlib"
81 CONFIG_FILES="/etc/gtk-2.0/im-multipress.conf"
82 SUGGESTED="cups gnutls libgcrypt libgpg-error"
83 ;;
84 gtk+-dev)
85 copy @dev
86 DEPENDS="gtk+ \
87 atk-dev bzip2-dev cairo-dev cups-dev fontconfig-dev \
88 freetype-dev gdk-pixbuf-dev glib-dev glibc-dev gnutls-dev \
89 harfbuzz-dev libffi-dev liblzma-dev libpng16-dev libxml2-dev \
90 pango-dev pcre-dev util-linux-blkid-dev util-linux-mount-dev \
91 util-linux-uuid-dev xorg-libX11-dev xorg-libXau-dev \
92 xorg-libXdmcp-dev xorg-libXext-dev xorg-libXinerama-dev \
93 xorg-libXrender-dev xorg-libxcb-dev xorg-pixman-dev xz-dev zlib-dev"
94 ;;
95 esac
96 }
98 # Pre and post install commands for Tazpkg.
99 post_install_gtk_() {
100 chroot "$1/" /usr/bin/gtk-query-immodules-2.0 --update-cache
101 }