summaryrefslogtreecommitdiff
path: root/Ports/libopenal/package.sh
diff options
context:
space:
mode:
authorcflip <cflip@cflip.net>2022-10-17 20:11:16 -0600
committerLinus Groh <mail@linusgroh.de>2022-10-19 22:07:05 +0200
commitfea43a647f01705d13e9ac00f74f4b2db214ec12 (patch)
tree1d72be7848eabda3e64eba14c37f17fbb88bc88e /Ports/libopenal/package.sh
parentf872d945c37fc522e53bbcb756930cea9bd8b203 (diff)
downloadserenity-fea43a647f01705d13e9ac00f74f4b2db214ec12.zip
Ports/libopenal: Build with SDL2 backend, and disable example programs
This patch fixes libopenal's build by disabling the alsoft-config utility which required qt6, and disabling the example programs that were causing compiler errors. This also forces CMake to build with an SDL2 backend so audio can actually be played.
Diffstat (limited to 'Ports/libopenal/package.sh')
-rwxr-xr-xPorts/libopenal/package.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/Ports/libopenal/package.sh b/Ports/libopenal/package.sh
index 9942865104..e45067eaa6 100755
--- a/Ports/libopenal/package.sh
+++ b/Ports/libopenal/package.sh
@@ -3,8 +3,14 @@ port=libopenal
useconfigure=true
version=1.21.1
workdir="openal-soft-${version}"
-depends=("ffmpeg")
-configopts=("-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt")
+depends=('SDL2')
+configopts=(
+ "-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt"
+ '-DALSOFT_NO_CONFIG_UTIL=ON'
+ '-DALSOFT_EXAMPLES=ON'
+ '-DHAVE_SDL2=1'
+ '-DALSOFT_BACKEND_SDL2=ON'
+)
files="https://openal-soft.org/openal-releases/openal-soft-${version}.tar.bz2 openal-soft-${version}.tar.bz2 c8ad767e9a3230df66756a21cc8ebf218a9d47288f2514014832204e666af5d8"
auth_type=sha256