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