wok-next view cairo-gl/receipt @ rev 20377
h8300-gdb, h8300-gcc: use gcc49
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Nov 26 11:54:13 2017 +0100 (2017-11-26) |
parents | 2985612f2b3f |
children | bce36a298f1e |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="cairo-gl"
4 VERSION="1.14.4"
5 CATEGORY="x-window"
6 SHORT_DESC="2D graphics library with GL support"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="MPL LGPL2.1"
9 SOURCE="cairo"
10 TARBALL="$SOURCE-$VERSION.tar.xz"
11 WEB_SITE="https://www.cairographics.org/"
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-pixman-dev xorg-libXau-dev xorg-libXdmcp-dev \
16 xorg-libXrender-dev xorg-xcb-util-dev xorg-libxcb-dev expat-dev libxml2-dev \
17 mesa-dev eudev-dev xorg-libXxf86vm-dev libdrm-dev libegl-mesa \
18 xorg-libxshmfence-dev"
19 SPLIT="cairo-gl cairo-gl-dev cairo-gl-tools"
20 SIBLINGS="cairo"
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 ./configure \
26 --prefix=/usr \
27 --enable-xcb \
28 --enable-tee \
29 --enable-gl \
30 --disable-static \
31 $CONFIGURE_ARGS &&
32 make $MAKEFLAGS &&
33 make DESTDIR=$DESTDIR install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 case $PACKAGE in
40 cairo-gl)
41 DEPENDS="bzlib fontconfig freetype glib glibc-base harfbuzz \
42 libdrm libffi libpng16 libxcb libxml2 mesa libegl-mesa \
43 pcre pixman eudev xorg-libX11 xorg-libXau \
44 xorg-libXdamage xorg-libXdmcp xorg-libXext \
45 xorg-libXfixes xorg-libXrender xorg-libXxf86vm zlib"
46 mkdir -p $fs/usr/lib
47 cp -a $install/usr/lib/*.so* $fs/usr/lib
48 ;;
49 cairo-gl-dev)
50 CAT="development|2D graphics library with GL support, development files"
51 DEPENDS="cairo-gl cairo-gl-tools fontconfig-dev freetype-dev \
52 glib-dev harfbuzz-dev libdrm-dev libffi-dev libpng-dev \
53 libxcb-dev libxml2-dev mesa-wayland-dev pcre-dev \
54 pixman-dev udev-dev wayland-dev xorg-libX11-dev \
55 xorg-libXau-dev xorg-libXdamage-dev xorg-libXdmcp-dev \
56 xorg-libXext-dev xorg-libXfixes-dev \
57 xorg-libXrender-dev xorg-libXxf86vm-dev"
58 mkdir -p $fs/usr/lib
59 cp -a $install/usr/lib/*.*a $fs/usr/lib
60 cp -a $install/usr/lib/pkgconfig $fs/usr/lib
61 cp -a $install/usr/include $fs/usr
62 ;;
63 cairo-gl-tools)
64 CAT="development|2D graphics library, development tools"
65 DEPENDS="cairo-gl libbfd wayland"
66 mkdir -p $fs/usr/lib/cairo
67 cp -a $install/usr/bin $fs/usr
68 cp -a $install/usr/lib/cairo/*.so* $fs/usr/lib/cairo
69 ;;
70 esac
71 }