wok annotate gtk+/receipt @ rev 23853
Up alsa-utils (1.2.2)
author | Richard Dunbar <mojo@slitaz.org> |
---|---|
date | Mon Jun 15 17:30:36 2020 -0400 (2020-06-15) |
parents | 41a551d8ddd5 |
children | 3e2a0347b2f1 |
rev | line source |
---|---|
pankso@22 | 1 # SliTaz package receipt. |
pankso@22 | 2 |
pankso@22 | 3 PACKAGE="gtk+" |
Hans-G?nter@22893 | 4 VERSION="2.24.32" |
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" |
Hans-G?nter@22893 | 9 WEB_SITE="https://www.gtk.org/" |
Hans-G?nter@22893 | 10 |
Hans-G?nter@22893 | 11 TARBALL="$PACKAGE-$VERSION.tar.xz" |
Hans-G?nter@22893 | 12 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION:0:4}/$TARBALL" |
Hans-G?nter@22893 | 13 |
jozee@3751 | 14 SUGGESTED="cups gnutls libgcrypt libgpg-error" |
Hans-G?nter@22893 | 15 DEPENDS="atk cairo expat fontconfig freetype gdk-pixbuf glib glibc-base |
Hans-G?nter@22893 | 16 harfbuzz jpeg libgio libpng libxcb pango pixman tiff xcb-util |
Hans-G?nter@22893 | 17 xorg-libX11 xorg-libXau xorg-libXcomposite xorg-libXcursor |
Hans-G?nter@22893 | 18 xorg-libXdamage xorg-libXdmcp xorg-libXext xorg-libXfixes |
Hans-G?nter@22893 | 19 xorg-libXinerama xorg-libXrandr xorg-libXrender zlib" |
Hans-G?nter@22893 | 20 |
Hans-G?nter@22893 | 21 BUILD_DEPENDS="atk-dev automake dbus-dev dbus-glib-dev faenza-icon-theme |
Hans-G?nter@22893 | 22 fontconfig-dev freetype-dev gdk-pixbuf-dev harfbuzz-dev libffi-dev |
Hans-G?nter@22893 | 23 libpng-dev libxcb-dev libxml2-dev optipng pango-dev pixman-dev |
Hans-G?nter@22893 | 24 xorg-inputproto xorg-libX11-dev xorg-libXext-dev xorg-libXrender-dev |
Hans-G?nter@22893 | 25 xorg-xextproto" |
Hans-G?nter@22893 | 26 |
pankso@16137 | 27 HOST_ARCH="i486 arm" |
pankso@22 | 28 |
pankso@16137 | 29 # Handle cross compilation. |
pankso@16137 | 30 case "$ARCH" in |
pankso@16239 | 31 i?86) |
Hans-G?nter@22893 | 32 BUILD_DEPENDS="$BUILD_DEPENDS bash cups-dev gobject-introspection-dev \ |
Hans-G?nter@22893 | 33 perl pkg-config" ;; |
pankso@16239 | 34 arm*) |
pankso@16137 | 35 ARCH_ARGS="--enable-introspection=no --disable-glibtest --disable-cups \ |
pankso@16239 | 36 --disable-papi --with-gdktarget=x11 --with-xinput gio_can_sniff=yes" |
pankso@16239 | 37 export LDFLAGS="$LDFLAGS -L/cross/$ARCH/sysroot/usr/lib" |
pankso@16239 | 38 export CPPFLAGS="$CPPFLAGS -I/cross/$ARCH/sysroot/usr/include" |
pankso@16239 | 39 export LIBTOOL=${HOST_SYSTEM}-libtool ;; |
pankso@16137 | 40 esac |
pankso@9868 | 41 |
pankso@22 | 42 # Rules to configure and make the package. |
pankso@22 | 43 compile_rules() |
pankso@22 | 44 { |
Hans-G?nter@22893 | 45 . $stuff/replace-icons |
Hans-G?nter@22893 | 46 cd $src |
al@17189 | 47 patch -p0 < $stuff/undo_gen_icons.patch |
Hans-G?nter@22893 | 48 find . -name Makefile.in | xargs sed -i 's|@AUTOMAKE@|automake|' |
al@17189 | 49 |
Hans-G?nter@22893 | 50 ./configure \ |
Hans-G?nter@22893 | 51 --prefix=/usr \ |
Hans-G?nter@22893 | 52 --sysconfdir=/etc \ |
Hans-G?nter@22893 | 53 --with-html-dir=/usr/share/doc \ |
pankso@16239 | 54 $CONFIGURE_ARGS ${ARCH_ARGS} && |
slaxemulator@11796 | 55 # https://bugzilla.gnome.org/show_bug.cgi?id=655517 |
pankso@16137 | 56 sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool && |
pankso@16457 | 57 make $MAKEFLAGS $LIBTOOL && |
gokhlayeh@11577 | 58 make DESTDIR=$DESTDIR install |
pankso@22 | 59 } |
pankso@22 | 60 |
pankso@22 | 61 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@22 | 62 genpkg_rules() |
pankso@22 | 63 { |
Hans-G?nter@22893 | 64 mkdir -p $fs/usr/lib/gtk-2.0 |
Hans-G?nter@22893 | 65 mkdir -p $fs/usr/share $fs/usr/bin |
pankso@836 | 66 |
Hans-G?nter@22893 | 67 # Libraries. |
Hans-G?nter@22893 | 68 cp -a $install/usr/lib/*.so* $fs/usr/lib |
Hans-G?nter@22893 | 69 cp -a $install/usr/lib/gtk-2.0/2.10.0 $fs/usr/lib/gtk-2.0 |
Hans-G?nter@22893 | 70 rm -rf $fs/usr/lib/gtk-2.0/2.10.0/*/*.la |
pankso@836 | 71 |
pankso@2002 | 72 # Themes |
Hans-G?nter@22893 | 73 cp -a $install/usr/share/themes $fs/usr/share |
pankso@836 | 74 |
Hans-G?nter@22893 | 75 # Applications. |
Hans-G?nter@22893 | 76 cp -a $install/usr/bin/gtk-query-immodules-2.0 $fs/usr/bin |
Hans-G?nter@22893 | 77 cp -a $install/usr/bin/gtk-update-icon-cache $fs/usr/bin |
Hans-G?nter@22893 | 78 cp -a $install/usr/bin/gtk-builder-convert $fs/usr/bin |
slaxemulator@10982 | 79 |
slaxemulator@10982 | 80 mkdir -p $fs/etc/gtk-2.0 |
gokhlayeh@11958 | 81 ln -s /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache \ |
gokhlayeh@11958 | 82 $fs/etc/gtk-2.0/gdk-pixbuf.loaders |
pankso@22 | 83 } |
pankso@22 | 84 |
Hans-G?nter@22893 | 85 # Post install commands for Tazpkg. |
pankso@22 | 86 post_install() |
pankso@22 | 87 { |
al@18663 | 88 mkdir -p "$1/etc/gtk-2.0" |
al@18663 | 89 chroot "$1/" /usr/bin/gtk-query-immodules-2.0 > "$1/etc/gtk-2.0/gtk.immodules" |
pankso@22 | 90 } |