wok-next view gtk+/receipt @ rev 20453
Undo openssl split
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Feb 28 16:28:07 2018 +0200 (2018-02-28) |
parents | 7639f09792cf |
children | dd145c435e4b |
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 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 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 make $MAKEFLAGS $LIBTOOL &&
48 make install || return 1
50 ln -s /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache \
51 $install/etc/gtk-2.0/gdk-pixbuf.loaders
53 mkdir -p $install/usr/share/applications
54 cp $stuff/*.desktop $install/usr/share/applications
55 }
57 genpkg_rules() {
58 case $PACKAGE in
59 gtk+-demo)
60 copy gtk-demo demo/ *.desktop
61 CAT="development|example code and demo"
62 DEPENDS="atk bzlib cairo fontconfig freetype gdk-pixbuf glib gtk+ \
63 libffi libharfbuzz liblzma libpng16 libxml2 pango pcre \
64 util-linux-blkid util-linux-mount util-linux-uuid xorg-libX11 \
65 xorg-libXau xorg-libXdmcp xorg-libXext xorg-libXinerama \
66 xorg-libXrender xorg-libxcb xorg-pixman zlib"
67 ;;
68 gtk+)
69 COOKOPTS="!menus"
70 copy @std @rm
71 DEPENDS="atk bzlib cairo fontconfig freetype gdk-pixbuf glib \
72 libcups libffi libgnutls libharfbuzz liblzma libpng16 libxml2 \
73 pango pcre util-linux-blkid util-linux-mount util-linux-uuid \
74 xorg-libX11 xorg-libXau xorg-libXdmcp xorg-libXext \
75 xorg-libXinerama xorg-libXrender xorg-libxcb xorg-pixman zlib"
76 CONFIG_FILES="/etc/gtk-2.0/im-multipress.conf"
77 SUGGESTED="cups gnutls libgcrypt libgpg-error"
78 ;;
79 gtk+-dev)
80 copy @dev
81 DEPENDS="gtk+ \
82 atk-dev bzip2-dev cairo-dev cups-dev fontconfig-dev \
83 freetype-dev gdk-pixbuf-dev glib-dev glibc-dev gnutls-dev \
84 harfbuzz-dev libffi-dev xz-dev libpng16-dev libxml2-dev \
85 pango-dev pcre-dev util-linux-blkid-dev util-linux-mount-dev \
86 util-linux-uuid-dev xorg-libX11-dev xorg-libXau-dev \
87 xorg-libXdmcp-dev xorg-libXext-dev xorg-libXinerama-dev \
88 xorg-libXrender-dev xorg-libxcb-dev xorg-pixman-dev xz-dev zlib-dev"
89 ;;
90 esac
91 }
93 post_install_gtk_() {
94 chroot "$1/" /usr/bin/gtk-query-immodules-2.0 --update-cache
95 }