wok annotate gtk+3/receipt @ rev 22803
gtk+3: added build dependencies autoconf and automake
author | Hans-G?nter Theisgen |
---|---|
date | Tue Jan 28 09:26:25 2020 +0100 (2020-01-28) |
parents | a78610b2eb47 |
children | 1f9fe1783d99 |
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" |
devl547@17616 | 13 WGET_URL="$GNOME_MIRROR/$SOURCE/${VERSION:0:4}/$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@22803 | 21 indent libffi-dev pango-dev libxml2-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*) |
pankso@16171 | 32 BUILD_DEPENDS="atk-dev pango-dev gdk-pixbuf-dev dbus-dev dbus-glib-dev \ |
pankso@16171 | 33 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@22803 | 43 ./configure \ |
Hans-G?nter@22803 | 44 --prefix=/usr \ |
Hans-G?nter@22803 | 45 --sysconfdir=/etc \ |
Hans-G?nter@22803 | 46 --localstatedir=/var \ |
Hans-G?nter@22803 | 47 --enable-debug=no \ |
Hans-G?nter@22803 | 48 --enable-xkb \ |
Hans-G?nter@22803 | 49 --enable-xinerama \ |
Hans-G?nter@22803 | 50 --enable-xrandr \ |
Hans-G?nter@22803 | 51 --enable-xfixes \ |
Hans-G?nter@22803 | 52 --enable-xcomposite \ |
Hans-G?nter@22803 | 53 --enable-xdamage \ |
Hans-G?nter@22803 | 54 --enable-x11-backend \ |
Hans-G?nter@22803 | 55 --enable-introspection=yes \ |
Hans-G?nter@22803 | 56 --enable-packagekit=no \ |
Hans-G?nter@22803 | 57 --enable-colord=no \ |
Hans-G?nter@22803 | 58 --disable-wayland-backend \ |
Hans-G?nter@22803 | 59 --disable-broadway-backend \ |
Hans-G?nter@22803 | 60 --with-x \ |
Hans-G?nter@22803 | 61 $CONFIGURE_ARGS \ |
Hans-G?nter@22803 | 62 ${ARCH_ARGS} && |
al@13955 | 63 make $MAKEFLAGS && |
al@13955 | 64 make DESTDIR=$DESTDIR install |
al@13955 | 65 } |
al@13955 | 66 |
al@13955 | 67 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@13955 | 68 genpkg_rules() |
al@13955 | 69 { |
al@14225 | 70 mkdir -p \ |
al@14225 | 71 $fs/etc/gtk-3.0 \ |
al@14225 | 72 $fs/usr/bin \ |
al@14225 | 73 $fs/usr/lib/gtk-3.0 \ |
al@14225 | 74 $fs/usr/share |
al@14225 | 75 |
al@14225 | 76 # Configuration file. |
Hans-G?nter@22803 | 77 cp -a $install/etc $fs |
Hans-G?nter@22803 | 78 cp -f $stuff/settings.ini $fs/etc/gtk-3.0 |
al@14225 | 79 |
Hans-G?nter@22803 | 80 # Applications. |
Hans-G?nter@22803 | 81 cp $install/usr/bin/gtk-query-immodules-3.0 $fs/usr/bin |
Hans-G?nter@22803 | 82 cp $install/usr/bin/gtk-update-icon-cache $fs/usr/bin |
al@14225 | 83 # gtk3-demo & gtk3-demo-application -> gtk+3-demo |
al@14225 | 84 # gtk3-widget-factory -> gtk+3-widget-factory |
al@13955 | 85 |
Hans-G?nter@22803 | 86 # Libraries. |
Hans-G?nter@22803 | 87 cp -a $install/usr/lib/*.so* $fs/usr/lib |
Hans-G?nter@22803 | 88 cp -a $install/usr/lib/gtk-3.0/3.0.0 $fs/usr/lib/gtk-3.0 |
Hans-G?nter@22803 | 89 rm -rf $fs/usr/lib/gtk-3.0/3.0.0/*/*.la |
al@13955 | 90 |
al@14225 | 91 # Themes. |
Hans-G?nter@22803 | 92 cp -a $install/usr/share/themes $fs/usr/share |
Hans-G?nter@22803 | 93 cp -a $install/usr/share/glib-2.0 $fs/usr/share |
al@13955 | 94 } |