wok-current view cairo/receipt @ rev 17651
Up: xz 5.2.0
author | Alexander Medvedev <devl547@gmail.com> |
---|---|
date | Sat Feb 14 22:23:35 2015 +0000 (2015-02-14) |
parents | 252c0d4e5dfd |
children | a8154312d382 |
line source
1 # SliTaz package receipt.
3 PACKAGE="cairo"
4 VERSION="1.14.0"
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 ./configure \
30 --prefix=/usr \
31 --mandir=/usr/share/man \
32 --with-html-dir=/usr/share/doc \
33 --enable-xcb \
34 --enable-tee \
35 --disable-static \
36 --enable-xlib-xcb \
37 $CONFIGURE_ARGS &&
38 make $MAKEFLAGS &&
39 make DESTDIR=$DESTDIR install
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs/usr/lib/cairo
46 cp -a $install/usr/bin $fs/usr
47 cp -a $install/usr/lib/*.so* $fs/usr/lib
48 cp -a $install/usr/lib/cairo/*.so* $fs/usr/lib/cairo
49 }