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 +}