wok-current annotate librsvg/receipt @ rev 24401

updated check and check-dev (0.13.0 -> 0.15.2)
author Hans-G?nter Theisgen
date Tue Feb 08 17:05:29 2022 +0100 (2022-02-08)
parents 6831608a1b2a
children 3ad63c8fc2f9
rev   line source
erjo@3554 1 # SliTaz package receipt.
erjo@3554 2
erjo@3554 3 PACKAGE="librsvg"
al@19478 4 VERSION="2.40.16"
slaxemulator@6677 5 CATEGORY="x-window"
erjo@3554 6 SHORT_DESC="SVG Rendering Library"
erjo@3554 7 MAINTAINER="erjo@slitaz.org"
pascal@14716 8 LICENSE="GPL2"
al@19478 9 TARBALL="$PACKAGE-$VERSION.tar.xz"
al@19478 10 WEB_SITE="https://wiki.gnome.org/LibRsvg"
pascal@24112 11 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"
pankso@16222 12 HOST_ARCH="i486 arm"
al@19152 13
al@19478 14 DEPENDS="bzlib cairo fontconfig freetype gdk-pixbuf glib glibc-base harfbuzz \
Hans-G?nter@23758 15 libcroco libffi libgio libpng libxcb libxml2 pango pcre pixman xorg-libX11 \
Hans-G?nter@23758 16 xorg-libXau xorg-libXdmcp xorg-libXext xorg-libXrender zlib"
Hans-G?nter@23758 17 BUILD_DEPENDS="cairo-dev expat-dev fontconfig-dev freetype-dev gdk-pixbuf-dev
Hans-G?nter@23758 18 glib-dev libcroco-dev libffi-dev libpng-dev libxml2-dev pango-dev"
pascal@14716 19
pankso@16222 20 # Handle cross compilation
pankso@16222 21 case "$ARCH" in
al@19478 22 i?86) BUILD_DEPENDS="gtk-doc perl libgsf libcroco-dev \
al@19478 23 gobject-introspection-dev gtk+3-dev" ;;
pankso@16222 24 esac
erjo@3554 25
pascal@24111 26 current_version()
pascal@24111 27 {
pascal@24111 28 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
pascal@24111 29 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24111 30 }
pascal@24111 31
erjo@3554 32 # Rules to configure and make the package.
erjo@3554 33 compile_rules()
erjo@3554 34 {
Hans-G?nter@23758 35 ./configure \
Hans-G?nter@23758 36 --disable-static \
Hans-G?nter@23758 37 LIBCROCO_CFLAGS="-I/cross/$ARCH/sysroot/usr/include" \
al@19478 38 $CONFIGURE_ARGS &&
Hans-G?nter@23760 39 # from fix libtool:
Hans-G?nter@23760 40 sed -i 's| -shared | -Wl,-Os,--as-needed\0|g' libtool
Hans-G?nter@23758 41 make &&
Hans-G?nter@23758 42 make install
erjo@3554 43 }
erjo@3554 44
erjo@3554 45 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@3554 46 genpkg_rules()
erjo@3554 47 {
al@19478 48 cook_copy_files *.so*
erjo@3554 49 }
erjo@3554 50
slaxemulator@7770 51 # Pre and post install commands for Tazpkg.
slaxemulator@7770 52 post_install()
slaxemulator@7770 53 {
al@19152 54 [ -z "$quiet" ] && echo -en "\nUpdating gdk pixbuf loaders cache file..."
pascal@18730 55 chroot "$1/" /usr/bin/gdk-pixbuf-query-loaders --update-cache
gokhlayeh@11958 56 status
slaxemulator@7770 57 }