wok-next annotate cairo/receipt @ rev 20542
Up cairo (1.14.12), cookutils (1044), freetype (deps), harfbuzz (deps), jsoncpp (1.8.4), libdrm (2.4.89), librsvg (2.42.2), mesa (17.3.4), pango (1.40.14).
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Apr 02 10:44:00 2018 +0300 (2018-04-02) |
parents | 757d032c55c7 |
children | 29ae397b760a |
rev | line source |
---|---|
al@19737 | 1 # SliTaz package receipt v2. |
pankso@22 | 2 |
pankso@22 | 3 PACKAGE="cairo" |
al@20542 | 4 VERSION="1.14.12" |
pankso@22 | 5 CATEGORY="x-window" |
al@19250 | 6 SHORT_DESC="2D graphics library" |
pankso@22 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15022 | 8 LICENSE="MPL LGPL2.1" |
al@19250 | 9 WEB_SITE="https://www.cairographics.org/" |
al@20542 | 10 LFS="http://www.linuxfromscratch.org/blfs/view/stable/x/cairo.html" |
pankso@16083 | 11 |
al@19737 | 12 TARBALL="$PACKAGE-$VERSION.tar.xz" |
al@19737 | 13 WGET_URL="${WEB_SITE}releases/$TARBALL" |
al@19737 | 14 |
al@20513 | 15 BUILD_DEPENDS="glib-dev libpng16-dev zlib-dev fontconfig-dev \ |
al@20443 | 16 freetype-dev xorg-libX11-dev xorg-libXext-dev xorg-pixman-dev xorg-libXau-dev \ |
al@20443 | 17 xorg-libXdmcp-dev xorg-libXrender-dev xorg-xcb-util-dev xorg-libxcb-dev \ |
al@20443 | 18 expat-dev libxml2-dev" |
al@20443 | 19 SPLIT="cairo cairo-tools cairo-dev" |
pankso@16083 | 20 |
al@20504 | 21 BUILD_DEPENDS="$BUILD_DEPENDS mesa-dev eudev-dev xorg-libXxf86vm-dev \ |
al@20504 | 22 libdrm-dev mesa-libegl xorg-libxshmfence-dev" |
al@20504 | 23 SPLIT="$SPLIT cairo-gl:gl cairo-gl-tools:gl cairo-gl-dev:gl" |
al@20542 | 24 COOKOPTS="skip-log-errors" |
pankso@22 | 25 |
al@20443 | 26 compile_rules() { |
al@20443 | 27 case "$ARCH" in |
al@20443 | 28 arm*) export CFLAGS="$CFLAGS -L/cross/$ARCH/sysroot/usr/lib";; |
al@20443 | 29 esac |
al@20443 | 30 |
al@20443 | 31 case "$SET" in |
al@20443 | 32 gl) SET_ARGS='--enable-gl';; |
al@20443 | 33 *) SET_ARGS='--disable-gl';; |
al@20443 | 34 esac |
al@20443 | 35 |
pankso@1999 | 36 ./configure \ |
pankso@5336 | 37 --enable-xcb \ |
al@19250 | 38 --enable-xlib-xcb \ |
slaxemulator@9383 | 39 --enable-tee \ |
slaxemulator@6628 | 40 --disable-static \ |
al@20542 | 41 $SET_ARGS \ |
al@20542 | 42 $CONFIGURE_ARGS && |
al@20443 | 43 fix libtool && |
slaxemulator@13171 | 44 make $MAKEFLAGS && |
slaxemulator@13171 | 45 make DESTDIR=$DESTDIR install |
pankso@22 | 46 } |
pankso@22 | 47 |
al@20443 | 48 genpkg_rules() { |
al@19737 | 49 case $PACKAGE in |
al@19737 | 50 cairo) |
al@19737 | 51 copy libcairo.so* libcairo-gobject.so* libcairo-script-interpreter.so* |
al@20504 | 52 DEPENDS="fontconfig freetype glib libpng16 xorg-libX11 xorg-libxcb \ |
al@20504 | 53 xorg-pixman zlib" |
al@19737 | 54 ;; |
al@19737 | 55 cairo-tools) |
al@19737 | 56 copy bin/ cairo-fdr.so* cairo-sphinx.so* libcairo-trace.so* |
al@19737 | 57 CAT="development|development tools" |
al@20504 | 58 DEPENDS="cairo glib xorg-libX11 xorg-libXrender xorg-libxcb \ |
al@20504 | 59 xorg-pixman zlib" |
al@19737 | 60 ;; |
al@19737 | 61 cairo-dev) |
al@19737 | 62 copy @dev |
al@20504 | 63 DEPENDS="cairo cairo-tools \ |
al@20504 | 64 fontconfig-dev freetype-dev glib-dev libpng16-dev xorg-libX11-dev \ |
al@20504 | 65 xorg-libXext-dev xorg-libXrender-dev xorg-libxcb-dev \ |
al@20504 | 66 xorg-pixman-dev zlib-dev" |
al@19737 | 67 ;; |
al@20443 | 68 |
al@20443 | 69 cairo-gl) |
al@20443 | 70 copy usr/lib/*.so* |
al@20443 | 71 CAT="x-window|with GL support" |
al@20504 | 72 DEPENDS="fontconfig freetype glib libpng16 mesa mesa-libegl \ |
al@20504 | 73 xorg-libX11 xorg-libxcb xorg-pixman zlib" |
al@20443 | 74 ;; |
al@20443 | 75 cairo-gl-tools) |
al@20443 | 76 copy usr/bin/ usr/lib/cairo/*.so* |
al@20443 | 77 CAT="development|development tools with GL support" |
al@20504 | 78 DEPENDS="cairo-gl glib mesa mesa-libegl xorg-libX11 \ |
al@20504 | 79 xorg-libXrender xorg-libxcb xorg-pixman zlib" |
al@20443 | 80 ;; |
al@20443 | 81 cairo-gl-dev) |
al@20443 | 82 copy @dev |
al@20443 | 83 CAT="development|development files with GL support" |
al@20504 | 84 DEPENDS="cairo-gl cairo-gl-tools \ |
al@20504 | 85 fontconfig-dev freetype-dev glib-dev libpng16-dev mesa-dev \ |
al@20504 | 86 xorg-libX11-dev xorg-libXext-dev xorg-libXrender-dev \ |
al@20504 | 87 xorg-libxcb-dev xorg-pixman-dev zlib-dev" |
al@20443 | 88 ;; |
al@19737 | 89 esac |
pankso@22 | 90 } |