git: a5f201df05c5 - main - audio/libremidi: update 4.3.0 → 4.4.0

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Mon, 12 Feb 2024 07:56:35 UTC
The branch main has been updated by yuri:

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

commit a5f201df05c5e34bd1969e72315f43a8a3f3da3d
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-02-12 06:43:00 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-02-12 07:56:26 +0000

    audio/libremidi: update 4.3.0 → 4.4.0
    
    Reported by:    portscout
---
 audio/libremidi/Makefile                                |  7 ++++---
 audio/libremidi/distinfo                                |  6 +++---
 audio/libremidi/files/patch-CMakeLists.txt              | 13 -------------
 audio/libremidi/files/patch-cmake_libremidi.tests.cmake | 17 -----------------
 audio/libremidi/pkg-plist                               |  3 ++-
 5 files changed, 9 insertions(+), 37 deletions(-)

diff --git a/audio/libremidi/Makefile b/audio/libremidi/Makefile
index 9010491e9217..c1dff94f88ef 100644
--- a/audio/libremidi/Makefile
+++ b/audio/libremidi/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	libremidi
 DISTVERSIONPREFIX=	v
-DISTVERSION=	4.3.0
+DISTVERSION=	4.4.0
 CATEGORIES=	audio
 
 MAINTAINER=	yuri@FreeBSD.org
@@ -17,9 +17,10 @@ USES=		cmake:testing compiler:c++20-lang localbase
 USE_GITHUB=	yes
 GH_ACCOUNT=	jcelerier
 
-#CMAKE_ON=	BUILD_SHARED_LIBS # this doesn't work on libremidi form some reason - see the patch
+CMAKE_ON=	BUILD_SHARED_LIBS
 CMAKE_OFF=	LIBREMIDI_TESTS
-CMAKE_TESTING_ON=	LIBREMIDI_TESTS # 1 test fails: https://github.com/jcelerier/libremidi/issues/86
+CMAKE_ARGS=	-DFETCHCONTENT_TRY_FIND_PACKAGE_MODE=ALWAYS
+CMAKE_TESTING_ON=	LIBREMIDI_TESTS
 
 OPTIONS_DEFINE=		JACK
 OPTIONS_DEFAULT=	JACK
diff --git a/audio/libremidi/distinfo b/audio/libremidi/distinfo
index 6197dd4d29b1..6008f0ac98b5 100644
--- a/audio/libremidi/distinfo
+++ b/audio/libremidi/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1707199626
-SHA256 (jcelerier-libremidi-v4.3.0_GH0.tar.gz) = 1e25b72e0a50af6594995853630237171163cfa4760535b8487805ede31f7354
-SIZE (jcelerier-libremidi-v4.3.0_GH0.tar.gz) = 15523253
+TIMESTAMP = 1707719024
+SHA256 (jcelerier-libremidi-v4.4.0_GH0.tar.gz) = da883962a2c4938cb838097c7cf31f8358c0e924b9713f7390d18b2d21867a9f
+SIZE (jcelerier-libremidi-v4.4.0_GH0.tar.gz) = 15532881
diff --git a/audio/libremidi/files/patch-CMakeLists.txt b/audio/libremidi/files/patch-CMakeLists.txt
deleted file mode 100644
index 23ace240b524..000000000000
--- a/audio/libremidi/files/patch-CMakeLists.txt
+++ /dev/null
@@ -1,13 +0,0 @@
-- BUILD_SHARED_LIBS doesn't work for some reason
-
---- CMakeLists.txt.orig	2023-10-09 23:50:56 UTC
-+++ CMakeLists.txt
-@@ -57,7 +57,7 @@ if(LIBREMIDI_HEADER_ONLY)
-   set(_private INTERFACE)
-   target_compile_definitions(libremidi ${_public} LIBREMIDI_HEADER_ONLY)
- else()
--  add_library(libremidi
-+  add_library(libremidi SHARED
-     include/libremidi/backends/alsa_seq/config.hpp
-     include/libremidi/backends/alsa_seq/helpers.hpp
-     include/libremidi/backends/alsa_seq/midi_in.hpp
diff --git a/audio/libremidi/files/patch-cmake_libremidi.tests.cmake b/audio/libremidi/files/patch-cmake_libremidi.tests.cmake
deleted file mode 100644
index 450318fd2f39..000000000000
--- a/audio/libremidi/files/patch-cmake_libremidi.tests.cmake
+++ /dev/null
@@ -1,17 +0,0 @@
---- cmake/libremidi.tests.cmake.orig	2023-10-02 17:31:54 UTC
-+++ cmake/libremidi.tests.cmake
-@@ -1,4 +1,4 @@
--
-+  if (FALSE)
-   include(FetchContent)
- 
-   FetchContent_Declare(
-@@ -8,6 +8,8 @@
-   )
- 
-   FetchContent_MakeAvailable(Catch2)
-+  endif()
-+  find_package(Catch2)
-   if(NOT TARGET Catch2::Catch2WithMain)
-     message(WARNING "libremidi: Catch2::Catch2WithMain target not found")
-     return()
diff --git a/audio/libremidi/pkg-plist b/audio/libremidi/pkg-plist
index 5a175932d6d2..eef2a8f57d77 100644
--- a/audio/libremidi/pkg-plist
+++ b/audio/libremidi/pkg-plist
@@ -87,6 +87,7 @@ 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/detail/ump_stream.hpp
 include/libremidi/error.hpp
 include/libremidi/input_configuration.hpp
 include/libremidi/libremidi.cpp
@@ -108,4 +109,4 @@ lib/cmake/libremidi/libremidi-config.cmake
 lib/cmake/libremidi/libremidi-targets-%%CMAKE_BUILD_TYPE%%.cmake
 lib/cmake/libremidi/libremidi-targets.cmake
 lib/liblibremidi.so
-lib/liblibremidi.so.4.3.0
+lib/liblibremidi.so.4.4.0