From 9233049356e6e02b463316837bcde10476e465b4 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Sun, 2 Nov 2025 21:13:46 +0200 Subject: [PATCH] ports: Add openal-soft port --- ports/openal-soft/build.sh | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 ports/openal-soft/build.sh diff --git a/ports/openal-soft/build.sh b/ports/openal-soft/build.sh new file mode 100755 index 00000000..abb3bf9c --- /dev/null +++ b/ports/openal-soft/build.sh @@ -0,0 +1,26 @@ +#!/bin/bash ../install.sh + +NAME='openal-soft' +VERSION='1.24.3' +DOWNLOAD_URL="https://github.com/kcat/openal-soft/archive/refs/tags/$VERSION.tar.gz#7e1fecdeb45e7f78722b776c5cf30bd33934b961d7fd2a11e0494e064cc631ce" +DEPENDENCIES=('zlib' 'libsndfile') + +configure() { + $BANAN_CMAKE \ + --toolchain="$BANAN_TOOLCHAIN_DIR/Toolchain.txt" \ + -B build -G Ninja --fresh . \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DALSOFT_EXAMPLES=OFF \ + -DALSOFT_NO_CONFIG_UTIL=ON \ + -DALSOFT_BACKEND_SDL2=ON \ + || exit 1 +} + +build() { + $BANAN_CMAKE --build build || exit 1 +} + +install() { + $BANAN_CMAKE --install build || exit 1 +}