From 2d600a867530d75a052cdc56d093842eb74c3be7 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Sat, 8 May 2021 05:52:54 +0200 Subject: [PATCH] Ports: Add port for libopenal --- Ports/AvailablePorts.md | 1 + Ports/libopenal/package.sh | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100755 Ports/libopenal/package.sh diff --git a/Ports/AvailablePorts.md b/Ports/AvailablePorts.md index e5f87ad196f..eea255dade7 100644 --- a/Ports/AvailablePorts.md +++ b/Ports/AvailablePorts.md @@ -58,6 +58,7 @@ Please make sure to keep this list up to date when adding and updating ports. :^ | [`libksba`](libksba/) | libksba | 1.5.1 | https://gnupg.org/software/libksba/index.html | | [`libjpeg`](libjpeg/) | libjpeg | 9d | https://ijg.org/ | | [`libogg`](libogg/) | libogg | 1.3.4 | https://github.com/xiph/ogg | +| [`libopenal`](libopenal/) | OpenAL soft | 1.21.1 | https://openal-soft.org/ | | [`libphysfs`](libphysfs/) | PhysicsFS | 3.0.2 | https://icculus.org/physfs/ | | [`libpng`](libpng/) | libpng | 1.6.37 | https://libpng.org/ | | [`libpuffy`](libpuffy/) | libpuffy | 1.0 | https://github.com/ibara/libpuffy | diff --git a/Ports/libopenal/package.sh b/Ports/libopenal/package.sh new file mode 100755 index 00000000000..59ddb4a1bf3 --- /dev/null +++ b/Ports/libopenal/package.sh @@ -0,0 +1,18 @@ +#!/usr/bin/env -S bash ../.port_include.sh +port=libopenal +useconfigure=true +version=1.21.1 +workdir="openal-soft-${version}" +depends=ffmpeg +configopts="-DCMAKE_TOOLCHAIN_FILE=$SERENITY_SOURCE_DIR/Toolchain/CMake/CMakeToolchain.txt" +files="https://openal-soft.org/openal-releases/openal-soft-${version}.tar.bz2 openal-soft-${version}.tar.bz2 c8ad767e9a3230df66756a21cc8ebf218a9d47288f2514014832204e666af5d8" +auth_type=sha256 + +configure() { + run cmake $configopts +} + +install() { + # Paths are incorrect when we specify DESTDIR here + run make install +}