diff --git a/srcpkgs/sendmidi/patches/juce-musl.patch b/srcpkgs/sendmidi/patches/juce-musl.patch new file mode 100644 index 00000000000..70540b1b18f --- /dev/null +++ b/srcpkgs/sendmidi/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/sendmidi/template b/srcpkgs/sendmidi/template new file mode 100644 index 00000000000..2b44c25e724 --- /dev/null +++ b/srcpkgs/sendmidi/template @@ -0,0 +1,27 @@ +# Template file for 'sendmidi' +pkgname=sendmidi +version=1.2.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 send out MIDI messages" +maintainer="Duncaen " +license="GPL-3.0-or-later" +homepage="https://github.com/gbevin/SendMIDI" +changelog="https://github.com/gbevin/SendMIDI/releases" +distfiles="https://github.com/gbevin/SendMIDI/archive/refs/tags/${version}.tar.gz" +checksum=3fb3d16ee14784e057e633b6e57fede33ac291d9af85942106fde8b431e15740 + +post_patch() { + if [ -z "$XBPS_TARGET_NO_ATOMIC8" ]; then + vsed -e 's/-latomic//g' -i Makefile + fi +} + +do_install() { + vbin build/sendmidi + vdoc "${wrksrc}/README.md" +}