From 935f69e0115ec29811929a9d6af3404047eab11c Mon Sep 17 00:00:00 2001 From: Bananymous Date: Thu, 31 Jul 2025 22:46:33 +0300 Subject: [PATCH] ports: Add freetype port --- ports/freetype/build.sh | 15 +++++++++ .../0001-add-shared-library-support.patch | 31 +++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100755 ports/freetype/build.sh create mode 100644 ports/freetype/patches/0001-add-shared-library-support.patch diff --git a/ports/freetype/build.sh b/ports/freetype/build.sh new file mode 100755 index 00000000..eed91c65 --- /dev/null +++ b/ports/freetype/build.sh @@ -0,0 +1,15 @@ +#!/bin/bash ../install.sh + +NAME='freetype' +VERSION='2.13.3' +DOWNLOAD_URL="https://download.savannah.gnu.org/releases/freetype/freetype-$VERSION.tar.gz#5c3a8e78f7b24c20b25b54ee575d6daa40007a5f4eea2845861c3409b3021747" +CONFIG_SUB=('builds/unix/config.sub') + +CONFIGURE_OPTIONS=( + 'lt_cv_deplibs_check_method=pass_all' +) + +post_install() { + # remove libtool file + rm -f $BANAN_SYSROOT/usr/lib/libfreetype.la +} diff --git a/ports/freetype/patches/0001-add-shared-library-support.patch b/ports/freetype/patches/0001-add-shared-library-support.patch new file mode 100644 index 00000000..c032e2aa --- /dev/null +++ b/ports/freetype/patches/0001-add-shared-library-support.patch @@ -0,0 +1,31 @@ +diff -ruN freetype-2.13.3/builds/unix/configure freetype-2.13.3-banan_os/builds/unix/configure +--- freetype-2.13.3/builds/unix/configure 2024-08-12 14:00:49.000000000 +0300 ++++ freetype-2.13.3-banan_os/builds/unix/configure 2025-07-31 17:40:12.168493444 +0300 +@@ -5474,6 +5474,10 @@ + lt_cv_deplibs_check_method=pass_all + ;; + ++banan_os*) ++ lt_cv_deplibs_check_method=pass_all ++ ;; ++ + beos*) + lt_cv_deplibs_check_method=pass_all + ;; +@@ -11261,6 +11265,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"