wok-next view cairo/receipt @ rev 17484
opus-tools: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Dec 30 10:55:38 2014 +0100 (2014-12-30) |
parents | 02d98b4ae62d |
children | 74cf84e97d02 |
line source
1 # SliTaz package receipt.
3 PACKAGE="cairo"
4 VERSION="1.12.10"
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 --enable-xlib-xcb \
40 $CONFIGURE_ARGS &&
41 make $MAKEFLAGS &&
42 make DESTDIR=$DESTDIR install
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 mkdir -p $fs/usr/lib
49 cp -a $install/usr/lib/*.so* $fs/usr/lib
50 }