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