wok annotate cairo/receipt @ rev 19151
Up: slitaz-boot-scripts(432), tazpanel(592).
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon May 23 16:34:04 2016 +0300 (2016-05-23) |
parents | 21172827b7f1 |
children | b34e3540f205 |
rev | line source |
---|---|
pankso@22 | 1 # SliTaz package receipt. |
pankso@22 | 2 |
pankso@22 | 3 PACKAGE="cairo" |
psychomaniak@18544 | 4 VERSION="1.14.4" |
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 |
pankso@1999 | 29 ./configure \ |
pankso@1999 | 30 --prefix=/usr \ |
pankso@1999 | 31 --mandir=/usr/share/man \ |
pankso@1999 | 32 --with-html-dir=/usr/share/doc \ |
pankso@5336 | 33 --enable-xcb \ |
slaxemulator@9383 | 34 --enable-tee \ |
slaxemulator@6628 | 35 --disable-static \ |
pascal@2489 | 36 $CONFIGURE_ARGS && |
slaxemulator@13171 | 37 make $MAKEFLAGS && |
slaxemulator@13171 | 38 make DESTDIR=$DESTDIR install |
pankso@22 | 39 } |
pankso@22 | 40 |
pankso@22 | 41 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@22 | 42 genpkg_rules() |
pankso@22 | 43 { |
devl547@17571 | 44 mkdir -p $fs/usr/lib/cairo |
devl547@17571 | 45 cp -a $install/usr/bin $fs/usr |
pankso@12549 | 46 cp -a $install/usr/lib/*.so* $fs/usr/lib |
devl547@17571 | 47 cp -a $install/usr/lib/cairo/*.so* $fs/usr/lib/cairo |
pankso@22 | 48 } |