wok view librsvg/receipt @ rev 23877
Up busybox (1.32.0)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jul 01 17:06:12 2020 +0000 (2020-07-01) |
parents | 557de358e9d4 |
children | 6831608a1b2a |
line source
1 # SliTaz package receipt.
3 PACKAGE="librsvg"
4 VERSION="2.40.16"
5 CATEGORY="x-window"
6 SHORT_DESC="SVG Rendering Library"
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.xz"
10 WEB_SITE="https://wiki.gnome.org/LibRsvg"
11 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION:0:4}/$TARBALL"
12 HOST_ARCH="i486 arm"
14 DEPENDS="bzlib cairo fontconfig freetype gdk-pixbuf glib glibc-base harfbuzz \
15 libcroco libffi libgio libpng libxcb libxml2 pango pcre pixman xorg-libX11 \
16 xorg-libXau xorg-libXdmcp xorg-libXext xorg-libXrender zlib"
17 BUILD_DEPENDS="cairo-dev expat-dev fontconfig-dev freetype-dev gdk-pixbuf-dev
18 glib-dev libcroco-dev libffi-dev libpng-dev libxml2-dev pango-dev"
20 # Handle cross compilation
21 case "$ARCH" in
22 i?86) BUILD_DEPENDS="gtk-doc perl libgsf libcroco-dev \
23 gobject-introspection-dev gtk+3-dev" ;;
24 esac
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 ./configure \
30 --disable-static \
31 LIBCROCO_CFLAGS="-I/cross/$ARCH/sysroot/usr/include" \
32 $CONFIGURE_ARGS &&
33 # from fix libtool:
34 sed -i 's| -shared | -Wl,-Os,--as-needed\0|g' libtool
35 make &&
36 make install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 cook_copy_files *.so*
43 }
45 # Pre and post install commands for Tazpkg.
46 post_install()
47 {
48 [ -z "$quiet" ] && echo -en "\nUpdating gdk pixbuf loaders cache file..."
49 chroot "$1/" /usr/bin/gdk-pixbuf-query-loaders --update-cache
50 status
51 }