From fdc1daefb668aa77d5c2ffc5606e2fb47f4b9794 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Sun, 2 Nov 2025 21:14:21 +0200 Subject: [PATCH] ports: Add libvorbis port --- ports/libvorbis/build.sh | 14 +++++++ .../0001-add-shared-library-support.patch | 41 +++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100755 ports/libvorbis/build.sh create mode 100644 ports/libvorbis/patches/0001-add-shared-library-support.patch diff --git a/ports/libvorbis/build.sh b/ports/libvorbis/build.sh new file mode 100755 index 00000000..0b1c9d1e --- /dev/null +++ b/ports/libvorbis/build.sh @@ -0,0 +1,14 @@ +#!/bin/bash ../install.sh + +NAME='libvorbis' +VERSION='1.3.7' +DOWNLOAD_URL="https://github.com/xiph/vorbis/releases/download/v$VERSION/libvorbis-$VERSION.tar.gz#0e982409a9c3fc82ee06e08205b1355e5c6aa4c36bca58146ef399621b0ce5ab" +DEPENDENCIES=('libogg') +CONFIG_SUB=('config.sub') + +post_install() { + # remove libtool files + rm -f $BANAN_SYSROOT/usr/lib/libvorbis.la + rm -f $BANAN_SYSROOT/usr/lib/libvorbisenc.la + rm -f $BANAN_SYSROOT/usr/lib/libvorbisfile.la +} diff --git a/ports/libvorbis/patches/0001-add-shared-library-support.patch b/ports/libvorbis/patches/0001-add-shared-library-support.patch new file mode 100644 index 00000000..c7d85f7f --- /dev/null +++ b/ports/libvorbis/patches/0001-add-shared-library-support.patch @@ -0,0 +1,41 @@ +diff -ruN libvorbis-1.3.7/configure libvorbis-1.3.7-banan_os/configure +--- libvorbis-1.3.7/configure 2020-07-04 09:20:13.000000000 +0300 ++++ libvorbis-1.3.7-banan_os/configure 2025-10-31 22:34:50.365978022 +0200 +@@ -5772,6 +5772,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 + ;; +@@ -8886,6 +8890,9 @@ + fi + ;; + ++ banan_os*) ++ ;; ++ + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files +@@ -11082,6 +11089,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"