wok-current annotate gtk+3/receipt @ rev 23588
updated python-zfec (1.4.24 -> 1.5.3)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Apr 07 14:41:13 2020 +0100 (2020-04-07) |
parents | 38d6dbd8db71 |
children | fb3600dec0d4 |
rev | line source |
---|---|
al@13955 | 1 # SliTaz package receipt. |
al@13955 | 2 |
al@13955 | 3 PACKAGE="gtk+3" |
devl547@17616 | 4 VERSION="3.14.8" |
al@13955 | 5 CATEGORY="x-window" |
al@13955 | 6 SHORT_DESC="The GIMP Toolkit 3.x" |
al@13955 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15004 | 8 LICENSE="LGPL2" |
Hans-G?nter@22803 | 9 WEB_SITE="https://www.gtk.org/" |
Hans-G?nter@22803 | 10 |
al@14225 | 11 SOURCE="gtk+" |
al@13955 | 12 TARBALL="$SOURCE-$VERSION.tar.xz" |
Hans-G?nter@22920 | 13 WGET_URL="$GNOME_MIRROR/$SOURCE/${VERSION%.*}/$TARBALL" |
Hans-G?nter@22803 | 14 |
Hans-G?nter@22803 | 15 SUGGESTED="cups" |
Hans-G?nter@22803 | 16 DEPENDS="at-spi2-atk atk gdk-pixbuf pango slitaz-icon util-linux-uuid |
Hans-G?nter@22803 | 17 xorg-libXcomposite xorg-libXcursor xorg-libXi xorg-libXinerama |
Hans-G?nter@22803 | 18 xorg-libXrandr" |
Hans-G?nter@22803 | 19 BUILD_DEPENDS="at-spi2-atk atk-dev autoconf automake bash cairo-dev |
Hans-G?nter@22803 | 20 cups-dev dbus-dev gdk-pixbuf-dev gobject-introspection-dev |
Hans-G?nter@22920 | 21 indent libffi-dev libxml2-dev pango-dev perl pkg-config |
Hans-G?nter@22803 | 22 util-linux-uuid-dev xorg-dev" |
Hans-G?nter@22803 | 23 |
al@13955 | 24 CONFIG_FILES="/etc/gtk-3.0/settings.ini" |
pankso@16171 | 25 |
pankso@16171 | 26 #HOST_ARCH="i486 arm" |
pankso@16171 | 27 CROSS_BUGS="bug: /bin/bash: no: command not found" |
al@13955 | 28 |
pankso@16171 | 29 # Handle cross compilation. |
pankso@16171 | 30 case "$ARCH" in |
pankso@16171 | 31 arm*) |
Hans-G?nter@22908 | 32 BUILD_DEPENDS="atk-dev dbus-dev dbus-glib-dev gdk-pixbuf-dev \ |
Hans-G?nter@22908 | 33 pango-dev xorg-inputproto" |
pankso@16171 | 34 ARCH_ARGS="--enable-introspection=no --disable-glibtest --disable-cups \ |
pankso@16171 | 35 --disable-papi --with-xinput gio_can_sniff=yes" |
pascal@17670 | 36 export LDFLAGS="$LDFLAGS -L/cross/$ARCH/sysroot/usr/lib" |
pascal@17670 | 37 export CPPFLAGS="$CPPFLAGS -I/cross/$ARCH/sysroot/usr/include" ;; |
pankso@16171 | 38 esac |
pankso@16171 | 39 |
al@13955 | 40 # Rules to configure and make the package. |
al@13955 | 41 compile_rules() |
al@13955 | 42 { |
Hans-G?nter@22919 | 43 # With cups-2.3.1 installed, configure says CUPS >= 1.2 not found |
Hans-G?nter@22919 | 44 # Try to cheat configure by: |
Hans-G?nter@22919 | 45 sed -i '25179a CUPS_API_MAJOR=1' configure |
Hans-G?nter@22920 | 46 # Results in error: dereferencing pointer to incomplete type |
Hans-G?nter@22920 | 47 # Can we waive cups support? |
Hans-G?nter@22920 | 48 |
Hans-G?nter@22920 | 49 # unrecognised: |
Hans-G?nter@22920 | 50 # --enable-packagekit=no |
Hans-G?nter@22919 | 51 |
Hans-G?nter@22803 | 52 ./configure \ |
Hans-G?nter@22803 | 53 --prefix=/usr \ |
Hans-G?nter@22803 | 54 --sysconfdir=/etc \ |
Hans-G?nter@22803 | 55 --localstatedir=/var \ |
Hans-G?nter@22908 | 56 --enable-colord=no \ |
Hans-G?nter@22803 | 57 --enable-debug=no \ |
Hans-G?nter@22908 | 58 --enable-introspection=yes \ |
Hans-G?nter@22908 | 59 --enable-x11-backend \ |
Hans-G?nter@22803 | 60 --enable-xcomposite \ |
Hans-G?nter@22803 | 61 --enable-xdamage \ |
Hans-G?nter@22908 | 62 --enable-xfixes \ |
Hans-G?nter@22908 | 63 --enable-xinerama \ |
Hans-G?nter@22908 | 64 --enable-xkb \ |
Hans-G?nter@22908 | 65 --enable-xrandr \ |
Hans-G?nter@22908 | 66 --disable-broadway-backend \ |
Hans-G?nter@22920 | 67 --disable-cups \ |
Hans-G?nter@22803 | 68 --disable-wayland-backend \ |
Hans-G?nter@22803 | 69 --with-x \ |
Hans-G?nter@22803 | 70 $CONFIGURE_ARGS \ |
Hans-G?nter@22803 | 71 ${ARCH_ARGS} && |
al@13955 | 72 make $MAKEFLAGS && |
al@13955 | 73 make DESTDIR=$DESTDIR install |
al@13955 | 74 } |
al@13955 | 75 |
al@13955 | 76 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@13955 | 77 genpkg_rules() |
al@13955 | 78 { |
Hans-G?nter@22908 | 79 mkdir -p $fs/etc/gtk-3.0 |
Hans-G?nter@22908 | 80 mkdir -p $fs/usr/bin |
Hans-G?nter@22908 | 81 mkdir -p $fs/usr/lib/gtk-3.0 |
Hans-G?nter@22908 | 82 mkdir -p $fs/usr/share |
al@14225 | 83 |
al@14225 | 84 # Configuration file. |
Hans-G?nter@22803 | 85 cp -a $install/etc $fs |
Hans-G?nter@22803 | 86 cp -f $stuff/settings.ini $fs/etc/gtk-3.0 |
al@14225 | 87 |
Hans-G?nter@22803 | 88 # Applications. |
Hans-G?nter@22803 | 89 cp $install/usr/bin/gtk-query-immodules-3.0 $fs/usr/bin |
Hans-G?nter@22803 | 90 cp $install/usr/bin/gtk-update-icon-cache $fs/usr/bin |
al@14225 | 91 # gtk3-demo & gtk3-demo-application -> gtk+3-demo |
al@14225 | 92 # gtk3-widget-factory -> gtk+3-widget-factory |
al@13955 | 93 |
Hans-G?nter@22803 | 94 # Libraries. |
Hans-G?nter@22803 | 95 cp -a $install/usr/lib/*.so* $fs/usr/lib |
Hans-G?nter@22803 | 96 cp -a $install/usr/lib/gtk-3.0/3.0.0 $fs/usr/lib/gtk-3.0 |
Hans-G?nter@22803 | 97 rm -rf $fs/usr/lib/gtk-3.0/3.0.0/*/*.la |
al@13955 | 98 |
al@14225 | 99 # Themes. |
Hans-G?nter@22803 | 100 cp -a $install/usr/share/themes $fs/usr/share |
Hans-G?nter@22803 | 101 cp -a $install/usr/share/glib-2.0 $fs/usr/share |
al@13955 | 102 } |