ports: Add cairo port

This is needed by harfbuzz
This commit is contained in:
Bananymous 2026-01-10 16:21:12 +02:00
parent 1f87bfbf2e
commit 9355ab1656
1 changed files with 26 additions and 0 deletions

26
ports/cairo/build.sh Executable file
View File

@ -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
}