wok view cairo-gl/receipt @ rev 16584
Some fixes to last commit
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun May 04 05:48:48 2014 +0200 (2014-05-04) |
parents | 8bdba6bcdf42 |
children | 02d98b4ae62d |
line source
1 # SliTaz package receipt.
3 PACKAGE="cairo-gl"
4 VERSION="1.12.2"
5 CATEGORY="x-window"
6 SHORT_DESC="2D graphics library with GL support."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="MPL LGPL2.1"
9 SOURCE="cairo"
10 TARBALL="$SOURCE-$VERSION.tar.xz"
11 WEB_SITE="http://www.cairographics.org/"
12 WGET_URL="http://cairographics.org/releases/$TARBALL"
13 #HOST_ARCH="arm i486"
15 DEPENDS="glib pixman libpng zlib expat fontconfig freetype xorg-libX11 \
16 xorg-libXau xorg-libXdmcp xorg-libXrender xcb-util libxcb mesa-wayland"
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 \
20 mesa-wayland-dev wayland-dev udev-dev xorg-libXxf86vm-dev libdrm-dev"
22 # Handle cross compilation
23 case "$ARCH" in
24 arm*) export CFLAGS="$CFLAGS -L/cross/$ARCH/sysroot/usr/lib" ;;
25 esac
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 patch -Np1 -i $stuff/cairo-1.10.0-buggy_gradients.patch
31 # https://bugs.freedesktop.org/show_bug.cgi?id=50852
32 patch -Np1 -i $stuff/cairo-1.12.2-reduce-broken-stopped-edge-continuation.patch
33 ./configure \
34 --prefix=/usr \
35 --with-html-dir=/usr/share/doc \
36 --enable-xcb \
37 --enable-tee \
38 --enable-gl \
39 --disable-static \
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 }