wok-next annotate gtk+/receipt @ rev 20663
Fix web site for the Shimmer Project themes
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu May 10 22:58:32 2018 +0300 (2018-05-10) |
parents | dd145c435e4b |
children | 342b30daff76 |
rev | line source |
---|---|
al@19841 | 1 # SliTaz package receipt v2. |
pankso@22 | 2 |
pankso@22 | 3 PACKAGE="gtk+" |
al@19841 | 4 VERSION="2.24.31" |
pankso@22 | 5 CATEGORY="x-window" |
al@19841 | 6 SHORT_DESC="The GIMP Toolkit" |
pankso@22 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15000 | 8 LICENSE="GPL2" |
al@19681 | 9 WEB_SITE="https://www.gtk.org/" |
al@20443 | 10 LFS="http://www.linuxfromscratch.org/blfs/view/stable/x/gtk2.html" |
al@19681 | 11 |
al@19681 | 12 TARBALL="$PACKAGE-$VERSION.tar.xz" |
al@19681 | 13 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION:0:4}/$TARBALL" |
pankso@22 | 14 |
al@19679 | 15 BUILD_DEPENDS_arm="atk-dev pango-dev gdk-pixbuf-dev dbus-dev dbus-glib-dev \ |
al@20447 | 16 xorg-inputproto xorg-libxcb-dev fontconfig-dev freetype-dev xorg-pixman-dev libxml2-dev \ |
al@20454 | 17 libpng16-dev libffi-dev xorg-xextproto harfbuzz-dev faenza-icon-theme optipng \ |
al@17190 | 18 xorg-libX11-dev xorg-libXext-dev xorg-libXrender-dev automake" |
al@19841 | 19 BUILD_DEPENDS="paper-icon-theme rsvg-convert optipng-static pngquant-static \ |
al@19841 | 20 symlinks \ |
al@19841 | 21 glib-dev atk-dev pango-dev cairo-dev gdk-pixbuf-dev cups-dev \ |
al@19841 | 22 gobject-introspection-dev gtk-doc automake gettext xorg-libXinerama-dev" |
al@20443 | 23 BUILD_DEPENDS="glib-dev atk-dev pango-dev cairo-dev gdk-pixbuf-dev cups-dev \ |
al@20443 | 24 gobject-introspection-dev gtk-doc gettext xorg-libXinerama-dev" |
al@19841 | 25 SPLIT="gtk+-demo gtk+ gtk+-dev" |
al@19679 | 26 |
al@20443 | 27 compile_rules() { |
al@19841 | 28 case "$ARCH" in |
al@19841 | 29 arm*) |
al@19841 | 30 BUILD_DEPENDS=$BUILD_DEPENDS_arm |
al@19841 | 31 ARCH_ARGS="--enable-introspection=no --disable-glibtest --disable-cups \ |
al@19841 | 32 --disable-papi --with-gdktarget=x11 --with-xinput gio_can_sniff=yes" |
al@19841 | 33 export LDFLAGS="$LDFLAGS -L/cross/$ARCH/sysroot/usr/lib" |
al@19841 | 34 export CPPFLAGS="$CPPFLAGS -I/cross/$ARCH/sysroot/usr/include" |
al@19841 | 35 export LIBTOOL=${HOST_SYSTEM}-libtool |
al@19841 | 36 ;; |
al@19841 | 37 esac |
al@19841 | 38 |
al@20443 | 39 # . $stuff/replace-icons-paper; cd $src |
al@17189 | 40 |
al@20443 | 41 # find $src -type f -name 'Makefile.in' -exec sed -i 's|1.15|1.15.1|' '{}' \; |
al@20443 | 42 # or |
al@20443 | 43 # autoreconf -fi && # fix 'version mismatch' between 1.15 and 1.15.1 |
gokhlayeh@11577 | 44 ./configure \ |
al@19841 | 45 --enable-debug=no \ |
al@19841 | 46 $CONFIGURE_ARGS $ARCH_ARGS && |
al@20574 | 47 fix libtool && |
pankso@16457 | 48 make $MAKEFLAGS $LIBTOOL && |
al@20443 | 49 make install || return 1 |
al@19841 | 50 |
al@19841 | 51 ln -s /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache \ |
al@20443 | 52 $install/etc/gtk-2.0/gdk-pixbuf.loaders |
al@19841 | 53 |
al@20443 | 54 mkdir -p $install/usr/share/applications |
al@19841 | 55 cp $stuff/*.desktop $install/usr/share/applications |
pankso@22 | 56 } |
pankso@22 | 57 |
al@20443 | 58 genpkg_rules() { |
al@19841 | 59 case $PACKAGE in |
al@19841 | 60 gtk+-demo) |
al@19841 | 61 copy gtk-demo demo/ *.desktop |
al@19841 | 62 CAT="development|example code and demo" |
al@19841 | 63 DEPENDS="atk bzlib cairo fontconfig freetype gdk-pixbuf glib gtk+ \ |
al@19841 | 64 libffi libharfbuzz liblzma libpng16 libxml2 pango pcre \ |
al@19841 | 65 util-linux-blkid util-linux-mount util-linux-uuid xorg-libX11 \ |
al@19841 | 66 xorg-libXau xorg-libXdmcp xorg-libXext xorg-libXinerama \ |
al@19841 | 67 xorg-libXrender xorg-libxcb xorg-pixman zlib" |
al@19841 | 68 ;; |
al@19841 | 69 gtk+) |
al@19841 | 70 COOKOPTS="!menus" |
al@20443 | 71 copy @std @rm |
al@19841 | 72 DEPENDS="atk bzlib cairo fontconfig freetype gdk-pixbuf glib \ |
al@19841 | 73 libcups libffi libgnutls libharfbuzz liblzma libpng16 libxml2 \ |
al@19841 | 74 pango pcre util-linux-blkid util-linux-mount util-linux-uuid \ |
al@19841 | 75 xorg-libX11 xorg-libXau xorg-libXdmcp xorg-libXext \ |
al@19841 | 76 xorg-libXinerama xorg-libXrender xorg-libxcb xorg-pixman zlib" |
al@19841 | 77 CONFIG_FILES="/etc/gtk-2.0/im-multipress.conf" |
al@19841 | 78 SUGGESTED="cups gnutls libgcrypt libgpg-error" |
al@19841 | 79 ;; |
al@19841 | 80 gtk+-dev) |
al@19841 | 81 copy @dev |
al@19841 | 82 DEPENDS="gtk+ \ |
al@19841 | 83 atk-dev bzip2-dev cairo-dev cups-dev fontconfig-dev \ |
al@19841 | 84 freetype-dev gdk-pixbuf-dev glib-dev glibc-dev gnutls-dev \ |
al@20452 | 85 harfbuzz-dev libffi-dev xz-dev libpng16-dev libxml2-dev \ |
al@19841 | 86 pango-dev pcre-dev util-linux-blkid-dev util-linux-mount-dev \ |
al@19841 | 87 util-linux-uuid-dev xorg-libX11-dev xorg-libXau-dev \ |
al@19841 | 88 xorg-libXdmcp-dev xorg-libXext-dev xorg-libXinerama-dev \ |
al@19841 | 89 xorg-libXrender-dev xorg-libxcb-dev xorg-pixman-dev xz-dev zlib-dev" |
al@19841 | 90 ;; |
al@19841 | 91 esac |
pankso@22 | 92 } |
pankso@22 | 93 |
al@19841 | 94 post_install_gtk_() { |
al@19691 | 95 chroot "$1/" /usr/bin/gtk-query-immodules-2.0 --update-cache |
pankso@22 | 96 } |