diff --git a/srcpkgs/receivemidi/patches/juce-musl.patch b/srcpkgs/receivemidi/patches/juce-musl.patch new file mode 100644 index 00000000000..70540b1b18f --- /dev/null +++ b/srcpkgs/receivemidi/patches/juce-musl.patch @@ -0,0 +1,42 @@ +--- a/JuceLibraryCode/modules/juce_core/native/juce_linux_SystemStats.cpp ++++ b/JuceLibraryCode/modules/juce_core/native/juce_linux_SystemStats.cpp +@@ -198,7 +198,7 @@ + + String SystemStats::getUserLanguage() + { +- #if JUCE_BSD ++ #if JUCE_BSD || !defined(__GLIBC__) + if (auto langEnv = getenv ("LANG")) + return String::fromUTF8 (langEnv).upToLastOccurrenceOf (".UTF-8", false, true); + +@@ -210,7 +210,7 @@ + + String SystemStats::getUserRegion() + { +- #if JUCE_BSD ++ #if JUCE_BSD || !defined(__GLIBC__) + return {}; + #else + return getLocaleValue (_NL_IDENTIFICATION_TERRITORY); +--- a/JuceLibraryCode/modules/juce_core/system/juce_SystemStats.cpp ++++ b/JuceLibraryCode/modules/juce_core/system/juce_SystemStats.cpp +@@ -138,7 +138,7 @@ + { + String result; + +- #if JUCE_ANDROID || JUCE_MINGW || JUCE_WASM ++ #if 1 + jassertfalse; // sorry, not implemented yet! + + #elif JUCE_WINDOWS +--- a/JuceLibraryCode/modules/juce_core/juce_core.cpp ++++ b/JuceLibraryCode/modules/juce_core/juce_core.cpp +@@ -102,7 +102,7 @@ + #include + #include + +- #if ! (JUCE_ANDROID || JUCE_WASM) ++ #if 0 + #include + #endif + #endif diff --git a/srcpkgs/receivemidi/template b/srcpkgs/receivemidi/template new file mode 100644 index 00000000000..4f9a0b7566c --- /dev/null +++ b/srcpkgs/receivemidi/template @@ -0,0 +1,28 @@ +# Template file for 'receivemidi' +pkgname=receivemidi +version=1.3.1 +revision=1 +build_wrksrc="Builds/LinuxMakefile" +build_style=gnu-makefile +make_build_args="CONFIG=Release" +hostmakedepends="pkg-config" +makedepends="alsa-lib-devel" +short_desc="Command-line tool to monitor and receive MIDI messages" +maintainer="Duncaen " +license="GPL-3.0-or-later" +homepage="https://github.com/gbevin/ReceiveMIDI" +changelog="https://github.com/gbevin/ReceiveMIDI/releases" +distfiles="https://github.com/gbevin/ReceiveMIDI/archive/refs/tags/${version}.tar.gz" +checksum=54697ad1a723eea5e3f19ec3bf153795e765b278953dde8be7f350001637bc0a + +post_patch() { + if [ -z "$XBPS_TARGET_NO_ATOMIC8" ]; then + vsed -e 's/-latomic//g' -i Makefile + fi +} + +do_install() { + vbin build/receivemidi + vdoc "${wrksrc}/README.md" + vdoc "${wrksrc}/JAVASCRIPT.md" +}