New package: sendmidi-1.2.1

This commit is contained in:
Duncaen 2023-07-21 22:58:02 +02:00
parent 86cedac0e1
commit 4ae4ccee56
No known key found for this signature in database
GPG Key ID: 335C1D17EC3D6E35
2 changed files with 69 additions and 0 deletions

View File

@ -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 <net/if.h>
#include <sys/ioctl.h>
- #if ! (JUCE_ANDROID || JUCE_WASM)
+ #if 0
#include <execinfo.h>
#endif
#endif

27
srcpkgs/sendmidi/template Normal file
View File

@ -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 <duncaen@voidlinux.org>"
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"
}