ports: Add libogg port

This commit is contained in:
Bananymous 2025-11-02 21:14:11 +02:00
parent 9233049356
commit c9159b81c8
2 changed files with 31 additions and 0 deletions

11
ports/libogg/build.sh Executable file
View File

@ -0,0 +1,11 @@
#!/bin/bash ../install.sh
NAME='libogg'
VERSION='1.3.6'
DOWNLOAD_URL="https://github.com/xiph/ogg/releases/download/v$VERSION/libogg-$VERSION.tar.gz#83e6704730683d004d20e21b8f7f55dcb3383cdf84c0daedf30bde175f774638"
CONFIG_SUB=('config.sub')
post_install() {
# remove libtool file
rm -f $BANAN_SYSROOT/usr/lib/libogg.la
}

View File

@ -0,0 +1,20 @@
diff -ruN libogg-1.3.6/configure libogg-1.3.6-banan_os/configure
--- libogg-1.3.6/configure 2025-06-16 19:02:25.000000000 +0300
+++ libogg-1.3.6-banan_os/configure 2025-10-31 22:25:25.050050235 +0200
@@ -10622,6 +10622,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"