wok-next view 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 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="cairo"
4 VERSION="1.14.12"
5 CATEGORY="x-window"
6 SHORT_DESC="2D graphics library"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="MPL LGPL2.1"
9 WEB_SITE="https://www.cairographics.org/"
10 LFS="http://www.linuxfromscratch.org/blfs/view/stable/x/cairo.html"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="${WEB_SITE}releases/$TARBALL"
15 BUILD_DEPENDS="zlib-dev xorg-libX11-dev xorg-libXext-dev xorg-libICE-dev \
16 xorg-libXrender-dev xorg-libxcb-dev libpng16-dev freetype-dev fontconfig-dev \
17 libspectre-dev poppler-dev librsvg-dev gtk+-dev xorg-pixman-dev"
18 SPLIT="cairo cairo-tools cairo-dev"
20 # use --nogl to disable building cairo-gl* packages
21 if [ -z "$nogl" ]; then
22 BUILD_DEPENDS="$BUILD_DEPENDS mesa-dev eudev-dev xorg-libXxf86vm-dev \
23 libdrm-dev mesa-libegl xorg-libxshmfence-dev"
24 SPLIT="$SPLIT cairo-gl:gl cairo-gl-tools:gl cairo-gl-dev:gl"
25 fi
26 COOKOPTS="skip-log-errors"
28 compile_rules() {
29 case "$ARCH" in
30 arm*) export CFLAGS="$CFLAGS -L/cross/$ARCH/sysroot/usr/lib";;
31 esac
33 case "$SET" in
34 gl) SET_ARGS='--enable-gl';;
35 *) SET_ARGS='--disable-gl';;
36 esac
38 ./configure \
39 --enable-xcb \
40 --enable-xlib-xcb \
41 --enable-tee \
42 --disable-static \
43 $SET_ARGS \
44 $CONFIGURE_ARGS &&
45 fix libtool &&
46 make $MAKEFLAGS &&
47 make DESTDIR=$DESTDIR install
48 }
50 genpkg_rules() {
51 case $PACKAGE in
52 cairo)
53 copy libcairo.so* libcairo-gobject.so* libcairo-script-interpreter.so*
54 DEPENDS="fontconfig freetype glib libpng16 xorg-libX11 xorg-libxcb \
55 xorg-pixman zlib"
56 ;;
57 cairo-tools)
58 copy bin/ cairo-fdr.so* cairo-sphinx.so* libcairo-trace.so*
59 CAT="development|development tools"
60 DEPENDS="cairo glib xorg-libX11 xorg-libXrender xorg-libxcb \
61 xorg-pixman zlib"
62 ;;
63 cairo-dev)
64 copy @dev
65 DEPENDS="cairo cairo-tools \
66 fontconfig-dev freetype-dev glib-dev libpng16-dev xorg-libX11-dev \
67 xorg-libXext-dev xorg-libXrender-dev xorg-libxcb-dev \
68 xorg-pixman-dev zlib-dev"
69 ;;
71 cairo-gl)
72 copy usr/lib/*.so*
73 CAT="x-window|with GL support"
74 DEPENDS="fontconfig freetype glib libpng16 mesa mesa-libegl \
75 xorg-libX11 xorg-libxcb xorg-pixman zlib"
76 PROVIDE="cairo:mesa"
77 ;;
78 cairo-gl-tools)
79 copy usr/bin/ usr/lib/cairo/*.so*
80 CAT="development|development tools with GL support"
81 DEPENDS="cairo-gl glib mesa mesa-libegl xorg-libX11 \
82 xorg-libXrender xorg-libxcb xorg-pixman zlib"
83 PROVIDE="cairo-tools:mesa cairo-tools:cairo-gl"
84 ;;
85 cairo-gl-dev)
86 copy @dev
87 CAT="development|development files with GL support"
88 DEPENDS="cairo-gl cairo-gl-tools \
89 fontconfig-dev freetype-dev glib-dev libpng16-dev mesa-dev \
90 xorg-libX11-dev xorg-libXext-dev xorg-libXrender-dev \
91 xorg-libxcb-dev xorg-pixman-dev zlib-dev"
92 ;;
93 esac
94 }