wok-next annotate gtk+/receipt @ rev 19794

linux-libre: patch timeconst.pl (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jun 23 11:10:00 2017 +0200 (2017-06-23)
parents e70c0b9c5adf
children d0308bf5ec4a
rev   line source
pankso@22 1 # SliTaz package receipt.
pankso@22 2
pankso@22 3 PACKAGE="gtk+"
al@19679 4 VERSION="2.24.30"
pankso@22 5 CATEGORY="x-window"
pankso@22 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/"
pankso@16137 10 HOST_ARCH="i486 arm"
al@19679 11 CONF_FILES="/etc/gtk-2.0/im-multipress.conf"
al@19681 12 SUGGESTED="cups gnutls libgcrypt libgpg-error"
al@19681 13
al@19681 14 TARBALL="$PACKAGE-$VERSION.tar.xz"
al@19681 15 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION:0:4}/$TARBALL"
pankso@22 16
al@19691 17 DEPENDS="atk bzlib cairo fontconfig freetype gdk-pixbuf glib harfbuzz libcups \
al@19779 18 libffi libgnutls liblzma libpng libxcb libxml2 pango pcre pixman \
al@19691 19 xorg-libX11 xorg-libXau xorg-libXdmcp xorg-libXext xorg-libXrender zlib"
al@19679 20 BUILD_DEPENDS="faenza-icon-theme optipng glib-dev atk-dev pango-dev cairo-dev \
al@19681 21 gdk-pixbuf-dev cups-dev gobject-introspection-dev gtk-doc automake gettext"
al@19679 22 BUILD_DEPENDS_arm="atk-dev pango-dev gdk-pixbuf-dev dbus-dev dbus-glib-dev \
pankso@16239 23 xorg-inputproto libxcb-dev fontconfig-dev freetype-dev pixman-dev libxml2-dev \
al@17187 24 libpng-dev libffi-dev xorg-xextproto harfbuzz-dev faenza-icon-theme optipng \
al@17190 25 xorg-libX11-dev xorg-libXext-dev xorg-libXrender-dev automake"
al@19691 26 SPLIT="gtk+-demo gtk+-dev"
pankso@16137 27
pankso@16137 28 # Handle cross compilation.
pankso@16137 29 case "$ARCH" in
pankso@16239 30 arm*)
al@19679 31 BUILD_DEPENDS=$BUILD_DEPENDS_arm
pankso@16137 32 ARCH_ARGS="--enable-introspection=no --disable-glibtest --disable-cups \
pankso@16239 33 --disable-papi --with-gdktarget=x11 --with-xinput gio_can_sniff=yes"
pankso@16239 34 export LDFLAGS="$LDFLAGS -L/cross/$ARCH/sysroot/usr/lib"
pankso@16239 35 export CPPFLAGS="$CPPFLAGS -I/cross/$ARCH/sysroot/usr/include"
al@19681 36 export LIBTOOL=${HOST_SYSTEM}-libtool
al@19681 37 ;;
pankso@16137 38 esac
pankso@9868 39
al@19679 40
pankso@22 41 # Rules to configure and make the package.
pankso@22 42 compile_rules()
pankso@22 43 {
al@19681 44 while read i; do patch -p1 -i $stuff/patches/$i; done < $stuff/patches/series
al@17187 45 . $stuff/replace-icons; cd $src
al@17189 46
gokhlayeh@11577 47 ./configure \
gokhlayeh@11577 48 --prefix=/usr \
gokhlayeh@11577 49 --sysconfdir=/etc \
gokhlayeh@11577 50 --with-html-dir=/usr/share/doc \
pankso@16239 51 $CONFIGURE_ARGS ${ARCH_ARGS} &&
pankso@16457 52 make $MAKEFLAGS $LIBTOOL &&
al@19681 53 make install
pankso@22 54 }
pankso@22 55
pankso@22 56 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@22 57 genpkg_rules()
pankso@22 58 {
al@19783 59 copy etc/ bin/ themes/
al@19679 60 find $fs -name gtk-demo -delete
al@19783 61 copy *.so*
pankso@836 62
gokhlayeh@11958 63 ln -s /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache \
gokhlayeh@11958 64 $fs/etc/gtk-2.0/gdk-pixbuf.loaders
pankso@22 65 }
pankso@22 66
pankso@22 67 # Pre and post install commands for Tazpkg.
pankso@22 68 post_install()
pankso@22 69 {
al@19691 70 chroot "$1/" /usr/bin/gtk-query-immodules-2.0 --update-cache
pankso@22 71 }