wok view cairo/receipt @ rev 16501

Up: tinycm (1.2)
author Christophe Lincoln <pankso@slitaz.org>
date Thu Apr 24 02:32:31 2014 +0200 (2014-04-24)
parents e6ca13490388
children 02d98b4ae62d
line source
1 # SliTaz package receipt.
3 PACKAGE="cairo"
4 VERSION="1.12.2"
5 CATEGORY="x-window"
6 SHORT_DESC="2D graphics library."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="MPL LGPL2.1"
9 TARBALL="$PACKAGE-$VERSION.tar.xz"
10 WEB_SITE="http://www.cairographics.org/"
11 WGET_URL="http://cairographics.org/releases/$TARBALL"
12 HOST_ARCH="i486 arm"
14 DEPENDS="glib pixman libpng zlib expat fontconfig freetype xorg-libX11 \
15 xorg-libXau xorg-libXdmcp xorg-libXrender xcb-util libxcb"
16 BUILD_DEPENDS="pkg-config glib-dev libpng-dev zlib-dev fontconfig-dev \
17 freetype-dev xorg-libX11-dev pixman-dev xorg-libXau-dev xorg-libXdmcp-dev \
18 xorg-libXrender-dev xcb-util-dev libxcb-dev expat-dev libxml2-dev"
20 # Handle cross compilation
21 case "$ARCH" in
22 arm*) export CFLAGS="$CFLAGS -L/cross/$ARCH/sysroot/usr/lib" ;;
23 esac
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 cd $src
29 patch -Np1 -i $stuff/cairo-1.10.0-buggy_gradients.patch
30 # https://bugs.freedesktop.org/show_bug.cgi?id=50852
31 patch -Np1 -i $stuff/cairo-1.12.2-reduce-broken-stopped-edge-continuation.patch
32 ./configure \
33 --prefix=/usr \
34 --mandir=/usr/share/man \
35 --with-html-dir=/usr/share/doc \
36 --enable-xcb \
37 --enable-tee \
38 --disable-static \
39 $CONFIGURE_ARGS &&
40 make $MAKEFLAGS &&
41 make DESTDIR=$DESTDIR install
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/usr/lib
48 cp -a $install/usr/lib/*.so* $fs/usr/lib
49 }