From c98a27593168d6f23c810681e6e28b248682e31d Mon Sep 17 00:00:00 2001 From: Grigoris Pavlakis Date: Mon, 13 Jun 2022 13:34:09 +0300 Subject: [PATCH] Ports: Add SDL_sound for SDL 1.2 --- Ports/AvailablePorts.md | 1 + Ports/SDL_sound/package.sh | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100755 Ports/SDL_sound/package.sh diff --git a/Ports/AvailablePorts.md b/Ports/AvailablePorts.md index 6a8e90a89ac..65181464766 100644 --- a/Ports/AvailablePorts.md +++ b/Ports/AvailablePorts.md @@ -208,6 +208,7 @@ This list is also available at [ports.serenityos.net](https://ports.serenityos.n | [`SDL2_sound`](SDL2_sound/) | SDL2\_sound (Abstract soundfile decoder add-on for SDL2) | | https://github.com/icculus/SDL_sound | | [`SDL2_ttf`](SDL2_ttf/) | SDL2\_ttf (TrueType Font add-on for SDL2) | 2.0.18 | https://www.libsdl.org/projects/SDL_ttf/ | | [`SDL_mixer`](SDL_mixer/) | SDL\_mixer (Audio mixer add-on for SDL 1.2) | 1.2.12 | https://www.libsdl.org/projects/SDL_mixer/release-1.2.html | +| [`SDL_sound`](SDL_sound/) | SDL\_sound (Abstract soundfile decoder add-on for SDL 1.2) | 1.0.3 | https://www.icculus.org/SDL_sound/ | | [`SDLPoP`](SDLPoP/) | Prince of Persia game | | https://github.com/NagyD/SDLPoP | | [`sed`](sed/) | GNU sed | 4.8 | https://www.gnu.org/software/sed/ | | [`serenity-theming`](serenity-theming/) | SerenityOS theming | e4e2f26 | https://github.com/SerenityOS/theming | diff --git a/Ports/SDL_sound/package.sh b/Ports/SDL_sound/package.sh new file mode 100755 index 00000000000..e5412556a22 --- /dev/null +++ b/Ports/SDL_sound/package.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env -S bash ../.port_include.sh +port='SDL_sound' +version='1.0.3' +useconfigure='true' +use_fresh_config_sub='true' +depends=("sdl12-compat" "libmikmod") +files="https://www.icculus.org/SDL_sound/downloads/${port}-${version}.tar.gz ${port}-${version}.tar.gz 3999fd0bbb485289a52be14b2f68b571cb84e380cc43387eadf778f64c79e6df" +auth_type='sha256' +configopts=( + "--with-sdl-prefix=${SERENITY_INSTALL_ROOT}/usr/local" + "--enable-ogg=no" + "--enable-modplug=no" +) +makeopts=("LDFLAGS=-lm")