wok-next view cairo/receipt @ rev 21020
Cleaning is almost finished... I should proceed to upgrades.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 02 14:15:08 2018 +0200 (2018-11-02) |
parents | f48456621a9d |
children | 4d9f82dabdbb |
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="devel@slitaz.org"
8 LICENSE="MPL LGPL2.1"
9 WEB_SITE="https://www.cairographics.org/"
10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/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 gtk2-dev xorg-pixman-dev"
18 SPLIT="$PACKAGE-tools $PACKAGE-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 "$SET" in
30 gl) SET_ARGS='--enable-gl';;
31 *) SET_ARGS='--disable-gl';;
32 esac
34 ./configure \
35 --enable-xcb \
36 --enable-xlib-xcb \
37 --enable-tee \
38 --disable-static \
39 $SET_ARGS \
40 $CONFIGURE_ARGS &&
41 fix libtool &&
42 make $MAKEFLAGS &&
43 make DESTDIR=$install install
44 }
46 genpkg_rules() {
47 case $PACKAGE in
48 cairo)
49 copy libcairo.so* libcairo-gobject.so* libcairo-script-interpreter.so*
50 DEPENDS="fontconfig freetype glib libpng16 xorg-libX11 xorg-libxcb \
51 xorg-pixman zlib"
52 ;;
53 cairo-tools)
54 copy bin/ cairo-fdr.so* cairo-sphinx.so* libcairo-trace.so*
55 CAT="development|development tools"
56 DEPENDS="cairo glib xorg-libX11 xorg-libXrender xorg-libxcb \
57 xorg-pixman zlib"
58 ;;
59 cairo-dev)
60 copy @dev
61 DEPENDS="cairo cairo-tools \
62 fontconfig-dev freetype-dev glib-dev libpng16-dev xorg-libX11-dev \
63 xorg-libXext-dev xorg-libXrender-dev xorg-libxcb-dev \
64 xorg-pixman-dev zlib-dev"
65 ;;
67 cairo-gl)
68 copy usr/lib/*.so*
69 CAT="x-window|with GL support"
70 DEPENDS="fontconfig freetype glib libpng16 mesa mesa-libegl \
71 xorg-libX11 xorg-libxcb xorg-pixman zlib"
72 PROVIDE="cairo:mesa"
73 ;;
74 cairo-gl-tools)
75 copy usr/bin/ usr/lib/cairo/*.so*
76 CAT="development|development tools with GL support"
77 DEPENDS="cairo-gl glib mesa mesa-libegl xorg-libX11 \
78 xorg-libXrender xorg-libxcb xorg-pixman zlib"
79 PROVIDE="cairo-tools:mesa cairo-tools:cairo-gl"
80 ;;
81 cairo-gl-dev)
82 copy @dev
83 CAT="development|development files with GL support"
84 DEPENDS="cairo-gl cairo-gl-tools \
85 fontconfig-dev freetype-dev glib-dev libpng16-dev mesa-dev \
86 xorg-libX11-dev xorg-libXext-dev xorg-libXrender-dev \
87 xorg-libxcb-dev xorg-pixman-dev zlib-dev"
88 ;;
89 esac
90 }