ports: Add libsndfile port

This commit is contained in:
Bananymous 2025-11-02 21:13:33 +02:00
parent 3a79540d2d
commit bd9015e474
2 changed files with 63 additions and 0 deletions

15
ports/libsndfile/build.sh Executable file
View File

@ -0,0 +1,15 @@
#!/bin/bash ../install.sh
NAME='libsndfile'
VERSION='1.2.2'
DOWNLOAD_URL="https://github.com/libsndfile/libsndfile/releases/download/$VERSION/libsndfile-$VERSION.tar.xz#3799ca9924d3125038880367bf1468e53a1b7e3686a934f098b7e1d286cdb80e"
_DEPENDENCIES=('ca-certificates' 'openssl' 'zlib' 'zstd')
CONFIG_SUB=('build-aux/config.sub')
CONFIGURE_OPTIONS=(
'CFLAGS=-std=c11'
)
post_install() {
# remove libtool file
rm -f $BANAN_SYSROOT/usr/lib/libsndfile.la
}

View File

@ -0,0 +1,48 @@
diff -ruN libsndfile-1.2.2/configure libsndfile-1.2.2-banan_os/configure
--- libsndfile-1.2.2/configure 2023-08-13 12:22:03.000000000 +0300
+++ libsndfile-1.2.2-banan_os/configure 2025-08-09 21:50:50.046135494 +0300
@@ -10059,6 +10059,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
;;
@@ -15720,6 +15724,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"
@@ -19754,6 +19768,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"