blob: cfa34ee04ca49cd8fa4688c43f371103bb507fa9 (
plain)
1 # Description: A 2D graphics library with support for multiple output devices
2 # URL: https://www.cairographics.org/
3 # Maintainer: CRUX System Team, core-ports at crux dot nu
4 # Depends on: fontconfig glib xorg-libpixman xorg-libxext xorg-libxrender xorg-xcb-util
5
6 name=cairo
7 version=1.17.6
8 release=2
9 source=(https://gitlab.freedesktop.org/cairo/cairo/-/archive/$version/$name-$version.tar.bz2
10 fix-cairo-sphinx.patch)
11
12 build() {
13 patch -d $name-$version -p1 -i $SRC/fix-cairo-sphinx.patch
14
15 prt-get isinst wayland-protocols mesa && PKGMK_CAIRO+=' -D gl-backend=glesv3 -D glesv3=enabled'
16
17 meson setup build $name-$version $PKGMK_CAIRO \
18 --prefix=/usr \
19 --buildtype=plain \
20 --wrap-mode nodownload \
21 -D b_lto=true \
22 -D b_pie=true \
23 -D tee=enabled \
24 -D spectre=disabled \
25 -D tests=disabled
26 meson compile -C build
27 DESTDIR=$PKG meson install -C build
28
29 chmod +x $PKG/usr/bin/cairo-trace
30 }
|