diff --git a/ports/fontconfig/build.sh b/ports/fontconfig/build.sh new file mode 100755 index 00000000..a381b771 --- /dev/null +++ b/ports/fontconfig/build.sh @@ -0,0 +1,47 @@ +#!/bin/bash ../install.sh + +NAME='fontconfig' +VERSION='2.17.1' +DOWNLOAD_URL="https://gitlab.freedesktop.org/fontconfig/fontconfig/-/archive/$VERSION/fontconfig-$VERSION.tar.gz#82e73b26adad651b236e5f5d4b3074daf8ff0910188808496326bd3449e5261d" +DEPENDENCIES=('harfbuzz' 'freetype' 'expat' 'libiconv') +CONFIGURE_OPTIONS=( + '-Dprefix=/usr' + '-Dtests=disabled' + '-Dnls=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 +} + +post_install() { + pushd .. &>/dev/null + + local font_name='dejavu-fonts-ttf-2.37' + + if [ ! -f "$font_name.tar.bz2" ]; then + wget "http://sourceforge.net/projects/dejavu/files/dejavu/2.37/$font_name.tar.bz2" || exit 1 + fi + + if [ ! -d "$font_name" ]; then + tar xf "$font_name.tar.bz2" || exit 1 + fi + + mkdir -p "$BANAN_SYSROOT/usr/share/fonts/TTF" || exit 1 + cp "$font_name/ttf/"* "$BANAN_SYSROOT/usr/share/fonts/TTF/" || exit 1 + cp "$font_name/fontconfig/"* "$BANAN_SYSROOT/usr/share/fontconfig/conf.avail/" || exit 1 + + popd &>/dev/null +} diff --git a/ports/icu/build.sh b/ports/icu/build.sh new file mode 100755 index 00000000..4158b19a --- /dev/null +++ b/ports/icu/build.sh @@ -0,0 +1,45 @@ +#!/bin/bash ../install.sh + +NAME='icu' +VERSION='78.1' +DOWNLOAD_URL="https://github.com/unicode-org/icu/releases/download/release-$VERSION/icu4c-$VERSION-sources.tgz#6217f58ca39b23127605cfc6c7e0d3475fe4b0d63157011383d716cb41617886" +TAR_CONTENT='icu' +_DEPENDENCIES=('ca-certificates' 'openssl' 'zlib' 'zstd') +CONFIG_SUB=('source/config.sub') +CONFIGURE_OPTIONS=( + "--with-cross-build=$BANAN_PORT_DIR/icu/icu-$VERSION-$BANAN_ARCH/source/build-host" + '--disable-tests' + '--disable-samples' +) + +pre_configure() { + unset CC CXX LD AS AR + + mkdir -p source/build-host || exit 1 + pushd source/build-host || exit 1 + ../configure --disable-tests --disable-samples || exit 1 + make -j$(proc) || exit 1 + popd >/dev/null || exit 1 + + pushd source >/dev/null || exit 1 +} + +post_configure() { + popd >/dev/null || exit 1 +} + +pre_build() { + pushd source >/dev/null || exit 1 +} + +post_build() { + popd >/dev/null || exit 1 +} + +pre_install() { + pushd source >/dev/null || exit 1 +} + +post_install() { + popd >/dev/null || exit 1 +} diff --git a/ports/icu/patches/0001-add-banan_os-support.patch b/ports/icu/patches/0001-add-banan_os-support.patch new file mode 100644 index 00000000..24c2d3a0 --- /dev/null +++ b/ports/icu/patches/0001-add-banan_os-support.patch @@ -0,0 +1,95 @@ +diff -ruN icu-78.1/source/config/mh-banan_os icu-78.1-banan_os/source/config/mh-banan_os +--- icu-78.1/source/config/mh-banan_os 1970-01-01 02:00:00.000000000 +0200 ++++ icu-78.1-banan_os/source/config/mh-banan_os 2025-11-06 23:07:11.542495330 +0200 +@@ -0,0 +1,80 @@ ++## -*-makefile-*- ++## Copyright (C) 2016 and later: Unicode, Inc. and others. ++## License & terms of use: http://www.unicode.org/copyright.html ++## haiku-specific setup ++## Copyright (c) 2010-2012, International Business Machines Corporation and ++## others. All Rights Reserved. ++## ++ ++## Commands to generate dependency files ++GEN_DEPS.c= $(CC) -E -MM $(DEFS) $(CPPFLAGS) ++GEN_DEPS.cc= $(CXX) -E -MM $(DEFS) $(CPPFLAGS) ++ ++## Flags for position independent code ++SHAREDLIBCFLAGS = -fPIC ++SHAREDLIBCXXFLAGS = -fPIC ++SHAREDLIBCPPFLAGS = -DPIC ++ ++## Additional flags when building libraries and with threads ++LIBCPPFLAGS = ++THREADSCPPFLAGS = ++ ++# ++CPPFLAGS += -DU_CHARSET_IS_UTF8=1 ++ ++## Compiler switch to embed a runtime search path ++LD_RPATH= ++LD_RPATH_PRE = -Wl,-rpath, ++ ++## Compiler switch to embed a library name ++LD_SONAME = -Wl,-soname -Wl,$(notdir $(MIDDLE_SO_TARGET)) ++ ++## Shared object suffix ++SO = so ++## Non-shared intermediate object suffix ++STATIC_O = ao ++ ++## Compilation rules ++%.$(STATIC_O): $(srcdir)/%.c ++ $(COMPILE.c) $(STATICCPPFLAGS) $(STATICCFLAGS) -o $@ $< ++%.o: $(srcdir)/%.c ++ $(COMPILE.c) $(DYNAMICCPPFLAGS) $(DYNAMICCFLAGS) -o $@ $< ++ ++%.$(STATIC_O): $(srcdir)/%.cpp ++ $(COMPILE.cc) $(STATICCPPFLAGS) $(STATICCXXFLAGS) -o $@ $< ++%.o: $(srcdir)/%.cpp ++ $(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS) -o $@ $< ++ ++ ++## Dependency rules ++%.d: $(srcdir)/%.c ++ @echo "generating dependency information for $<" ++ @$(SHELL) -ec '$(GEN_DEPS.c) $< \ ++ | sed '\''s%\($*\)\.o[ :]*%\1.o $@ : %g'\'' > $@; \ ++ [ -s $@ ] || rm -f $@' ++ ++%.d: $(srcdir)/%.cpp ++ @echo "generating dependency information for $<" ++ @$(SHELL) -ec '$(GEN_DEPS.cc) $< \ ++ | sed '\''s%\($*\)\.o[ :]*%\1.o $@ : %g'\'' > $@; \ ++ [ -s $@ ] || rm -f $@' ++ ++## Versioned libraries rules ++ ++%.$(SO).$(SO_TARGET_VERSION_MAJOR): %.$(SO).$(SO_TARGET_VERSION) ++ $(RM) $@ && ln -s ${ + # else + typedef uint16_t char16_t; diff --git a/ports/libICE/build.sh b/ports/libICE/build.sh new file mode 100755 index 00000000..4f81de74 --- /dev/null +++ b/ports/libICE/build.sh @@ -0,0 +1,11 @@ +#!/bin/bash ../install.sh + +NAME='libICE' +VERSION='1.1.2' +DOWNLOAD_URL="https://www.x.org/releases/individual/lib/libICE-$VERSION.tar.xz#974e4ed414225eb3c716985df9709f4da8d22a67a2890066bc6dfc89ad298625" +CONFIG_SUB=('config.sub') +DEPENDENCIES=('xorgproto' 'xtrans') +CONFIGURE_OPTIONS=( + '--enable-shared=yes' + '--enable-static=no' +) diff --git a/ports/libICE/patches/0001-add-shared-library-support.patch b/ports/libICE/patches/0001-add-shared-library-support.patch new file mode 100644 index 00000000..a1d453bc --- /dev/null +++ b/ports/libICE/patches/0001-add-shared-library-support.patch @@ -0,0 +1,31 @@ +diff -ruN libICE-1.1.2/configure libICE-1.1.2-banan_os/configure +--- libICE-1.1.2/configure 2024-12-13 23:40:33.000000000 +0200 ++++ libICE-1.1.2-banan_os/configure 2025-11-16 23:38:24.456211241 +0200 +@@ -6464,6 +6464,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 + ;; +@@ -11969,6 +11973,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/libSM/build.sh b/ports/libSM/build.sh new file mode 100755 index 00000000..57042340 --- /dev/null +++ b/ports/libSM/build.sh @@ -0,0 +1,11 @@ +#!/bin/bash ../install.sh + +NAME='libSM' +VERSION='1.2.6' +DOWNLOAD_URL="https://www.x.org/releases/individual/lib/libSM-$VERSION.tar.xz#be7c0abdb15cbfd29ac62573c1c82e877f9d4047ad15321e7ea97d1e43d835be" +CONFIG_SUB=('config.sub') +DEPENDENCIES=('libICE') +CONFIGURE_OPTIONS=( + '--enable-shared=yes' + '--enable-static=no' +) diff --git a/ports/libSM/patches/0001-add-shared-library-support.patch b/ports/libSM/patches/0001-add-shared-library-support.patch new file mode 100644 index 00000000..368f5344 --- /dev/null +++ b/ports/libSM/patches/0001-add-shared-library-support.patch @@ -0,0 +1,31 @@ +diff -ruN libSM-1.2.6/configure libSM-1.2.6-banan_os/configure +--- libSM-1.2.6/configure 2025-03-09 03:46:18.000000000 +0200 ++++ libSM-1.2.6-banan_os/configure 2025-11-16 23:36:16.733929290 +0200 +@@ -6262,6 +6262,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 + ;; +@@ -11797,6 +11801,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/libX11/build.sh b/ports/libX11/build.sh new file mode 100755 index 00000000..17c5cc06 --- /dev/null +++ b/ports/libX11/build.sh @@ -0,0 +1,11 @@ +#!/bin/bash ../install.sh + +NAME='libX11' +VERSION='1.8.12' +DOWNLOAD_URL="https://www.x.org/releases/individual/lib/libX11-$VERSION.tar.xz#fa026f9bb0124f4d6c808f9aef4057aad65e7b35d8ff43951cef0abe06bb9a9a" +CONFIG_SUB=('config.sub') +DEPENDENCIES=('xorgproto' 'xtrans' 'libxcb') +CONFIGURE_OPTIONS=( + '--enable-shared=yes' + '--enable-static=no' +) diff --git a/ports/libX11/patches/0001-add-shared-library-support.patch b/ports/libX11/patches/0001-add-shared-library-support.patch new file mode 100644 index 00000000..a2efc561 --- /dev/null +++ b/ports/libX11/patches/0001-add-shared-library-support.patch @@ -0,0 +1,31 @@ +diff -ruN libX11-1.8.12/configure libX11-1.8.12-banan_os/configure +--- libX11-1.8.12/configure 2025-03-09 01:53:09.000000000 +0200 ++++ libX11-1.8.12-banan_os/configure 2025-11-13 20:07:46.592619585 +0200 +@@ -6633,6 +6633,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 + ;; +@@ -12138,6 +12142,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/libXau/build.sh b/ports/libXau/build.sh new file mode 100755 index 00000000..ce563644 --- /dev/null +++ b/ports/libXau/build.sh @@ -0,0 +1,11 @@ +#!/bin/bash ../install.sh + +NAME='libXau' +VERSION='1.0.12' +DOWNLOAD_URL="https://www.x.org/releases/individual/lib/libXau-$VERSION.tar.xz#74d0e4dfa3d39ad8939e99bda37f5967aba528211076828464d2777d477fc0fb" +CONFIG_SUB=('config.sub') +DEPENDENCIES=('xorgproto') +CONFIGURE_OPTIONS=( + '--enable-shared=yes' + '--enable-static=no' +) diff --git a/ports/libXau/patches/0001-add-shared-library-support.patch b/ports/libXau/patches/0001-add-shared-library-support.patch new file mode 100644 index 00000000..5676009e --- /dev/null +++ b/ports/libXau/patches/0001-add-shared-library-support.patch @@ -0,0 +1,31 @@ +diff -ruN libXau-1.0.12/configure libXau-1.0.12-banan_os/configure +--- libXau-1.0.12/configure 2024-12-14 03:33:02.000000000 +0200 ++++ libXau-1.0.12-banan_os/configure 2025-11-13 20:00:35.574268731 +0200 +@@ -6224,6 +6224,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 + ;; +@@ -12060,6 +12064,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/libXaw/build.sh b/ports/libXaw/build.sh new file mode 100755 index 00000000..eaecc99f --- /dev/null +++ b/ports/libXaw/build.sh @@ -0,0 +1,11 @@ +#!/bin/bash ../install.sh + +NAME='libXaw' +VERSION='1.0.16' +DOWNLOAD_URL="https://www.x.org/releases/individual/lib/libXaw-$VERSION.tar.xz#731d572b54c708f81e197a6afa8016918e2e06dfd3025e066ca642a5b8c39c8f" +CONFIG_SUB=('config.sub') +DEPENDENCIES=('libX11' 'libXext' 'libXt' 'libXmu' 'libXpm') +CONFIGURE_OPTIONS=( + '--enable-shared=yes' + '--enable-static=no' +) diff --git a/ports/libXaw/patches/0001-add-shared-library-support.patch b/ports/libXaw/patches/0001-add-shared-library-support.patch new file mode 100644 index 00000000..a3e1b816 --- /dev/null +++ b/ports/libXaw/patches/0001-add-shared-library-support.patch @@ -0,0 +1,31 @@ +diff -ruN libXaw-1.0.16/configure libXaw-1.0.16-banan_os/configure +--- libXaw-1.0.16/configure 2024-03-10 19:39:54.000000000 +0200 ++++ libXaw-1.0.16-banan_os/configure 2025-11-16 23:51:15.704550082 +0200 +@@ -5977,6 +5977,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 + ;; +@@ -11343,6 +11347,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/libXdmcp/build.sh b/ports/libXdmcp/build.sh new file mode 100755 index 00000000..fe31e3bb --- /dev/null +++ b/ports/libXdmcp/build.sh @@ -0,0 +1,11 @@ +#!/bin/bash ../install.sh + +NAME='libXdmcp' +VERSION='1.1.5' +DOWNLOAD_URL="https://www.x.org/releases/individual/lib/libXdmcp-$VERSION.tar.xz#d8a5222828c3adab70adf69a5583f1d32eb5ece04304f7f8392b6a353aa2228c" +CONFIG_SUB=('config.sub') +DEPENDENCIES=('xorgproto') +CONFIGURE_OPTIONS=( + '--enable-shared=yes' + '--enable-static=no' +) diff --git a/ports/libXdmcp/patches/0001-add-shared-library-support.patch b/ports/libXdmcp/patches/0001-add-shared-library-support.patch new file mode 100644 index 00000000..d698f89b --- /dev/null +++ b/ports/libXdmcp/patches/0001-add-shared-library-support.patch @@ -0,0 +1,31 @@ +diff -ruN libXdmcp-1.1.5/configure libXdmcp-1.1.5-banan_os/configure +--- libXdmcp-1.1.5/configure 2024-03-02 23:37:19.000000000 +0200 ++++ libXdmcp-1.1.5-banan_os/configure 2025-11-13 21:49:06.142805910 +0200 +@@ -6247,6 +6247,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 + ;; +@@ -11960,6 +11964,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/libXext/build.sh b/ports/libXext/build.sh new file mode 100755 index 00000000..4bb532de --- /dev/null +++ b/ports/libXext/build.sh @@ -0,0 +1,12 @@ +#!/bin/bash ../install.sh + +NAME='libXext' +VERSION='1.3.6' +DOWNLOAD_URL="https://www.x.org/releases/individual/lib/libXext-$VERSION.tar.xz#edb59fa23994e405fdc5b400afdf5820ae6160b94f35e3dc3da4457a16e89753" +CONFIG_SUB=('config.sub') +DEPENDENCIES=('libX11') +CONFIGURE_OPTIONS=( + '--enable-shared=yes' + '--enable-static=no' + '--disable-malloc0returnsnull' +) diff --git a/ports/libXext/patches/0001-add-shared-library-support.patch b/ports/libXext/patches/0001-add-shared-library-support.patch new file mode 100644 index 00000000..b588bf26 --- /dev/null +++ b/ports/libXext/patches/0001-add-shared-library-support.patch @@ -0,0 +1,31 @@ +diff -ruN libXext-1.3.6/configure libXext-1.3.6-banan_os/configure +--- libXext-1.3.6/configure 2024-02-04 23:42:50.000000000 +0200 ++++ libXext-1.3.6-banan_os/configure 2025-11-16 23:30:16.532954111 +0200 +@@ -6282,6 +6282,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 + ;; +@@ -11663,6 +11667,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' diff --git a/ports/libXfixes/build.sh b/ports/libXfixes/build.sh new file mode 100755 index 00000000..0608afbd --- /dev/null +++ b/ports/libXfixes/build.sh @@ -0,0 +1,11 @@ +#!/bin/bash ../install.sh + +NAME='libXfixes' +VERSION='6.0.2' +DOWNLOAD_URL="https://www.x.org/releases/individual/lib/libXfixes-$VERSION.tar.xz#39f115d72d9c5f8111e4684164d3d68cc1fd21f9b27ff2401b08fddfc0f409ba" +CONFIG_SUB=('config.sub') +DEPENDENCIES=('libX11') +CONFIGURE_OPTIONS=( + '--enable-shared=yes' + '--enable-static=no' +) diff --git a/ports/libXfixes/patches/0001-add-shared-library-support.patch b/ports/libXfixes/patches/0001-add-shared-library-support.patch new file mode 100644 index 00000000..64198fed --- /dev/null +++ b/ports/libXfixes/patches/0001-add-shared-library-support.patch @@ -0,0 +1,31 @@ +diff -ruN libXfixes-6.0.2/configure libXfixes-6.0.2-banan_os/configure +--- libXfixes-6.0.2/configure 2025-09-02 02:25:56.000000000 +0300 ++++ libXfixes-6.0.2-banan_os/configure 2025-11-16 23:59:00.284383978 +0200 +@@ -6157,6 +6157,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 + ;; +@@ -11692,6 +11696,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/libXfont2/build.sh b/ports/libXfont2/build.sh new file mode 100755 index 00000000..8a8cfc25 --- /dev/null +++ b/ports/libXfont2/build.sh @@ -0,0 +1,11 @@ +#!/bin/bash ../install.sh + +NAME='libXfont2' +VERSION='2.0.7' +DOWNLOAD_URL="https://www.x.org/releases/individual/lib/libXfont2-$VERSION.tar.xz#8b7b82fdeba48769b69433e8e3fbb984a5f6bf368b0d5f47abeec49de3e58efb" +CONFIG_SUB=('config.sub') +DEPENDENCIES=('freetype' 'xorgproto' 'xtrans' 'libfontenc') +CONFIGURE_OPTIONS=( + '--enable-shared=yes' + '--enable-static=no' +) diff --git a/ports/libXfont2/patches/0001-add-shared-library-support.patch b/ports/libXfont2/patches/0001-add-shared-library-support.patch new file mode 100644 index 00000000..d5b0b121 --- /dev/null +++ b/ports/libXfont2/patches/0001-add-shared-library-support.patch @@ -0,0 +1,31 @@ +diff -ruN libXfont2-2.0.7/configure libXfont2-2.0.7-banan_os/configure +--- libXfont2-2.0.7/configure 2024-08-02 02:38:54.000000000 +0300 ++++ libXfont2-2.0.7-banan_os/configure 2025-11-13 20:21:21.333718050 +0200 +@@ -6558,6 +6558,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 + ;; +@@ -11940,6 +11944,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/libXft/build.sh b/ports/libXft/build.sh new file mode 100755 index 00000000..0b814992 --- /dev/null +++ b/ports/libXft/build.sh @@ -0,0 +1,11 @@ +#!/bin/bash ../install.sh + +NAME='libXft' +VERSION='2.3.9' +DOWNLOAD_URL="https://www.x.org/releases/individual/lib/libXft-$VERSION.tar.xz#60a25b78945ed6932635b3bb1899a517d31df7456e69867ffba27f89ff3976f5" +CONFIG_SUB=('config.sub') +DEPENDENCIES=('libXrender' 'libX11' 'freetype' 'fontconfig') +CONFIGURE_OPTIONS=( + '--enable-shared=yes' + '--enable-static=no' +) diff --git a/ports/libXft/patches/0001-add-shared-library-support.patch b/ports/libXft/patches/0001-add-shared-library-support.patch new file mode 100644 index 00000000..4658f98b --- /dev/null +++ b/ports/libXft/patches/0001-add-shared-library-support.patch @@ -0,0 +1,31 @@ +diff -ruN libXft-2.3.9/configure libXft-2.3.9-banan_os/configure +--- libXft-2.3.9/configure 2025-04-20 18:10:46.000000000 +0300 ++++ libXft-2.3.9-banan_os/configure 2025-11-17 01:42:42.971908492 +0200 +@@ -5873,6 +5873,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 + ;; +@@ -11239,6 +11243,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/libXi/build.sh b/ports/libXi/build.sh new file mode 100755 index 00000000..0f24e047 --- /dev/null +++ b/ports/libXi/build.sh @@ -0,0 +1,12 @@ +#!/bin/bash ../install.sh + +NAME='libXi' +VERSION='1.8.2' +DOWNLOAD_URL="https://www.x.org/releases/individual/lib/libXi-$VERSION.tar.xz#d0e0555e53d6e2114eabfa44226ba162d2708501a25e18d99cfb35c094c6c104" +CONFIG_SUB=('config.sub') +DEPENDENCIES=('libX11' 'libXext' 'libXfixes') +CONFIGURE_OPTIONS=( + '--enable-shared=yes' + '--enable-static=no' + '--disable-malloc0returnsnull' +) diff --git a/ports/libXi/patches/0001-add-shared-library-support.patch b/ports/libXi/patches/0001-add-shared-library-support.patch new file mode 100644 index 00000000..dc8ee304 --- /dev/null +++ b/ports/libXi/patches/0001-add-shared-library-support.patch @@ -0,0 +1,31 @@ +diff -ruN libXi-1.8.2/configure libXi-1.8.2-banan_os/configure +--- libXi-1.8.2/configure 2024-09-05 04:19:46.000000000 +0300 ++++ libXi-1.8.2-banan_os/configure 2025-11-16 23:54:14.061298859 +0200 +@@ -6020,6 +6020,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 + ;; +@@ -11377,6 +11381,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/libXmu/build.sh b/ports/libXmu/build.sh new file mode 100755 index 00000000..2c014d45 --- /dev/null +++ b/ports/libXmu/build.sh @@ -0,0 +1,11 @@ +#!/bin/bash ../install.sh + +NAME='libXmu' +VERSION='1.2.1' +DOWNLOAD_URL="https://www.x.org/releases/individual/lib/libXmu-$VERSION.tar.xz#fcb27793248a39e5fcc5b9c4aec40cc0734b3ca76aac3d7d1c264e7f7e14e8b2" +CONFIG_SUB=('config.sub') +DEPENDENCIES=('libXt' 'libXext' 'libX11') +CONFIGURE_OPTIONS=( + '--enable-shared=yes' + '--enable-static=no' +) diff --git a/ports/libXmu/patches/0001-add-shared-library-support.patch b/ports/libXmu/patches/0001-add-shared-library-support.patch new file mode 100644 index 00000000..7c6afb30 --- /dev/null +++ b/ports/libXmu/patches/0001-add-shared-library-support.patch @@ -0,0 +1,31 @@ +diff -ruN libXmu-1.2.1/configure libXmu-1.2.1-banan_os/configure +--- libXmu-1.2.1/configure 2024-04-16 23:02:25.000000000 +0300 ++++ libXmu-1.2.1-banan_os/configure 2025-11-16 23:42:28.961754856 +0200 +@@ -6165,6 +6165,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 + ;; +@@ -11492,6 +11496,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/libXpm/build.sh b/ports/libXpm/build.sh new file mode 100755 index 00000000..0f854538 --- /dev/null +++ b/ports/libXpm/build.sh @@ -0,0 +1,11 @@ +#!/bin/bash ../install.sh + +NAME='libXpm' +VERSION='3.5.17' +DOWNLOAD_URL="https://www.x.org/releases/individual/lib/libXpm-$VERSION.tar.xz#64b31f81019e7d388c822b0b28af8d51c4622b83f1f0cb6fa3fc95e271226e43" +CONFIG_SUB=('config.sub') +DEPENDENCIES=('libX11') +CONFIGURE_OPTIONS=( + '--enable-shared=yes' + '--enable-static=no' +) diff --git a/ports/libXpm/patches/0001-add-shared-library-support.patch b/ports/libXpm/patches/0001-add-shared-library-support.patch new file mode 100644 index 00000000..6f339c75 --- /dev/null +++ b/ports/libXpm/patches/0001-add-shared-library-support.patch @@ -0,0 +1,31 @@ +diff -ruN libXpm-3.5.17/configure libXpm-3.5.17-banan_os/configure +--- libXpm-3.5.17/configure 2023-10-03 19:12:11.000000000 +0300 ++++ libXpm-3.5.17-banan_os/configure 2025-11-16 23:46:08.171880860 +0200 +@@ -5897,6 +5897,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 + ;; +@@ -11254,6 +11258,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/libXrandr/build.sh b/ports/libXrandr/build.sh new file mode 100755 index 00000000..27c380b5 --- /dev/null +++ b/ports/libXrandr/build.sh @@ -0,0 +1,11 @@ +#!/bin/bash ../install.sh + +NAME='libXrandr' +VERSION='1.5.5' +DOWNLOAD_URL="https://xorg.freedesktop.org/archive/individual/lib/libXrandr-$VERSION.tar.xz#72b922c2e765434e9e9f0960148070bd4504b288263e2868a4ccce1b7cf2767a" +CONFIG_SUB=('config.sub') +DEPENDENCIES=('libX11' 'libXext' 'libXrender') +CONFIGURE_OPTIONS=( + '--enable-shared=yes' + '--enable-static=no' +) diff --git a/ports/libXrandr/patches/0001-add-shared-library-support.patch b/ports/libXrandr/patches/0001-add-shared-library-support.patch new file mode 100644 index 00000000..41da2e99 --- /dev/null +++ b/ports/libXrandr/patches/0001-add-shared-library-support.patch @@ -0,0 +1,31 @@ +diff -ruN libXrandr-1.5.5/configure libXrandr-1.5.5-banan_os/configure +--- libXrandr-1.5.5/configure 2026-01-26 02:25:38.000000000 +0200 ++++ libXrandr-1.5.5-banan_os/configure 2026-02-21 23:34:03.906187857 +0200 +@@ -6162,6 +6162,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 + ;; +@@ -11697,6 +11701,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/libXrender/build.sh b/ports/libXrender/build.sh new file mode 100755 index 00000000..eed49571 --- /dev/null +++ b/ports/libXrender/build.sh @@ -0,0 +1,11 @@ +#!/bin/bash ../install.sh + +NAME='libXrender' +VERSION='0.9.12' +DOWNLOAD_URL="https://www.x.org/releases/individual/lib/libXrender-$VERSION.tar.xz#b832128da48b39c8d608224481743403ad1691bf4e554e4be9c174df171d1b97" +CONFIG_SUB=('config.sub') +DEPENDENCIES=('libX11') +CONFIGURE_OPTIONS=( + '--enable-shared=yes' + '--enable-static=no' +) diff --git a/ports/libXrender/patches/0001-add-shared-library-support.patch b/ports/libXrender/patches/0001-add-shared-library-support.patch new file mode 100644 index 00000000..4633cdc6 --- /dev/null +++ b/ports/libXrender/patches/0001-add-shared-library-support.patch @@ -0,0 +1,31 @@ +diff -ruN libXrender-0.9.12/configure libXrender-0.9.12-banan_os/configure +--- libXrender-0.9.12/configure 2024-12-13 23:07:57.000000000 +0200 ++++ libXrender-0.9.12-banan_os/configure 2025-11-17 00:04:56.995318198 +0200 +@@ -6035,6 +6035,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 + ;; +@@ -11570,6 +11574,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/libXt/build.sh b/ports/libXt/build.sh new file mode 100755 index 00000000..e8eec3ff --- /dev/null +++ b/ports/libXt/build.sh @@ -0,0 +1,11 @@ +#!/bin/bash ../install.sh + +NAME='libXt' +VERSION='1.3.1' +DOWNLOAD_URL="https://www.x.org/releases/individual/lib/libXt-$VERSION.tar.xz#e0a774b33324f4d4c05b199ea45050f87206586d81655f8bef4dba434d931288" +CONFIG_SUB=('config.sub') +DEPENDENCIES=('libSM' 'libICE' 'libX11') +CONFIGURE_OPTIONS=( + '--enable-shared=yes' + '--enable-static=no' +) diff --git a/ports/libXt/patches/0001-add-shared-library-support.patch b/ports/libXt/patches/0001-add-shared-library-support.patch new file mode 100644 index 00000000..9ae2bebc --- /dev/null +++ b/ports/libXt/patches/0001-add-shared-library-support.patch @@ -0,0 +1,31 @@ +diff -ruN libXt-1.3.1/configure libXt-1.3.1-banan_os/configure +--- libXt-1.3.1/configure 2024-11-17 06:44:13.000000000 +0200 ++++ libXt-1.3.1-banan_os/configure 2025-11-16 23:33:28.525874895 +0200 +@@ -6313,6 +6313,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 + ;; +@@ -11695,6 +11699,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/libXtst/build.sh b/ports/libXtst/build.sh new file mode 100755 index 00000000..363db634 --- /dev/null +++ b/ports/libXtst/build.sh @@ -0,0 +1,11 @@ +#!/bin/bash ../install.sh + +NAME='libXtst' +VERSION='1.2.5' +DOWNLOAD_URL="https://xorg.freedesktop.org/archive/individual/lib/libXtst-$VERSION.tar.xz#b50d4c25b97009a744706c1039c598f4d8e64910c9fde381994e1cae235d9242" +CONFIG_SUB=('config.sub') +DEPENDENCIES=('libX11' 'libXext' 'libXi') +CONFIGURE_OPTIONS=( + '--enable-shared=yes' + '--enable-static=no' +) diff --git a/ports/libXtst/patches/0001-add-shared-library-support.patch b/ports/libXtst/patches/0001-add-shared-library-support.patch new file mode 100644 index 00000000..9589b108 --- /dev/null +++ b/ports/libXtst/patches/0001-add-shared-library-support.patch @@ -0,0 +1,31 @@ +diff -ruN libXtst-1.2.5/configure libXtst-1.2.5-banan_os/configure +--- libXtst-1.2.5/configure 2024-08-02 03:27:45.000000000 +0300 ++++ libXtst-1.2.5-banan_os/configure 2026-02-21 23:29:27.999396388 +0200 +@@ -6194,6 +6194,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 + ;; +@@ -11606,6 +11610,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/libfontenc/build.sh b/ports/libfontenc/build.sh new file mode 100755 index 00000000..56209cc0 --- /dev/null +++ b/ports/libfontenc/build.sh @@ -0,0 +1,11 @@ +#!/bin/bash ../install.sh + +NAME='libfontenc' +VERSION='1.1.8' +DOWNLOAD_URL="https://www.x.org/releases/individual/lib/libfontenc-$VERSION.tar.xz#7b02c3d405236e0d86806b1de9d6868fe60c313628b38350b032914aa4fd14c6" +CONFIG_SUB=('config.sub') +DEPENDENCIES=('zlib' 'xorgproto') +CONFIGURE_OPTIONS=( + '--enable-shared=yes' + '--enable-static=no' +) diff --git a/ports/libfontenc/patches/0001-add-shared-library-support.patch b/ports/libfontenc/patches/0001-add-shared-library-support.patch new file mode 100644 index 00000000..f34bcfab --- /dev/null +++ b/ports/libfontenc/patches/0001-add-shared-library-support.patch @@ -0,0 +1,31 @@ +diff -ruN libfontenc-1.1.8/configure libfontenc-1.1.8-banan_os/configure +--- libfontenc-1.1.8/configure 2024-03-02 20:32:14.000000000 +0200 ++++ libfontenc-1.1.8-banan_os/configure 2025-11-13 20:25:22.782104114 +0200 +@@ -6145,6 +6145,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 + ;; +@@ -11527,6 +11531,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/libpthread-stubs/build.sh b/ports/libpthread-stubs/build.sh new file mode 100755 index 00000000..a6d7afd6 --- /dev/null +++ b/ports/libpthread-stubs/build.sh @@ -0,0 +1,5 @@ +#!/bin/bash ../install.sh + +NAME='libpthread-stubs' +VERSION='0.5' +DOWNLOAD_URL="https://www.x.org/releases/individual/lib/libpthread-stubs-$VERSION.tar.xz#59da566decceba7c2a7970a4a03b48d9905f1262ff94410a649224e33d2442bc" diff --git a/ports/libxcb/build.sh b/ports/libxcb/build.sh new file mode 100755 index 00000000..33b4a804 --- /dev/null +++ b/ports/libxcb/build.sh @@ -0,0 +1,11 @@ +#!/bin/bash ../install.sh + +NAME='libxcb' +VERSION='1.17.0' +DOWNLOAD_URL="https://www.x.org/releases/individual/lib/libxcb-$VERSION.tar.xz#599ebf9996710fea71622e6e184f3a8ad5b43d0e5fa8c4e407123c88a59a6d55" +CONFIG_SUB=('config.sub' 'build-aux/config.sub') +DEPENDENCIES=('xcb-proto' 'libXau' 'libXdmcp' 'libpthread-stubs') +CONFIGURE_OPTIONS=( + '--enable-shared=yes' + '--enable-static=no' +) diff --git a/ports/libxcb/patches/0001-add-shared-library-support.patch b/ports/libxcb/patches/0001-add-shared-library-support.patch new file mode 100644 index 00000000..23fc9c81 --- /dev/null +++ b/ports/libxcb/patches/0001-add-shared-library-support.patch @@ -0,0 +1,31 @@ +diff -ruN libxcb-1.17.0/configure libxcb-1.17.0-banan_os/configure +--- libxcb-1.17.0/configure 2024-04-15 18:09:34.000000000 +0300 ++++ libxcb-1.17.0-banan_os/configure 2025-11-13 19:58:33.829610129 +0200 +@@ -6886,6 +6886,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 + ;; +@@ -12538,6 +12542,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/libxkbfile/build.sh b/ports/libxkbfile/build.sh new file mode 100755 index 00000000..43b26832 --- /dev/null +++ b/ports/libxkbfile/build.sh @@ -0,0 +1,11 @@ +#!/bin/bash ../install.sh + +NAME='libxkbfile' +VERSION='1.1.3' +DOWNLOAD_URL="https://www.x.org/releases/individual/lib/libxkbfile-$VERSION.tar.xz#a9b63eea997abb9ee6a8b4fbb515831c841f471af845a09de443b28003874bec" +CONFIG_SUB=('config.sub') +DEPENDENCIES=('libX11' 'xkeyboard-config') +CONFIGURE_OPTIONS=( + '--enable-shared=yes' + '--enable-static=no' +) diff --git a/ports/libxkbfile/patches/0001-add-shared-library-support.patch b/ports/libxkbfile/patches/0001-add-shared-library-support.patch new file mode 100644 index 00000000..efb1951e --- /dev/null +++ b/ports/libxkbfile/patches/0001-add-shared-library-support.patch @@ -0,0 +1,31 @@ +diff -ruN libxkbfile-1.1.3/configure libxkbfile-1.1.3-banan_os/configure +--- libxkbfile-1.1.3/configure 2024-02-05 00:14:27.000000000 +0200 ++++ libxkbfile-1.1.3-banan_os/configure 2025-11-13 20:14:55.314294954 +0200 +@@ -5944,6 +5944,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 + ;; +@@ -11356,6 +11360,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/util-macros/build.sh b/ports/util-macros/build.sh new file mode 100755 index 00000000..ebbd624e --- /dev/null +++ b/ports/util-macros/build.sh @@ -0,0 +1,5 @@ +#!/bin/bash ../install.sh + +NAME='util-macros' +VERSION='1.20.2' +DOWNLOAD_URL="https://www.x.org/releases/individual/util/util-macros-$VERSION.tar.xz#9ac269eba24f672d7d7b3574e4be5f333d13f04a7712303b1821b2a51ac82e8e" diff --git a/ports/xcb-proto/build.sh b/ports/xcb-proto/build.sh new file mode 100755 index 00000000..06d955c1 --- /dev/null +++ b/ports/xcb-proto/build.sh @@ -0,0 +1,5 @@ +#!/bin/bash ../install.sh + +NAME='xcb-proto' +VERSION='1.17.0' +DOWNLOAD_URL="https://www.x.org/releases/individual/proto/xcb-proto-$VERSION.tar.xz#2c1bacd2110f4799f74de6ebb714b94cf6f80fb112316b1219480fd22562148c" diff --git a/ports/xclock/build.sh b/ports/xclock/build.sh new file mode 100755 index 00000000..e2ae265a --- /dev/null +++ b/ports/xclock/build.sh @@ -0,0 +1,7 @@ +#!/bin/bash ../install.sh + +NAME='xclock' +VERSION='1.1.1' +DOWNLOAD_URL="https://www.x.org/releases/individual/app/xclock-$VERSION.tar.xz#df7ceabf8f07044a2fde4924d794554996811640a45de40cb12c2cf1f90f742c" +DEPENDENCIES=('libXaw' 'libXmu' 'libX11' 'libXft' 'libxkbfile') +CONFIG_SUB=('config.sub') diff --git a/ports/xeyes/build.sh b/ports/xeyes/build.sh new file mode 100755 index 00000000..8c03d84e --- /dev/null +++ b/ports/xeyes/build.sh @@ -0,0 +1,7 @@ +#!/bin/bash ../install.sh + +NAME='xeyes' +VERSION='1.3.1' +DOWNLOAD_URL="https://www.x.org/releases/individual/app/xeyes-$VERSION.tar.xz#5608d76b7b1aac5ed7f22f1b6b5ad74ef98c8693220f32b4b87dccee4a956eaa" +DEPENDENCIES=('libXi' 'libX11' 'libXt' 'libXext' 'libXmu' 'libXrender') +CONFIG_SUB=('config.sub') diff --git a/ports/xkbcomp/build.sh b/ports/xkbcomp/build.sh new file mode 100755 index 00000000..1de1faee --- /dev/null +++ b/ports/xkbcomp/build.sh @@ -0,0 +1,7 @@ +#!/bin/bash ../install.sh + +NAME='xkbcomp' +VERSION='1.4.7' +DOWNLOAD_URL="https://www.x.org/releases/individual/app/xkbcomp-$VERSION.tar.xz#0a288114e5f44e31987042c79aecff1ffad53a8154b8ec971c24a69a80f81f77" +CONFIG_SUB=('config.sub') +DEPENDENCIES=('libX11' 'libxkbfile') diff --git a/ports/xkeyboard-config/build.sh b/ports/xkeyboard-config/build.sh new file mode 100755 index 00000000..2f047871 --- /dev/null +++ b/ports/xkeyboard-config/build.sh @@ -0,0 +1,6 @@ +#!/bin/bash ../install.sh + +NAME='xkeyboard-config' +VERSION='2.5.1' +DOWNLOAD_URL="https://www.x.org/releases/individual/data/xkeyboard-config-$VERSION.tar.gz#8cf3cc94ba5ce146ecca1d5874c996a507872f076edba7c559ae2ce502382f0b" +CONFIG_SUB=('config.sub') diff --git a/ports/xorgproto/build.sh b/ports/xorgproto/build.sh new file mode 100755 index 00000000..fa18109e --- /dev/null +++ b/ports/xorgproto/build.sh @@ -0,0 +1,25 @@ +#!/bin/bash ../install.sh + +NAME='xorgproto' +VERSION='2024.1' +DOWNLOAD_URL="https://www.x.org/releases/individual/proto/xorgproto-$VERSION.tar.xz#372225fd40815b8423547f5d890c5debc72e88b91088fbfb13158c20495ccb59" +DEPENDENCIES=('util-macros') +CONFIGURE_OPTIONS=( + '-Dprefix=/usr' +) + +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 +} diff --git a/ports/xtrans/build.sh b/ports/xtrans/build.sh new file mode 100755 index 00000000..baf18dca --- /dev/null +++ b/ports/xtrans/build.sh @@ -0,0 +1,6 @@ +#!/bin/bash ../install.sh + +NAME='xtrans' +VERSION='1.6.0' +DOWNLOAD_URL="https://www.x.org/releases/individual/lib/xtrans-$VERSION.tar.xz#faafea166bf2451a173d9d593352940ec6404145c5d1da5c213423ce4d359e92" +CONFIG_SUB=('config.sub') diff --git a/ports/xtrans/patches/0001-pragma-ignore-array-bounds.patch b/ports/xtrans/patches/0001-pragma-ignore-array-bounds.patch new file mode 100644 index 00000000..29f9b60f --- /dev/null +++ b/ports/xtrans/patches/0001-pragma-ignore-array-bounds.patch @@ -0,0 +1,14 @@ +diff -ruN xtrans-1.6.0/Xtranssock.c xtrans-1.6.0-banan_os/Xtranssock.c +--- xtrans-1.6.0/Xtranssock.c 2025-03-09 02:12:53.000000000 +0200 ++++ xtrans-1.6.0-banan_os/Xtranssock.c 2025-11-13 22:26:48.576912270 +0200 +@@ -533,7 +533,10 @@ + #ifdef BSD44SOCKETS + addr->sa_len = addrlen; + #endif ++#pragma GCC diagnostic push ++#pragma GCC diagnostic ignored "-Warray-bounds=" + addr->sa_family = AF_UNIX; ++#pragma GCC diagnostic pop + #if defined(HAVE_STRLCPY) || defined(HAS_STRLCPY) + strlcpy(addr->sa_data, port, portlen); + #else