wok-next annotate cairo/receipt @ rev 20726

python: remove previously added '--without-ensurepip' (it made an opposite action)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon May 28 15:07:14 2018 +0300 (2018-05-28)
parents afbc312ba6b0
children f48456621a9d
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@20640 15 BUILD_DEPENDS="zlib-dev xorg-libX11-dev xorg-libXext-dev xorg-libICE-dev \
al@20640 16 xorg-libXrender-dev xorg-libxcb-dev libpng16-dev freetype-dev fontconfig-dev \
al@20640 17 libspectre-dev poppler-dev librsvg-dev gtk+-dev xorg-pixman-dev"
al@20443 18 SPLIT="cairo cairo-tools cairo-dev"
pankso@16083 19
al@20640 20 # use --nogl to disable building cairo-gl* packages
al@20640 21 if [ -z "$nogl" ]; then
al@20640 22 BUILD_DEPENDS="$BUILD_DEPENDS mesa-dev eudev-dev xorg-libXxf86vm-dev \
al@20640 23 libdrm-dev mesa-libegl xorg-libxshmfence-dev"
al@20640 24 SPLIT="$SPLIT cairo-gl:gl cairo-gl-tools:gl cairo-gl-dev:gl"
al@20640 25 fi
al@20542 26 COOKOPTS="skip-log-errors"
pankso@22 27
al@20443 28 compile_rules() {
al@20443 29 case "$ARCH" in
al@20443 30 arm*) export CFLAGS="$CFLAGS -L/cross/$ARCH/sysroot/usr/lib";;
al@20443 31 esac
al@20443 32
al@20443 33 case "$SET" in
al@20443 34 gl) SET_ARGS='--enable-gl';;
al@20443 35 *) SET_ARGS='--disable-gl';;
al@20443 36 esac
al@20443 37
pankso@1999 38 ./configure \
pankso@5336 39 --enable-xcb \
al@19250 40 --enable-xlib-xcb \
slaxemulator@9383 41 --enable-tee \
slaxemulator@6628 42 --disable-static \
al@20542 43 $SET_ARGS \
al@20542 44 $CONFIGURE_ARGS &&
al@20443 45 fix libtool &&
slaxemulator@13171 46 make $MAKEFLAGS &&
slaxemulator@13171 47 make DESTDIR=$DESTDIR install
pankso@22 48 }
pankso@22 49
al@20443 50 genpkg_rules() {
al@19737 51 case $PACKAGE in
al@19737 52 cairo)
al@19737 53 copy libcairo.so* libcairo-gobject.so* libcairo-script-interpreter.so*
al@20504 54 DEPENDS="fontconfig freetype glib libpng16 xorg-libX11 xorg-libxcb \
al@20504 55 xorg-pixman zlib"
al@19737 56 ;;
al@19737 57 cairo-tools)
al@19737 58 copy bin/ cairo-fdr.so* cairo-sphinx.so* libcairo-trace.so*
al@19737 59 CAT="development|development tools"
al@20504 60 DEPENDS="cairo glib xorg-libX11 xorg-libXrender xorg-libxcb \
al@20504 61 xorg-pixman zlib"
al@19737 62 ;;
al@19737 63 cairo-dev)
al@19737 64 copy @dev
al@20504 65 DEPENDS="cairo cairo-tools \
al@20504 66 fontconfig-dev freetype-dev glib-dev libpng16-dev xorg-libX11-dev \
al@20504 67 xorg-libXext-dev xorg-libXrender-dev xorg-libxcb-dev \
al@20504 68 xorg-pixman-dev zlib-dev"
al@19737 69 ;;
al@20443 70
al@20443 71 cairo-gl)
al@20443 72 copy usr/lib/*.so*
al@20443 73 CAT="x-window|with GL support"
al@20504 74 DEPENDS="fontconfig freetype glib libpng16 mesa mesa-libegl \
al@20504 75 xorg-libX11 xorg-libxcb xorg-pixman zlib"
al@20640 76 PROVIDE="cairo:mesa"
al@20443 77 ;;
al@20443 78 cairo-gl-tools)
al@20443 79 copy usr/bin/ usr/lib/cairo/*.so*
al@20443 80 CAT="development|development tools with GL support"
al@20504 81 DEPENDS="cairo-gl glib mesa mesa-libegl xorg-libX11 \
al@20504 82 xorg-libXrender xorg-libxcb xorg-pixman zlib"
al@20640 83 PROVIDE="cairo-tools:mesa cairo-tools:cairo-gl"
al@20443 84 ;;
al@20443 85 cairo-gl-dev)
al@20443 86 copy @dev
al@20443 87 CAT="development|development files with GL support"
al@20504 88 DEPENDS="cairo-gl cairo-gl-tools \
al@20504 89 fontconfig-dev freetype-dev glib-dev libpng16-dev mesa-dev \
al@20504 90 xorg-libX11-dev xorg-libXext-dev xorg-libXrender-dev \
al@20504 91 xorg-libxcb-dev xorg-pixman-dev zlib-dev"
al@20443 92 ;;
al@19737 93 esac
pankso@22 94 }