git: a640fdbaf2c3 - main - audio/libmysofa: Update to 1.3.3

From: Jason E. Hale <jhale_at_FreeBSD.org>
Date: Tue, 22 Oct 2024 05:36:01 UTC
The branch main has been updated by jhale:

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

commit a640fdbaf2c35a5d3115038acdbc1546b63f39c7
Author:     Jason E. Hale <jhale@FreeBSD.org>
AuthorDate: 2024-10-21 03:03:49 +0000
Commit:     Jason E. Hale <jhale@FreeBSD.org>
CommitDate: 2024-10-22 05:35:55 +0000

    audio/libmysofa: Update to 1.3.3
    
    https://github.com/hoene/libmysofa/releases/tag/v1.3.3
---
 audio/libmysofa/Makefile                           |  2 +-
 audio/libmysofa/distinfo                           |  6 ++---
 audio/libmysofa/files/extrapatch-tests_compare.sh  | 11 ++++----
 .../files/extrapatch-tests_compareIgnoreNew.sh     | 11 ++++----
 audio/libmysofa/files/patch-src_CMakeLists.txt     | 15 -----------
 .../files/patch-src_hrtf_portable__endian.h        | 30 ----------------------
 audio/libmysofa/pkg-plist                          |  3 ++-
 7 files changed, 18 insertions(+), 60 deletions(-)

diff --git a/audio/libmysofa/Makefile b/audio/libmysofa/Makefile
index 716b11100250..b39b1abfb624 100644
--- a/audio/libmysofa/Makefile
+++ b/audio/libmysofa/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	libmysofa
 DISTVERSIONPREFIX=	v
-DISTVERSION=	1.3.2
+DISTVERSION=	1.3.3
 CATEGORIES=	audio
 
 MAINTAINER=	jhale@FreeBSD.org
diff --git a/audio/libmysofa/distinfo b/audio/libmysofa/distinfo
index c412638cc352..0a7ba7bfa0b8 100644
--- a/audio/libmysofa/distinfo
+++ b/audio/libmysofa/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1697487219
-SHA256 (hoene-libmysofa-v1.3.2_GH0.tar.gz) = 6c5224562895977e87698a64cb7031361803d136057bba35ed4979b69ab4ba76
-SIZE (hoene-libmysofa-v1.3.2_GH0.tar.gz) = 208753292
+TIMESTAMP = 1729476519
+SHA256 (hoene-libmysofa-v1.3.3_GH0.tar.gz) = a15f7236a2b492f8d8da69f6c71b5bde1ef1bac0ef428b94dfca1cabcb24c84f
+SIZE (hoene-libmysofa-v1.3.3_GH0.tar.gz) = 208753723
diff --git a/audio/libmysofa/files/extrapatch-tests_compare.sh b/audio/libmysofa/files/extrapatch-tests_compare.sh
index c701ea6dd6fa..27c52a172880 100644
--- a/audio/libmysofa/files/extrapatch-tests_compare.sh
+++ b/audio/libmysofa/files/extrapatch-tests_compare.sh
@@ -1,13 +1,14 @@
 Undo bashism added upstream in a5a3562. The built-in 'command' command of
 sh(1) does not take multiple arguments.
---- tests/compare.sh.orig	2022-02-14 10:05:41 UTC
+
+--- tests/compare.sh.orig	2024-10-19 19:02:44 UTC
 +++ tests/compare.sh
-@@ -1,7 +1,7 @@
+@@ -1,7 +1,7 @@ SCRIPTDIR=${0%/*}
  #!/bin/sh
  
  SCRIPTDIR=${0%/*}
 -NODEJS=$(command -v node nodejs false | head -1)
 +NODEJS=$(which node nodejs false | head -1)
- 
- ${MYSOFA2JSON:-${SCRIPTDIR}/../build/src/mysofa2json} -c -s "$1".sofa >tmp1.json 2>tmp1.txt
- 
+ TMP1=`mktemp -p . tmp1-XXXXXXXX.json`
+ TMP2=`mktemp -p . tmp2-XXXXXXXX.txt`
+ TMP3=`mktemp -p . tmp3-XXXXXXXX.json`
diff --git a/audio/libmysofa/files/extrapatch-tests_compareIgnoreNew.sh b/audio/libmysofa/files/extrapatch-tests_compareIgnoreNew.sh
index 8b5d9ea74c31..03c909aae978 100644
--- a/audio/libmysofa/files/extrapatch-tests_compareIgnoreNew.sh
+++ b/audio/libmysofa/files/extrapatch-tests_compareIgnoreNew.sh
@@ -1,13 +1,14 @@
 Undo bashism added upstream in a5a3562. The built-in 'command' command of
 sh(1) does not take multiple arguments.
---- tests/compareIgnoreNew.sh.orig	2022-02-14 10:05:54 UTC
+
+--- tests/compareIgnoreNew.sh.orig	2024-10-19 19:02:44 UTC
 +++ tests/compareIgnoreNew.sh
-@@ -1,7 +1,7 @@
+@@ -1,7 +1,7 @@ SCRIPTDIR=${0%/*}
  #!/bin/sh
  
  SCRIPTDIR=${0%/*}
 -NODEJS=$(command -v node nodejs false | head -1)
 +NODEJS=$(which node nodejs false | head -1)
- 
- ${MYSOFA2JSON:-${SCRIPTDIR}/../build/src/mysofa2json} -c -s "$1".sofa >tmp1.json 2>tmp1.txt
- 
+ TMP1=`mktemp -p . tmp1-XXXXXXXX.json`
+ TMP2=`mktemp -p . tmp2-XXXXXXXX.txt`
+ TMP3=`mktemp -p . tmp3-XXXXXXXX.json`
diff --git a/audio/libmysofa/files/patch-src_CMakeLists.txt b/audio/libmysofa/files/patch-src_CMakeLists.txt
deleted file mode 100644
index b621350810c4..000000000000
--- a/audio/libmysofa/files/patch-src_CMakeLists.txt
+++ /dev/null
@@ -1,15 +0,0 @@
-Install header if STATIC option is disabled.
-
-https://github.com/hoene/libmysofa/pull/214
-
---- src/CMakeLists.txt.orig	2023-10-15 10:30:14 UTC
-+++ src/CMakeLists.txt
-@@ -127,6 +127,8 @@ if(BUILD_SHARED_LIBS)
-   # with the mysofa-static library.
-   set_target_properties(mysofa-shared
-                         PROPERTIES ARCHIVE_OUTPUT_NAME mysofa_shared)
-+  set_target_properties(mysofa-shared
-+                        PROPERTIES PUBLIC_HEADER "${public-headers}")
- 
-   set_property(
-     TARGET mysofa-shared
diff --git a/audio/libmysofa/files/patch-src_hrtf_portable__endian.h b/audio/libmysofa/files/patch-src_hrtf_portable__endian.h
deleted file mode 100644
index 1d93c4797c74..000000000000
--- a/audio/libmysofa/files/patch-src_hrtf_portable__endian.h
+++ /dev/null
@@ -1,30 +0,0 @@
-Fix linking on FreeBSD and DragonFly.
-
-https://github.com/hoene/libmysofa/pull/213
-
---- src/hrtf/portable_endian.h.orig	2023-10-17 18:48:34 UTC
-+++ src/hrtf/portable_endian.h
-@@ -41,22 +41,9 @@
- #	define __LITTLE_ENDIAN LITTLE_ENDIAN
- #	define __PDP_ENDIAN    PDP_ENDIAN
- 
--#elif defined(__OpenBSD__)
-+#elif defined(__DragonFly__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
- 
- #	include <sys/endian.h>
--
--#elif defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__)
--
--#	include <sys/endian.h>
--
--#	define be16toh(x) betoh16(x)
--#	define le16toh(x) letoh16(x)
--
--#	define be32toh(x) betoh32(x)
--#	define le32toh(x) letoh32(x)
--
--#	define be64toh(x) betoh64(x)
--#	define le64toh(x) letoh64(x)
- 
- #elif defined(__WINDOWS__)
- 
diff --git a/audio/libmysofa/pkg-plist b/audio/libmysofa/pkg-plist
index b48de10e113a..584ca67b6aef 100644
--- a/audio/libmysofa/pkg-plist
+++ b/audio/libmysofa/pkg-plist
@@ -1,5 +1,6 @@
 %%TEST%%bin/mysofa2json
 include/mysofa.h
+include/mysofa_export.h
 lib/cmake/mysofa/mysofaConfig.cmake
 lib/cmake/mysofa/mysofaConfigVersion.cmake
 lib/cmake/mysofa/mysofaTargets-%%CMAKE_BUILD_TYPE%%.cmake
@@ -7,7 +8,7 @@ lib/cmake/mysofa/mysofaTargets.cmake
 %%STATIC%%lib/libmysofa.a
 lib/libmysofa.so
 lib/libmysofa.so.1
-lib/libmysofa.so.1.3.2
+lib/libmysofa.so.1.3.3
 libdata/pkgconfig/libmysofa.pc
 %%DATADIR%%/MIT_KEMAR_normal_pinna.sofa
 %%DATADIR%%/default.sofa