wok view cairo-gl/receipt @ rev 24748

cairo-gl: disabled trace
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Mar 16 15:28:37 2022 +0000 (2022-03-16)
parents afae00265386
children e9eef82494b4
line source
1 # SliTaz package receipt.
3 PACKAGE="cairo-gl"
4 VERSION="1.16.0"
5 CATEGORY="x-window"
6 SHORT_DESC="2D graphics library with GL support."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="MPL LGPL2.1"
9 WEB_SITE="https://www.cairographics.org/"
11 SOURCE="cairo"
12 TARBALL="$SOURCE-$VERSION.tar.xz"
13 WGET_URL="${WEB_SITE}releases/$TARBALL"
15 DEPENDS="bzlib fontconfig freetype glib glibc-base harfbuzz libdrm libffi
16 libpng libxcb libxml2 mesa libegl-mesa pcre pixman udev xorg-libX11
17 xorg-libXau xorg-libXdamage xorg-libXdmcp xorg-libXext xorg-libXfixes
18 xorg-libXrender xorg-libXxf86vm zlib"
19 BUILD_DEPENDS="expat-dev fontconfig-dev freetype-dev glib-dev libdrm-dev
20 libegl-mesa libpng-dev libxcb-dev libxml2-dev mesa-dev pixman-dev
21 pkg-config udev-dev xcb-util-dev xorg-libX11-dev xorg-libXau-dev
22 xorg-libXdmcp-dev xorg-libXrender-dev xorg-libXxf86vm-dev zlib-dev"
23 SPLIT="cairo-gl-tools"
24 SIBLINGS="cairo"
26 # What is the latest version available today?
27 current_version()
28 {
29 wget -O - ${WGET_URL%/*} 2>/dev/null | \
30 sed "/\"$SOURCE-/!d;/5c/d;s|.*$SOURCE-||;s|.tar.*||" | sort -Vr | sed q
31 }
33 # Rules to configure and make the package.
34 compile_rules()
35 {
36 # 1.16.0 workaround for
37 # errors in lookup-symbol.c
38 # enable-trace=no
39 # until a better solution is found
41 sed -i '/index.sgml/d' \
42 doc/public/Makefile*
44 ./configure \
45 --prefix=/usr \
46 --enable-xcb \
47 --enable-tee \
48 --enable-trace=no \
49 --enable-gl \
50 --disable-static \
51 $CONFIGURE_ARGS &&
52 make $MAKEFLAGS &&
53 make DESTDIR=$DESTDIR install
54 }
56 # Rules to gen a SliTaz package suitable for Tazpkg.
57 genpkg_rules()
58 {
59 mkdir -p $fs/usr/lib
60 cp -a $install/usr/lib/*.so* $fs/usr/lib
61 }