From 4a00d41d3d4757f443b56899010f420f718a4672 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Tue, 26 Jun 2018 02:56:25 +0200 Subject: [PATCH] New package: osmid-0.6.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jürgen Buchmüller --- srcpkgs/osmid/patches/musl.patch | 29 +++++++++++++++++++++++++++++ srcpkgs/osmid/template | 30 ++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 srcpkgs/osmid/patches/musl.patch create mode 100644 srcpkgs/osmid/template diff --git a/srcpkgs/osmid/patches/musl.patch b/srcpkgs/osmid/patches/musl.patch new file mode 100644 index 00000000000..c7f247c7258 --- /dev/null +++ b/srcpkgs/osmid/patches/musl.patch @@ -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); diff --git a/srcpkgs/osmid/template b/srcpkgs/osmid/template new file mode 100644 index 00000000000..6da7cb2b44c --- /dev/null +++ b/srcpkgs/osmid/template @@ -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 " +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 +}