From 9c3e2dab4065c52c7e0a40c42e7f24a35608ce76 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Mon, 23 Mar 2026 17:51:44 +0200 Subject: [PATCH] ports: Add pango port --- ports/fribidi/build.sh | 6 +++++ .../0001-add-shared-library-support.patch | 20 ++++++++++++++ ports/pango/build.sh | 26 +++++++++++++++++++ 3 files changed, 52 insertions(+) create mode 100755 ports/fribidi/build.sh create mode 100644 ports/fribidi/patches/0001-add-shared-library-support.patch create mode 100755 ports/pango/build.sh diff --git a/ports/fribidi/build.sh b/ports/fribidi/build.sh new file mode 100755 index 00000000..1479f343 --- /dev/null +++ b/ports/fribidi/build.sh @@ -0,0 +1,6 @@ +#!/bin/bash ../install.sh + +NAME='fribidi' +VERSION='1.0.16' +DOWNLOAD_URL="https://github.com/fribidi/fribidi/releases/download/v$VERSION/fribidi-$VERSION.tar.xz#1b1cde5b235d40479e91be2f0e88a309e3214c8ab470ec8a2744d82a5a9ea05c" +CONFIG_SUB=('config.sub') diff --git a/ports/fribidi/patches/0001-add-shared-library-support.patch b/ports/fribidi/patches/0001-add-shared-library-support.patch new file mode 100644 index 00000000..bbca7548 --- /dev/null +++ b/ports/fribidi/patches/0001-add-shared-library-support.patch @@ -0,0 +1,20 @@ +diff -ruN fribidi-1.0.16/configure fribidi-1.0.16-banan_os/configure +--- fribidi-1.0.16/configure 2024-09-25 21:04:21.000000000 +0300 ++++ fribidi-1.0.16-banan_os/configure 2025-11-05 20:51:12.227775953 +0200 +@@ -11536,6 +11536,16 @@ + esac + ;; + ++banan_os*) ++ version_type=linux # correct to gnu/linux during the next big refactor ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' ++ soname_spec='$libname$release$shared_ext$major' ++ dynamic_linker="$host_os DynamicLoader.so" ++ shlibpath_var=LD_LIBRARY_PATH ++ ;; ++ + beos*) + library_names_spec='$libname$shared_ext' + dynamic_linker="$host_os ld.so" diff --git a/ports/pango/build.sh b/ports/pango/build.sh new file mode 100755 index 00000000..c812cb07 --- /dev/null +++ b/ports/pango/build.sh @@ -0,0 +1,26 @@ +#!/bin/bash ../install.sh + +NAME='pango' +VERSION='1.57.0' +DOWNLOAD_URL="https://gitlab.gnome.org/GNOME/pango/-/archive/$VERSION/pango-$VERSION.tar.gz#1b2e2f683dfb5adec3faf17087ade8c648f10a5d3d0e17e421e0ac1a39e6740e" +DEPENDENCIES=('glib' 'fontconfig' 'cairo' 'fribidi') +CONFIGURE_OPTIONS=( + '-Dprefix=/usr' + '-Dbuild-testsuite=false' +) + +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 +}