From 501783e9aef2c788c847c8bea7ead47af36cef8d Mon Sep 17 00:00:00 2001 From: Bananymous Date: Mon, 24 Aug 2026 21:02:39 +0300 Subject: [PATCH] ports: Add babl port --- ports/babl/build.sh | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100755 ports/babl/build.sh diff --git a/ports/babl/build.sh b/ports/babl/build.sh new file mode 100755 index 00000000..ba2c7c2c --- /dev/null +++ b/ports/babl/build.sh @@ -0,0 +1,35 @@ +#!/bin/bash ../install.sh + +NAME='babl' +VERSION='0.1.124' +DOWNLOAD_URL="https://download.gimp.org/pub/babl/0.1/babl-$VERSION.tar.xz#1b0d544ab6f409f2b1b5f677226272d1e8c6d373f2f453ee870bfc7e5dd4f1b1" +DEPENDENCIES=('lcms2') +CONFIGURE_OPTIONS=( + '-Dprefix=/usr' + '-Dbuildtype=release' + '-Dwith-docs=false' + '-Denable-gir=false' + '-Denable-vapi=false' + '-Dgi-docgen=disabled' + '-Denable-avx2=false' +) + +configure() { + meson setup \ + --reconfigure \ + --cross-file "$MESON_CROSS_FILE" \ + "${CONFIGURE_OPTIONS[@]}" \ + build || exit 1 +} + +post_configure() { + grep -q '' build/config.h || echo '#include ' >> build/config.h +} + +build() { + meson compile -C build || exit 1 +} + +install() { + meson install --destdir="$DESTDIR" -C build || exit 1 +}