wok view cairo/receipt @ rev 24747

cairo: disabled trace
author Hans-G?nter Theisgen
date Wed Mar 16 15:54:50 2022 +0100 (2022-03-16)
parents 68cf96abc146
children 2f031a8d4c0b
line source
1 # SliTaz package receipt.
3 PACKAGE="cairo"
4 VERSION="1.16.0"
5 CATEGORY="x-window"
6 SHORT_DESC="2D graphics library"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="MPL LGPL2.1"
9 WEB_SITE="https://www.cairographics.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="${WEB_SITE}releases/$TARBALL"
14 DEPENDS="bzlib fontconfig freetype glib glibc-base harfbuzz libffi libpng
15 libxcb libxml2 pcre pixman xorg-libX11 xorg-libXau xorg-libXdmcp
16 xorg-libXext xorg-libXrender zlib"
17 BUILD_DEPENDS="expat-dev fontconfig-dev freetype-dev glib-dev libpng-dev
18 pixman-dev pkg-config libxcb-dev libxml2-dev util-linux-uuid-dev
19 xcb-util-dev xorg-libX11-dev xorg-libXau-dev xorg-libXdmcp-dev
20 xorg-libXrender-dev zlib-dev"
21 SPLIT="cairo-tools"
22 SIBLINGS="cairo-gl"
24 HOST_ARCH="i486 arm"
26 # Handle cross compilation
27 case "$ARCH" in
28 arm*) export CFLAGS="$CFLAGS -L/cross/$ARCH/sysroot/usr/lib" ;;
29 esac
31 current_version()
32 {
33 wget -O - https://www.cairographics.org/releases/ 2>/dev/null | \
34 sed '/cairo-/!d;s|.*cairo-||;s|.tar.*||' | sed '$!d'
35 }
37 # Rules to configure and make the package.
38 compile_rules()
39 {
40 # 1.16.0 workaround for
41 # errors in lookup-symbol.c
42 # enable-trace=no
43 # until a better solution is found
45 sed -i '/index.sgml/d' doc/public/Makefile*
47 ./configure \
48 --prefix=/usr \
49 --disable-gl \
50 --disable-static \
51 --enable-tee \
52 --enable-trace=no \
53 --enable-xcb \
54 --enable-xlib-xcb \
55 $CONFIGURE_ARGS &&
56 make $MAKEFLAGS &&
57 make install DESTDIR=$DESTDIR
58 }
60 # Rules to gen a SliTaz package suitable for Tazpkg.
61 genpkg_rules()
62 {
63 mkdir -p $fs/usr/lib
64 cp -a $install/usr/lib/*.so* $fs/usr/lib
65 }