wok annotate gtk+3/receipt @ rev 25443
Update some web_site
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Sep 03 09:28:15 2022 +0000 (2022-09-03) |
parents | fb3600dec0d4 |
children |
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 |
pascal@24111 | 40 current_version() |
pascal@24111 | 41 { |
pascal@24111 | 42 wget -O - $(dirname $WGET_URL) 2>/dev/null | \ |
pascal@24111 | 43 sed "/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24111 | 44 } |
pascal@24111 | 45 |
al@13955 | 46 # Rules to configure and make the package. |
al@13955 | 47 compile_rules() |
al@13955 | 48 { |
Hans-G?nter@22919 | 49 # With cups-2.3.1 installed, configure says CUPS >= 1.2 not found |
Hans-G?nter@24024 | 50 # and aborts processing. |
Hans-G?nter@24024 | 51 # Workaround: |
Hans-G?nter@24024 | 52 sed -i 's|as_fn_error $? "CUPS >= 1.2|echo $? "CUPS >= 1.2|' configure |
Hans-G?nter@22920 | 53 |
Hans-G?nter@22920 | 54 # unrecognised: |
Hans-G?nter@22920 | 55 # --enable-packagekit=no |
Hans-G?nter@22919 | 56 |
Hans-G?nter@22803 | 57 ./configure \ |
Hans-G?nter@22803 | 58 --prefix=/usr \ |
Hans-G?nter@22803 | 59 --sysconfdir=/etc \ |
Hans-G?nter@22803 | 60 --localstatedir=/var \ |
Hans-G?nter@22908 | 61 --enable-colord=no \ |
Hans-G?nter@24024 | 62 --enable-cups \ |
Hans-G?nter@22803 | 63 --enable-debug=no \ |
Hans-G?nter@22908 | 64 --enable-introspection=yes \ |
Hans-G?nter@22908 | 65 --enable-x11-backend \ |
Hans-G?nter@22803 | 66 --enable-xcomposite \ |
Hans-G?nter@22803 | 67 --enable-xdamage \ |
Hans-G?nter@22908 | 68 --enable-xfixes \ |
Hans-G?nter@22908 | 69 --enable-xinerama \ |
Hans-G?nter@22908 | 70 --enable-xkb \ |
Hans-G?nter@22908 | 71 --enable-xrandr \ |
Hans-G?nter@22908 | 72 --disable-broadway-backend \ |
Hans-G?nter@22803 | 73 --disable-wayland-backend \ |
Hans-G?nter@22803 | 74 --with-x \ |
Hans-G?nter@22803 | 75 $CONFIGURE_ARGS \ |
Hans-G?nter@22803 | 76 ${ARCH_ARGS} && |
al@13955 | 77 make $MAKEFLAGS && |
al@13955 | 78 make DESTDIR=$DESTDIR install |
al@13955 | 79 } |
al@13955 | 80 |
al@13955 | 81 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@13955 | 82 genpkg_rules() |
al@13955 | 83 { |
Hans-G?nter@22908 | 84 mkdir -p $fs/etc/gtk-3.0 |
Hans-G?nter@22908 | 85 mkdir -p $fs/usr/bin |
Hans-G?nter@22908 | 86 mkdir -p $fs/usr/lib/gtk-3.0 |
Hans-G?nter@22908 | 87 mkdir -p $fs/usr/share |
al@14225 | 88 |
al@14225 | 89 # Configuration file. |
Hans-G?nter@22803 | 90 cp -a $install/etc $fs |
Hans-G?nter@22803 | 91 cp -f $stuff/settings.ini $fs/etc/gtk-3.0 |
al@14225 | 92 |
Hans-G?nter@22803 | 93 # Applications. |
Hans-G?nter@22803 | 94 cp $install/usr/bin/gtk-query-immodules-3.0 $fs/usr/bin |
Hans-G?nter@22803 | 95 cp $install/usr/bin/gtk-update-icon-cache $fs/usr/bin |
al@14225 | 96 # gtk3-demo & gtk3-demo-application -> gtk+3-demo |
al@14225 | 97 # gtk3-widget-factory -> gtk+3-widget-factory |
al@13955 | 98 |
Hans-G?nter@22803 | 99 # Libraries. |
Hans-G?nter@22803 | 100 cp -a $install/usr/lib/*.so* $fs/usr/lib |
Hans-G?nter@22803 | 101 cp -a $install/usr/lib/gtk-3.0/3.0.0 $fs/usr/lib/gtk-3.0 |
Hans-G?nter@22803 | 102 rm -rf $fs/usr/lib/gtk-3.0/3.0.0/*/*.la |
al@13955 | 103 |
al@14225 | 104 # Themes. |
Hans-G?nter@22803 | 105 cp -a $install/usr/share/themes $fs/usr/share |
Hans-G?nter@22803 | 106 cp -a $install/usr/share/glib-2.0 $fs/usr/share |
al@13955 | 107 } |