wok-next view gtk+3/receipt @ rev 19819
gstreamer0: update for the new bison version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jul 29 12:09:11 2017 +0200 (2017-07-29) |
parents | e70c0b9c5adf |
children | d0308bf5ec4a |
line source
1 # SliTaz package receipt.
3 PACKAGE="gtk+3"
4 VERSION="3.20.9"
5 CATEGORY="x-window"
6 SHORT_DESC="The GIMP Toolkit 3.x"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="LGPL2"
9 WEB_SITE="https://www.gtk.org/"
10 CONFIG_FILES="/etc/gtk-3.0/settings.ini"
11 SUGGESTED="cups"
12 COOKOPTS="!menus"
14 TARBALL="gtk+-$VERSION.tar.xz"
15 WGET_URL="$GNOME_MIRROR/gtk+/${VERSION:0:4}/$TARBALL"
17 #HOST_ARCH="i486 arm"
18 CROSS_BUGS="bug: /bin/bash: no: command not found"
20 DEPENDS="colord at-spi2-atk at-spi2-core atk bzlib cairo dbus eudev fontconfig \
21 freetype gdk-pixbuf glib harfbuzz lcms2 libcups libepoxy libffi \
22 libgnutls liblzma libpng libxcb libxml2 pango pcre pixman xorg-libX11 \
23 xorg-libXau xorg-libXcomposite xorg-libXdamage xorg-libXdmcp xorg-libXext \
24 xorg-libXfixes xorg-libXi xorg-libXinerama xorg-libXrandr xorg-libXrender zlib"
25 BUILD_DEPENDS="glib-dev atk-dev pango-dev cairo-dev gdk-pixbuf-dev gettext \
26 xorg-libXinerama-dev xorg-libXi-dev xorg-libXrandr-dev xorg-libXcomposite-dev \
27 xorg-libXdamage-dev libepoxy-dev at-spi2-atk-dev cups-dev colord-dev gtk-doc \
28 libxslt"
29 BUILD_DEPENDS_arm="atk-dev pango-dev gdk-pixbuf-dev dbus-dev dbus-glib-dev \
30 xorg-inputproto"
31 SPLIT="gtk+3-demo gtk+3-widget-factory gtk+3-icon-browser gtk+3-dev"
33 # Handle cross compilation.
34 case "$ARCH" in
35 arm*)
36 BUILD_DEPENDS="$BUILD_DEPENDS_arm"
37 ARCH_ARGS="--enable-introspection=no --disable-glibtest --disable-cups \
38 --disable-papi --with-xinput gio_can_sniff=yes"
39 export LDFLAGS="$LDFLAGS -L/cross/$ARCH/sysroot/usr/lib"
40 export CPPFLAGS="$CPPFLAGS -I/cross/$ARCH/sysroot/usr/include" ;;
41 esac
43 # Rules to configure and make the package.
44 compile_rules()
45 {
46 ./configure \
47 --sysconfdir=/etc \
48 --localstatedir=/var \
49 --enable-debug=no \
50 --enable-xkb \
51 --enable-xinerama \
52 --enable-xrandr \
53 --enable-xfixes \
54 --enable-xcomposite \
55 --enable-xdamage \
56 --enable-x11-backend \
57 --enable-introspection \
58 --enable-colord \
59 --disable-wayland-backend \
60 --disable-broadway-backend \
61 --with-x \
62 $CONFIGURE_ARGS $ARCH_ARGS &&
63 make $MAKEFLAGS &&
64 make DESTDIR=$DESTDIR install
66 find $install -name '*.desktop' | xargs sed -i '/NoDisplay/d'
67 }
69 # Rules to gen a SliTaz package suitable for Tazpkg.
70 genpkg_rules()
71 {
72 copy etc/ bin/ themes/ *.so* *.xml
74 cp -f $stuff/settings.ini $fs/etc/gtk-3.0
75 find $fs \( -name '*demo*' -o -name 'gtk3-icon*' -o -name '*widget*' \
76 -o -name '*Demo*' -o -name '*exampleapp*' \) -delete
77 }
79 post_install()
80 {
81 chroot "$1/" /usr/bin/gtk-query-immodules-3.0 --update-cache
82 }