wok-current view cairo/receipt @ rev 24618
updated gphoto2 (2.5.23 -> 2.5.28)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Mar 07 09:50:09 2022 +0100 (2022-03-07) |
parents | 54ab3852dc4f |
children | 252903ff3899 |
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 xorg-libXext \
16 xorg-libXrender zlib"
17 BUILD_DEPENDS="pkg-config glib-dev libpng-dev zlib-dev fontconfig-dev \
18 freetype-dev xorg-libX11-dev pixman-dev xorg-libXau-dev xorg-libXdmcp-dev \
19 xorg-libXrender-dev xcb-util-dev libxcb-dev expat-dev libxml2-dev util-linux-uuid-dev"
20 SPLIT="cairo-tools"
21 SIBLINGS="cairo-gl"
22 HOST_ARCH="i486 arm"
24 # Handle cross compilation
25 case "$ARCH" in
26 arm*) export CFLAGS="$CFLAGS -L/cross/$ARCH/sysroot/usr/lib" ;;
27 esac
29 current_version()
30 {
31 wget -O - https://www.cairographics.org/releases/ 2>/dev/null | \
32 sed '/cairo-/!d;s|.*cairo-||;s|.tar.*||' | sed '$!d'
33 }
35 # Rules to configure and make the package.
36 compile_rules()
37 {
38 sed -i '/index.sgml/d' doc/public/Makefile*
39 ./configure \
40 --prefix=/usr \
41 --enable-xcb \
42 --enable-xlib-xcb \
43 --enable-tee \
44 --disable-gl \
45 --disable-static \
46 $CONFIGURE_ARGS &&
47 make $MAKEFLAGS &&
48 make DESTDIR=$DESTDIR install
49 }
51 # Rules to gen a SliTaz package suitable for Tazpkg.
52 genpkg_rules()
53 {
54 mkdir -p $fs/usr/lib
55 cp -a $install/usr/lib/*.so* $fs/usr/lib
56 }