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