wok-next annotate cairo/receipt @ rev 20454
Choose between libpng16 and libpng12
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Feb 28 17:32:31 2018 +0200 (2018-02-28) |
parents | 7639f09792cf |
children | c0521c689857 |
rev | line source |
---|---|
al@19737 | 1 # SliTaz package receipt v2. |
pankso@22 | 2 |
pankso@22 | 3 PACKAGE="cairo" |
al@19737 | 4 VERSION="1.14.8" |
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/" |
pankso@16083 | 10 |
al@19737 | 11 TARBALL="$PACKAGE-$VERSION.tar.xz" |
al@19737 | 12 WGET_URL="${WEB_SITE}releases/$TARBALL" |
al@19737 | 13 |
al@19737 | 14 BUILD_DEPENDS="pkg-config glib-dev libpng16-dev zlib-dev fontconfig-dev \ |
al@20443 | 15 freetype-dev xorg-libX11-dev xorg-libXext-dev xorg-pixman-dev xorg-libXau-dev \ |
al@20443 | 16 xorg-libXdmcp-dev xorg-libXrender-dev xorg-xcb-util-dev xorg-libxcb-dev \ |
al@20443 | 17 expat-dev libxml2-dev" |
al@20443 | 18 SPLIT="cairo cairo-tools cairo-dev" |
pankso@16083 | 19 |
al@20443 | 20 #BUILD_DEPENDS="$BUILD_DEPENDS mesa-dev eudev-dev xorg-libXxf86vm-dev \ |
al@20443 | 21 #libdrm-dev libegl-mesa xorg-libxshmfence-dev" |
al@20443 | 22 #SPLIT="$SPLIT cairo-gl:gl cairo-gl-tools:gl cairo-gl-dev:gl" |
pankso@22 | 23 |
al@20443 | 24 compile_rules() { |
al@20443 | 25 case "$ARCH" in |
al@20443 | 26 arm*) export CFLAGS="$CFLAGS -L/cross/$ARCH/sysroot/usr/lib";; |
al@20443 | 27 esac |
al@20443 | 28 |
al@20443 | 29 case "$SET" in |
al@20443 | 30 gl) SET_ARGS='--enable-gl';; |
al@20443 | 31 *) SET_ARGS='--disable-gl';; |
al@20443 | 32 esac |
al@20443 | 33 |
al@20443 | 34 fix ld |
pankso@1999 | 35 ./configure \ |
al@20443 | 36 --disable-silent-rules \ |
pankso@5336 | 37 --enable-xcb \ |
al@19250 | 38 --enable-xlib-xcb \ |
slaxemulator@9383 | 39 --enable-tee \ |
slaxemulator@6628 | 40 --disable-static \ |
al@20443 | 41 $SET_ARGS $ARCH_ARGS $CONFIGURE_ARGS && |
al@20443 | 42 fix libtool && |
slaxemulator@13171 | 43 make $MAKEFLAGS && |
slaxemulator@13171 | 44 make DESTDIR=$DESTDIR install |
pankso@22 | 45 } |
pankso@22 | 46 |
al@20443 | 47 genpkg_rules() { |
al@19737 | 48 case $PACKAGE in |
al@19737 | 49 cairo) |
al@19737 | 50 copy libcairo.so* libcairo-gobject.so* libcairo-script-interpreter.so* |
al@19737 | 51 DEPENDS="bzlib fontconfig freetype glib glibc-base harfbuzz libffi \ |
al@20447 | 52 libpng16 xorg-libxcb libxml2 pcre xorg-pixman xorg-libX11 xorg-libXau \ |
al@19737 | 53 xorg-libXdmcp xorg-libXext xorg-libXrender 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@19737 | 58 DEPENDS="cairo libbfd" |
al@19737 | 59 ;; |
al@19737 | 60 cairo-dev) |
al@19737 | 61 copy @dev |
al@19737 | 62 DEPENDS="cairo cairo-tools bzip2 fontconfig-dev freetype-dev \ |
al@20447 | 63 glib-dev harfbuzz-dev libffi-dev libpng16-dev xorg-libxcb-dev \ |
al@20446 | 64 libxml2-dev pcre-dev xorg-pixman-dev xorg-libX11-dev xorg-libXau-dev \ |
al@19737 | 65 xorg-libXdmcp-dev xorg-libXext-dev xorg-libXrender-dev" |
al@19737 | 66 ;; |
al@20443 | 67 |
al@20443 | 68 cairo-gl) |
al@20443 | 69 copy usr/lib/*.so* |
al@20443 | 70 CAT="x-window|with GL support" |
al@20443 | 71 DEPENDS="bzlib fontconfig freetype glib glibc-base harfbuzz libdrm \ |
al@20447 | 72 libffi libpng16 xorg-libxcb libxml2 mesa libegl-mesa pcre xorg-pixman eudev \ |
al@20443 | 73 xorg-libX11 xorg-libXau xorg-libXdamage xorg-libXdmcp xorg-libXext \ |
al@20443 | 74 xorg-libXfixes xorg-libXrender xorg-libXxf86vm zlib" |
al@20443 | 75 ;; |
al@20443 | 76 cairo-gl-tools) |
al@20443 | 77 copy usr/bin/ usr/lib/cairo/*.so* |
al@20443 | 78 CAT="development|development tools with GL support" |
al@20443 | 79 DEPENDS="cairo-gl libbfd wayland" |
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@20443 | 84 DEPENDS="cairo-gl cairo-gl-tools fontconfig-dev freetype-dev \ |
al@20454 | 85 glib-dev harfbuzz-dev libdrm-dev libffi-dev libpng16-dev xorg-libxcb-dev \ |
al@20446 | 86 libxml2-dev mesa-wayland-dev pcre-dev xorg-pixman-dev udev-dev \ |
al@20443 | 87 wayland-dev xorg-libX11-dev xorg-libXau-dev xorg-libXdamage-dev \ |
al@20443 | 88 xorg-libXdmcp-dev xorg-libXext-dev xorg-libXfixes-dev \ |
al@20443 | 89 xorg-libXrender-dev xorg-libXxf86vm-dev" |
al@20443 | 90 ;; |
al@19737 | 91 esac |
pankso@22 | 92 } |