summaryrefslogtreecommitdiff
path: root/Ports/SDL2
diff options
context:
space:
mode:
authorValtteri Koskivuori <vkoskiv@gmail.com>2022-08-25 04:28:40 +0300
committerLinus Groh <mail@linusgroh.de>2022-08-28 22:54:11 +0100
commitadf85c719aabbd86ab14fc41da6c00dc42aefa98 (patch)
treebc5c9d0a49a284aef8624335d7ea7c47ef62ebc0 /Ports/SDL2
parente388d13c050a1241a8eb700375cfd8e3a1fec401 (diff)
downloadserenity-adf85c719aabbd86ab14fc41da6c00dc42aefa98.zip
Ports: Disable libsamplerate dependency for SDL2
On Arch Linux, the build was picking up the system libsamplerate, which is undesirable. Unlikely that it is needed on Serenity, so disabling it is a good workaround.
Diffstat (limited to 'Ports/SDL2')
-rwxr-xr-xPorts/SDL2/package.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/Ports/SDL2/package.sh b/Ports/SDL2/package.sh
index 487aa7f081..1fa7263ce3 100755
--- a/Ports/SDL2/package.sh
+++ b/Ports/SDL2/package.sh
@@ -4,7 +4,13 @@ version='2.24.0'
useconfigure='true'
auth_type='sha256'
files="https://github.com/libsdl-org/SDL/releases/download/release-${version}/SDL2-${version}.tar.gz SDL2-${version}.tar.gz 91e4c34b1768f92d399b078e171448c6af18cafda743987ed2064a28954d6d97"
-configopts=("-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt" "-DPULSEAUDIO=OFF" "-DJACK=OFF" "-DEXTRA_LDFLAGS=-laudio;-liconv;-ldl")
+configopts=(
+ "-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt"
+ "-DPULSEAUDIO=OFF"
+ "-DJACK=OFF"
+ "-DSDL_LIBSAMPLERATE=OFF" # Disabled to prevent potential collision with host libsamplerate
+ "-DEXTRA_LDFLAGS=-laudio;-liconv;-ldl"
+)
depends=("libiconv")
configure() {