diff --git a/srcpkgs/wildmidi/patches/replace_home_page.patch b/srcpkgs/wildmidi/patches/replace_home_page.patch deleted file mode 100644 index 6b25316185f..00000000000 --- 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 35a28f43403..2326a2ce6b7 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