opt/cairo/Pkgfile

31 lines
901 B
Plaintext
Raw Normal View History

# Description: A 2D graphics library with support for multiple output devices
# URL: https://www.cairographics.org/
# Maintainer: CRUX System Team, core-ports at crux dot nu
# Depends on: fontconfig glib xorg-libpixman xorg-libxext xorg-libxrender xorg-xcb-util
name=cairo
2022-03-23 15:02:31 +01:00
version=1.17.6
2022-04-08 13:16:20 +02:00
release=2
2022-03-23 15:02:31 +01:00
source=(https://gitlab.freedesktop.org/cairo/cairo/-/archive/$version/$name-$version.tar.bz2
fix-cairo-sphinx.patch)
build() {
2022-03-23 15:02:31 +01:00
patch -d $name-$version -p1 -i $SRC/fix-cairo-sphinx.patch
prt-get isinst wayland-protocols mesa && PKGMK_CAIRO+=' -D gl-backend=glesv3 -D glesv3=enabled'
meson setup build $name-$version $PKGMK_CAIRO \
--prefix=/usr \
--buildtype=plain \
--wrap-mode nodownload \
-D b_lto=true \
-D b_pie=true \
-D tee=enabled \
-D spectre=disabled \
-D tests=disabled
meson compile -C build
DESTDIR=$PKG meson install -C build
chmod +x $PKG/usr/bin/cairo-trace
}