wok-next view cairo/receipt @ rev 20555
Fix "DSO missing..." error: loqui, xfprint, notification-daemon-gtk2, xfmedia, evince, celestia(?)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Apr 06 17:43:57 2018 +0300 (2018-04-06) |
parents | 757d032c55c7 |
children | 29ae397b760a |
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="glib-dev libpng16-dev zlib-dev fontconfig-dev \
16 freetype-dev xorg-libX11-dev xorg-libXext-dev xorg-pixman-dev xorg-libXau-dev \
17 xorg-libXdmcp-dev xorg-libXrender-dev xorg-xcb-util-dev xorg-libxcb-dev \
18 expat-dev libxml2-dev"
19 SPLIT="cairo cairo-tools cairo-dev"
21 BUILD_DEPENDS="$BUILD_DEPENDS mesa-dev eudev-dev xorg-libXxf86vm-dev \
22 libdrm-dev mesa-libegl xorg-libxshmfence-dev"
23 SPLIT="$SPLIT cairo-gl:gl cairo-gl-tools:gl cairo-gl-dev:gl"
24 COOKOPTS="skip-log-errors"
26 compile_rules() {
27 case "$ARCH" in
28 arm*) export CFLAGS="$CFLAGS -L/cross/$ARCH/sysroot/usr/lib";;
29 esac
31 case "$SET" in
32 gl) SET_ARGS='--enable-gl';;
33 *) SET_ARGS='--disable-gl';;
34 esac
36 ./configure \
37 --enable-xcb \
38 --enable-xlib-xcb \
39 --enable-tee \
40 --disable-static \
41 $SET_ARGS \
42 $CONFIGURE_ARGS &&
43 fix libtool &&
44 make $MAKEFLAGS &&
45 make DESTDIR=$DESTDIR install
46 }
48 genpkg_rules() {
49 case $PACKAGE in
50 cairo)
51 copy libcairo.so* libcairo-gobject.so* libcairo-script-interpreter.so*
52 DEPENDS="fontconfig freetype glib libpng16 xorg-libX11 xorg-libxcb \
53 xorg-pixman zlib"
54 ;;
55 cairo-tools)
56 copy bin/ cairo-fdr.so* cairo-sphinx.so* libcairo-trace.so*
57 CAT="development|development tools"
58 DEPENDS="cairo glib xorg-libX11 xorg-libXrender xorg-libxcb \
59 xorg-pixman zlib"
60 ;;
61 cairo-dev)
62 copy @dev
63 DEPENDS="cairo cairo-tools \
64 fontconfig-dev freetype-dev glib-dev libpng16-dev xorg-libX11-dev \
65 xorg-libXext-dev xorg-libXrender-dev xorg-libxcb-dev \
66 xorg-pixman-dev zlib-dev"
67 ;;
69 cairo-gl)
70 copy usr/lib/*.so*
71 CAT="x-window|with GL support"
72 DEPENDS="fontconfig freetype glib libpng16 mesa mesa-libegl \
73 xorg-libX11 xorg-libxcb xorg-pixman zlib"
74 ;;
75 cairo-gl-tools)
76 copy usr/bin/ usr/lib/cairo/*.so*
77 CAT="development|development tools with GL support"
78 DEPENDS="cairo-gl glib mesa mesa-libegl xorg-libX11 \
79 xorg-libXrender xorg-libxcb xorg-pixman zlib"
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 }