wok-current view cairo/receipt @ rev 24885

updated mcabber (0.9.10 -> 1.1.2)
author Hans-G?nter Theisgen
date Fri Apr 01 07:52:41 2022 +0100 (2022-04-01)
parents 2f031a8d4c0b
children 5926178cd6fa
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 # modify lookup-symbol.c for binutils-2.37
41 patch --strip=0 --input=$stuff/patches/lookup-symbol.c-1.16.0 &&
42 sed -i '/index.sgml/d' doc/public/Makefile* &&
44 ./configure \
45 --prefix=/usr \
46 --disable-gl \
47 --disable-static \
48 --enable-tee \
49 --enable-xcb \
50 --enable-xlib-xcb \
51 $CONFIGURE_ARGS &&
52 make $MAKEFLAGS &&
53 make install DESTDIR=$DESTDIR
54 }
56 # Rules to gen a SliTaz package suitable for Tazpkg.
57 genpkg_rules()
58 {
59 mkdir -p $fs/usr/lib
60 cp -a $install/usr/lib/*.so* $fs/usr/lib
61 }