New package: osmid-0.6.1

Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
This commit is contained in:
Jürgen Buchmüller 2018-06-26 02:56:25 +02:00
parent df94b7727a
commit 4a00d41d3d
No known key found for this signature in database
GPG Key ID: 6764EC32352D0647
2 changed files with 59 additions and 0 deletions

View File

@ -0,0 +1,29 @@
--- JuceLibraryCode/modules/juce_core/native/juce_linux_SystemStats.cpp 2018-03-27 16:52:31.000000000 +0200
+++ JuceLibraryCode/modules/juce_core/native/juce_linux_SystemStats.cpp 2018-06-26 02:41:16.728143943 +0200
@@ -126,9 +126,15 @@
return result;
}
+#if defined(__GLIBC__)
String SystemStats::getUserLanguage() { return getLocaleValue (_NL_IDENTIFICATION_LANGUAGE); }
String SystemStats::getUserRegion() { return getLocaleValue (_NL_IDENTIFICATION_TERRITORY); }
String SystemStats::getDisplayLanguage() { return getUserLanguage() + "-" + getUserRegion(); }
+#else
+String SystemStats::getUserLanguage() { return "en"; }
+String SystemStats::getUserRegion() { return "US"; }
+String SystemStats::getDisplayLanguage() { return getUserLanguage() + "-" + getUserRegion(); }
+#endif
//==============================================================================
void CPUInformation::initialise() noexcept
--- external_libs/spdlog-0.11.0/include/spdlog/details/os.h 2018-03-27 16:52:31.000000000 +0200
+++ external_libs/spdlog-0.11.0/include/spdlog/details/os.h 2018-06-26 02:45:39.903133450 +0200
@@ -343,7 +343,7 @@
return "Unkown error";
#elif defined(__FreeBSD__) || defined(__APPLE__) || defined(ANDROID) || \
- ((_POSIX_C_SOURCE >= 200112L) && ! _GNU_SOURCE) // posix version
+ !defined(__GLIBC__) || ((_POSIX_C_SOURCE >= 200112L) && ! _GNU_SOURCE) // posix version
if (strerror_r(err_num, buf, buf_size) == 0)
return std::string(buf);

30
srcpkgs/osmid/template Normal file
View File

@ -0,0 +1,30 @@
# Template file for 'osmid'
pkgname=osmid
version=0.6.1
revision=1
build_style=cmake
hostmakedepends="pkg-config"
makedepends="alsa-lib-devel libX11-devel"
short_desc="Tool to convert MIDI to OSC and OSC to MIDI"
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
license="MIT, GPL-2.0-or-later"
homepage="https://github.com/llloret/osmid/"
distfiles="https://github.com/llloret/osmid/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
checksum=3dd7c62e8a13f37252bd021d3855d7fc07449218c1e9c41315d01de4059a830e
case "$XBPS_TARGET_MACHINE" in
*-musl) makedepends+=" libexecinfo-devel" ;;
esac
pre_configure() {
case "$XBPS_TARGET_MACHINE" in
*-musl) sed -i CMakeLists.txt \
-e "/target_link_libraries/s/X11)/X11 execinfo)/"
;;
esac
}
post_install() {
vlicense LICENSE.md
vdoc README.md
}