From 9355ab1656232bfecd99fa5c0b7e2cd137795a5e Mon Sep 17 00:00:00 2001 From: Bananymous Date: Sat, 10 Jan 2026 16:21:12 +0200 Subject: [PATCH] ports: Add cairo port This is needed by harfbuzz --- ports/cairo/build.sh | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 ports/cairo/build.sh diff --git a/ports/cairo/build.sh b/ports/cairo/build.sh new file mode 100755 index 00000000..0b9a3c33 --- /dev/null +++ b/ports/cairo/build.sh @@ -0,0 +1,26 @@ +#!/bin/bash ../install.sh + +NAME='cairo' +VERSION='1.18.4' +DOWNLOAD_URL="https://cairographics.org/releases/cairo-$VERSION.tar.xz#445ed8208a6e4823de1226a74ca319d3600e83f6369f99b14265006599c32ccb" +DEPENDENCIES=('libpng' 'pixman' 'fontconfig' 'glib') +CONFIGURE_OPTIONS=( + '-Dprefix=/usr' + '-Dtests=disabled' +) + +configure() { + meson setup \ + --reconfigure \ + --cross-file "$MESON_CROSS_FILE" \ + "${CONFIGURE_OPTIONS[@]}" \ + build || exit 1 +} + +build() { + meson compile -C build || exit 1 +} + +install() { + meson install --destdir="$BANAN_SYSROOT" -C build || exit 1 +}