wok-current annotate gtk+/receipt @ rev 25524
created recipes for tree-sitter and tree-sitter-dev 0.20.7
author | Hans-G?nter Theisgen |
---|---|
date | Fri Feb 24 17:21:52 2023 +0100 (18 months ago) |
parents | 6831608a1b2a |
children | a23978bfa665 |
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" |
pascal@24112 | 12 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$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 |
pascal@24074 | 29 current_version() |
pascal@24074 | 30 { |
pascal@24074 | 31 wget -O - $(dirname $WGET_URL) 2>/dev/null | \ |
pascal@24074 | 32 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24074 | 33 } |
pascal@24074 | 34 |
pankso@16137 | 35 # Handle cross compilation. |
pankso@16137 | 36 case "$ARCH" in |
pankso@16239 | 37 i?86) |
Hans-G?nter@22893 | 38 BUILD_DEPENDS="$BUILD_DEPENDS bash cups-dev gobject-introspection-dev \ |
Hans-G?nter@22893 | 39 perl pkg-config" ;; |
pankso@16239 | 40 arm*) |
pankso@16137 | 41 ARCH_ARGS="--enable-introspection=no --disable-glibtest --disable-cups \ |
pankso@16239 | 42 --disable-papi --with-gdktarget=x11 --with-xinput gio_can_sniff=yes" |
pankso@16239 | 43 export LDFLAGS="$LDFLAGS -L/cross/$ARCH/sysroot/usr/lib" |
pankso@16239 | 44 export CPPFLAGS="$CPPFLAGS -I/cross/$ARCH/sysroot/usr/include" |
pankso@16239 | 45 export LIBTOOL=${HOST_SYSTEM}-libtool ;; |
pankso@16137 | 46 esac |
pankso@9868 | 47 |
pankso@22 | 48 # Rules to configure and make the package. |
pankso@22 | 49 compile_rules() |
pankso@22 | 50 { |
Hans-G?nter@22893 | 51 . $stuff/replace-icons |
Hans-G?nter@22893 | 52 cd $src |
al@17189 | 53 patch -p0 < $stuff/undo_gen_icons.patch |
Hans-G?nter@22893 | 54 find . -name Makefile.in | xargs sed -i 's|@AUTOMAKE@|automake|' |
al@17189 | 55 |
Hans-G?nter@22893 | 56 ./configure \ |
Hans-G?nter@22893 | 57 --prefix=/usr \ |
Hans-G?nter@22893 | 58 --sysconfdir=/etc \ |
Hans-G?nter@22893 | 59 --with-html-dir=/usr/share/doc \ |
pankso@16239 | 60 $CONFIGURE_ARGS ${ARCH_ARGS} && |
slaxemulator@11796 | 61 # https://bugzilla.gnome.org/show_bug.cgi?id=655517 |
pankso@16137 | 62 sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool && |
pankso@16457 | 63 make $MAKEFLAGS $LIBTOOL && |
gokhlayeh@11577 | 64 make DESTDIR=$DESTDIR install |
pankso@22 | 65 } |
pankso@22 | 66 |
pankso@22 | 67 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@22 | 68 genpkg_rules() |
pankso@22 | 69 { |
Hans-G?nter@22893 | 70 mkdir -p $fs/usr/lib/gtk-2.0 |
Hans-G?nter@22893 | 71 mkdir -p $fs/usr/share $fs/usr/bin |
pankso@836 | 72 |
Hans-G?nter@22893 | 73 # Libraries. |
Hans-G?nter@22893 | 74 cp -a $install/usr/lib/*.so* $fs/usr/lib |
Hans-G?nter@22893 | 75 cp -a $install/usr/lib/gtk-2.0/2.10.0 $fs/usr/lib/gtk-2.0 |
Hans-G?nter@22893 | 76 rm -rf $fs/usr/lib/gtk-2.0/2.10.0/*/*.la |
pankso@836 | 77 |
pankso@2002 | 78 # Themes |
Hans-G?nter@22893 | 79 cp -a $install/usr/share/themes $fs/usr/share |
pankso@836 | 80 |
Hans-G?nter@22893 | 81 # Applications. |
Hans-G?nter@22893 | 82 cp -a $install/usr/bin/gtk-query-immodules-2.0 $fs/usr/bin |
Hans-G?nter@22893 | 83 cp -a $install/usr/bin/gtk-update-icon-cache $fs/usr/bin |
Hans-G?nter@22893 | 84 cp -a $install/usr/bin/gtk-builder-convert $fs/usr/bin |
slaxemulator@10982 | 85 |
slaxemulator@10982 | 86 mkdir -p $fs/etc/gtk-2.0 |
gokhlayeh@11958 | 87 ln -s /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache \ |
gokhlayeh@11958 | 88 $fs/etc/gtk-2.0/gdk-pixbuf.loaders |
pankso@22 | 89 } |
pankso@22 | 90 |
Hans-G?nter@22893 | 91 # Post install commands for Tazpkg. |
pankso@22 | 92 post_install() |
pankso@22 | 93 { |
al@18663 | 94 mkdir -p "$1/etc/gtk-2.0" |
al@18663 | 95 chroot "$1/" /usr/bin/gtk-query-immodules-2.0 > "$1/etc/gtk-2.0/gtk.immodules" |
pankso@22 | 96 } |