New package: receivemidi-1.3.1

This commit is contained in:
Duncaen 2023-07-21 23:24:09 +02:00
parent 4ae4ccee56
commit f4dfaa0fe6
No known key found for this signature in database
GPG Key ID: 335C1D17EC3D6E35
2 changed files with 70 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

View File

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