git: 1701f4cd0890 - main - audio/libremidi: update 3.0 → 4.0

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Tue, 19 Sep 2023 05:26:48 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1701f4cd0890badedd189d69b76f3f40705fa1f4

commit 1701f4cd0890badedd189d69b76f3f40705fa1f4
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-09-19 05:18:09 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-09-19 05:26:45 +0000

    audio/libremidi: update 3.0 → 4.0
    
    ALSA support is disabled in the port because the project now
    uses linuxisms like timerfd in the ALSA code.
    
    Reported by:    portscout
---
 audio/libremidi/Makefile  |  17 ++++----
 audio/libremidi/distinfo  |   6 +--
 audio/libremidi/pkg-plist | 101 ++++++++++++++++++++++++++++++++++++++++------
 3 files changed, 102 insertions(+), 22 deletions(-)

diff --git a/audio/libremidi/Makefile b/audio/libremidi/Makefile
index b3cd32e0a678..91cc07508860 100644
--- a/audio/libremidi/Makefile
+++ b/audio/libremidi/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	libremidi
 DISTVERSIONPREFIX=	v
-DISTVERSION=	3.0
+DISTVERSION=	4.0
 CATEGORIES=	audio
 
 MAINTAINER=	yuri@FreeBSD.org
@@ -8,20 +8,23 @@ COMMENT=	Modern C++ MIDI real-time & file I/O library
 WWW=		https://github.com/jcelerier/libremidi
 
 LICENSE=	BSD2CLAUSE
-LICENSE_FILE=	${WRKSRC}/LICENSE.ModernMidi
+LICENSE_FILE=	${WRKSRC}/LICENSE.md
 
-LIB_DEPENDS=	libasound.so:audio/alsa-lib \
-		libjack.so:audio/jack
+LIB_DEPENDS=	libjack.so:audio/jack
 TEST_DEPENDS=	catch2>0:devel/catch2
 
-USES=		cmake:testing compiler:c++20-lang
+USES=		cmake:testing compiler:c++20-lang localbase
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	jcelerier
 
-CMAKE_ON=	BUILD_SHARED_LIBS
+CMAKE_ON=	BUILD_SHARED_LIBS \
+		LIBREMIDI_NO_ALSA
 CMAKE_OFF=	LIBREMIDI_TESTS
-CMAKE_TESTING_ON=	LIBREMIDI_TESTS # 2 tests fail, see https://github.com/jcelerier/libremidi/issues/72
+CMAKE_TESTING_ON=	LIBREMIDI_TESTS
+
+# test fail to configure: https://github.com/jcelerier/libremidi/issues/84
+# before that was: 2 tests fail, see https://github.com/jcelerier/libremidi/issues/72
 
 # This library can also be used as a header-only library
 
diff --git a/audio/libremidi/distinfo b/audio/libremidi/distinfo
index bf3889f733b6..0284769319db 100644
--- a/audio/libremidi/distinfo
+++ b/audio/libremidi/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1689054483
-SHA256 (jcelerier-libremidi-v3.0_GH0.tar.gz) = 133b40396ca72e35d94cb0950199c9d123352951e4705971a9cd7606f905328a
-SIZE (jcelerier-libremidi-v3.0_GH0.tar.gz) = 15466588
+TIMESTAMP = 1695095614
+SHA256 (jcelerier-libremidi-v4.0_GH0.tar.gz) = d5f7685ffe3852a1a4fadee8404d874a0a24929dd6ab8dad4ec002d177b14dd3
+SIZE (jcelerier-libremidi-v4.0_GH0.tar.gz) = 15510064
diff --git a/audio/libremidi/pkg-plist b/audio/libremidi/pkg-plist
index 2bc071958ee4..2251f04ec805 100644
--- a/audio/libremidi/pkg-plist
+++ b/audio/libremidi/pkg-plist
@@ -1,23 +1,100 @@
 include/libremidi/api.hpp
+include/libremidi/backends.hpp
+include/libremidi/backends/alsa_raw.hpp
+include/libremidi/backends/alsa_raw/config.hpp
+include/libremidi/backends/alsa_raw/helpers.hpp
+include/libremidi/backends/alsa_raw/midi_in.hpp
+include/libremidi/backends/alsa_raw/midi_out.hpp
+include/libremidi/backends/alsa_raw/observer.hpp
+include/libremidi/backends/alsa_raw_ump.hpp
+include/libremidi/backends/alsa_raw_ump/config.hpp
+include/libremidi/backends/alsa_raw_ump/helpers.hpp
+include/libremidi/backends/alsa_raw_ump/midi_in.hpp
+include/libremidi/backends/alsa_raw_ump/midi_out.hpp
+include/libremidi/backends/alsa_raw_ump/observer.hpp
+include/libremidi/backends/alsa_seq.hpp
+include/libremidi/backends/alsa_seq/config.hpp
+include/libremidi/backends/alsa_seq/helpers.hpp
+include/libremidi/backends/alsa_seq/midi_in.hpp
+include/libremidi/backends/alsa_seq/midi_out.hpp
+include/libremidi/backends/alsa_seq/observer.hpp
+include/libremidi/backends/alsa_seq/shared_handler.hpp
+include/libremidi/backends/coremidi.hpp
+include/libremidi/backends/coremidi/config.hpp
+include/libremidi/backends/coremidi/helpers.hpp
+include/libremidi/backends/coremidi/midi_in.hpp
+include/libremidi/backends/coremidi/midi_out.hpp
+include/libremidi/backends/coremidi/observer.hpp
+include/libremidi/backends/coremidi_ump.hpp
+include/libremidi/backends/coremidi_ump/config.hpp
+include/libremidi/backends/coremidi_ump/helpers.hpp
+include/libremidi/backends/coremidi_ump/midi_in.hpp
+include/libremidi/backends/coremidi_ump/midi_out.hpp
+include/libremidi/backends/coremidi_ump/observer.hpp
+include/libremidi/backends/dummy.hpp
+include/libremidi/backends/emscripten.hpp
+include/libremidi/backends/emscripten/config.hpp
+include/libremidi/backends/emscripten/helpers.hpp
+include/libremidi/backends/emscripten/midi_access.cpp
+include/libremidi/backends/emscripten/midi_access.hpp
+include/libremidi/backends/emscripten/midi_in.cpp
+include/libremidi/backends/emscripten/midi_in.hpp
+include/libremidi/backends/emscripten/midi_out.cpp
+include/libremidi/backends/emscripten/midi_out.hpp
+include/libremidi/backends/emscripten/observer.cpp
+include/libremidi/backends/emscripten/observer.hpp
+include/libremidi/backends/jack.hpp
+include/libremidi/backends/jack/config.hpp
+include/libremidi/backends/jack/helpers.hpp
+include/libremidi/backends/jack/midi_in.hpp
+include/libremidi/backends/jack/midi_out.hpp
+include/libremidi/backends/jack/observer.hpp
+include/libremidi/backends/jack/shared_handler.hpp
+include/libremidi/backends/linux/helpers.hpp
+include/libremidi/backends/linux/udev.hpp
+include/libremidi/backends/winmidi.hpp
+include/libremidi/backends/winmidi/config.hpp
+include/libremidi/backends/winmidi/helpers.hpp
+include/libremidi/backends/winmidi/midi_in.hpp
+include/libremidi/backends/winmidi/midi_out.hpp
+include/libremidi/backends/winmidi/observer.hpp
+include/libremidi/backends/winmm.hpp
+include/libremidi/backends/winmm/config.hpp
+include/libremidi/backends/winmm/helpers.hpp
+include/libremidi/backends/winmm/midi_in.hpp
+include/libremidi/backends/winmm/midi_out.hpp
+include/libremidi/backends/winmm/observer.hpp
+include/libremidi/backends/winuwp.hpp
+include/libremidi/backends/winuwp/config.hpp
+include/libremidi/backends/winuwp/helpers.hpp
+include/libremidi/backends/winuwp/midi_in.hpp
+include/libremidi/backends/winuwp/midi_out.hpp
+include/libremidi/backends/winuwp/observer.hpp
+include/libremidi/client.cpp
+include/libremidi/client.hpp
+include/libremidi/cmidi2.hpp
 include/libremidi/config.hpp
-include/libremidi/detail/alsa.hpp
-include/libremidi/detail/coreaudio.hpp
-include/libremidi/detail/dummy.hpp
-include/libremidi/detail/emscripten.hpp
-include/libremidi/detail/emscripten_api.hpp
-include/libremidi/detail/jack.hpp
+include/libremidi/configurations.hpp
+include/libremidi/defaults.hpp
 include/libremidi/detail/midi_api.hpp
-include/libremidi/detail/midi_queue.hpp
-include/libremidi/detail/raw_alsa.hpp
-include/libremidi/detail/raw_alsa_helpers.hpp
-include/libremidi/detail/semaphore.hpp
-include/libremidi/detail/winmm.hpp
-include/libremidi/detail/winuwp.hpp
+include/libremidi/detail/midi_in.hpp
+include/libremidi/detail/midi_out.hpp
+include/libremidi/detail/midi_stream_decoder.hpp
+include/libremidi/detail/observer.hpp
+include/libremidi/error.hpp
+include/libremidi/input_configuration.hpp
 include/libremidi/libremidi.cpp
 include/libremidi/libremidi.hpp
 include/libremidi/message.hpp
+include/libremidi/midi_in.cpp
+include/libremidi/midi_out.cpp
+include/libremidi/observer.cpp
+include/libremidi/observer_configuration.hpp
+include/libremidi/output_configuration.hpp
 include/libremidi/reader.cpp
 include/libremidi/reader.hpp
+include/libremidi/shared_context.hpp
+include/libremidi/ump.hpp
 include/libremidi/writer.cpp
 include/libremidi/writer.hpp
 lib/cmake/libremidi/libremidi-config-version.cmake