From 55c8a0e92398e8a2c65ba58617925a0af28f28d3 Mon Sep 17 00:00:00 2001 From: Mat Boehlke Date: Thu, 30 May 2024 15:19:51 -0500 Subject: [PATCH] wildmidi: update to 0.4.6. Enable sndio support, newly added in this version. Also, use build options to control which audio output methods to build. The wildmidi player now allows you to choose from the built-in output options at runtime. --- .../wildmidi/patches/replace_home_page.patch | 44 ------------------- srcpkgs/wildmidi/template | 15 +++++-- 2 files changed, 11 insertions(+), 48 deletions(-) delete mode 100644 srcpkgs/wildmidi/patches/replace_home_page.patch diff --git a/srcpkgs/wildmidi/patches/replace_home_page.patch b/srcpkgs/wildmidi/patches/replace_home_page.patch deleted file mode 100644 index 6b25316185f449..00000000000000 --- a/srcpkgs/wildmidi/patches/replace_home_page.patch +++ /dev/null @@ -1,44 +0,0 @@ -Adapted from -https://github.com/Mindwerks/wildmidi/commit/a128266be48f2e2fabcf308232f88c2bbaa03677 - -Replace mindwerks.net home page with the github project page in the package. ---- -diff --git a/README.md b/README.md -index 4f33e7e..e05912a 100644 ---- a/README.md -+++ b/README.md -@@ -8,7 +8,7 @@ applications that wish to include MIDI file playback. - - Version: 0.4.5 - Licenses: GPLv3+ and LGPLv3 --Website: http://www.mindwerks.net/projects/wildmidi -+Website: https://github.com/Mindwerks/wildmidi - - PLATFORMS: - -diff --git a/include/config.h.cmake b/include/config.h.cmake -index 65ab0b8..3f52ae7 100644 ---- a/include/config.h.cmake -+++ b/include/config.h.cmake -@@ -4,7 +4,7 @@ - #define PACKAGE "wildmidi" - - /* Define to the home page for this package. */ --#define PACKAGE_URL "http://www.mindwerks.net/projects/wildmidi/" -+#define PACKAGE_URL "https://github.com/Mindwerks/wildmidi" - - /* Define to the address where bug reports for this package should be sent. */ - #define PACKAGE_BUGREPORT "https://github.com/Mindwerks/wildmidi/issues" -diff --git a/src/wildmidi.pc.in b/src/wildmidi.pc.in -index 3d8e84f..1a73284 100644 ---- a/src/wildmidi.pc.in -+++ b/src/wildmidi.pc.in -@@ -8,7 +8,7 @@ includedir=${exec_prefix}/@CMAKE_INSTALL_INCLUDEDIR@ - Name: WildMIDI - Description: software synthesizer library - Version: @WILDMIDI_VERSION@ --URL: https://www.mindwerks.net/projects/wildmidi/ -+URL: https://github.com/Mindwerks/wildmidi - - Libs: -L${libdir} -lWildMidi - Libs.private: -lm diff --git a/srcpkgs/wildmidi/template b/srcpkgs/wildmidi/template index 35a28f434035c9..2326a2ce6b7db5 100644 --- a/srcpkgs/wildmidi/template +++ b/srcpkgs/wildmidi/template @@ -1,18 +1,25 @@ # Template file for 'wildmidi' pkgname=wildmidi -version=0.4.5 +version=0.4.6 revision=1 build_style=cmake -configure_args="-DWANT_ALSA=1 -DWANT_OSS=1 -DWANT_OPENAL=1" +configure_args="$(vopt_bool alsa WANT_ALSA) $(vopt_bool oss WANT_OSS) + $(vopt_bool sndio WANT_SNDIO) $(vopt_bool openal WANT_OPENAL)" hostmakedepends="pkg-config" -makedepends="alsa-lib-devel libopenal-devel" +makedepends="$(vopt_if alsa alsa-lib-devel) $(vopt_if sndio sndio-devel) + $(vopt_if openal libopenal-devel)" depends="libwildmidi" short_desc="Simple software midi player and core softsynth library" maintainer="Érico Nogueira " license="GPL-3.0-or-later, LGPL-3.0-only" homepage="https://github.com/Mindwerks/wildmidi" distfiles="https://github.com/Mindwerks/wildmidi/archive/wildmidi-${version}.tar.gz" -checksum=116c0f31d349eaa74a630ed5a9a17b6a351204877a4ed9fb9aacd9dbd7f6c874 +checksum=051b8c51699af594ddd3e4e3b06bad3564e9499c3c6b9e6f880cb2f92bcfa9c8 + +build_options="alsa oss sndio openal" +build_options_default="alsa sndio openal" +desc_option_oss="Enable support for Open Sound System (OSS) output" +desc_option_openal="Enable support for OpenAL output" post_install() { vsconf ${FILESDIR}/wildmidi.cfg