Skip to content

Commit

Permalink
audio/libmysofa: Update to 1.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
BSDKaffee committed Oct 17, 2023
1 parent 214c2f6 commit 1388ecf
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 6 deletions.
4 changes: 2 additions & 2 deletions audio/libmysofa/Makefile
@@ -1,6 +1,6 @@
PORTNAME= libmysofa
DISTVERSIONPREFIX= v
DISTVERSION= 1.3.1
DISTVERSION= 1.3.2
CATEGORIES= audio

MAINTAINER= jhale@FreeBSD.org
Expand All @@ -12,7 +12,7 @@ LICENSE_FILE= ${WRKSRC}/LICENSE

TEST_DEPENDS= node:www/node

USES= cmake cpe
USES= cmake cpe pathfix
USE_LDCONFIG= yes

CPE_VENDOR= symonics
Expand Down
6 changes: 3 additions & 3 deletions audio/libmysofa/distinfo
@@ -1,3 +1,3 @@
TIMESTAMP = 1665316926
SHA256 (hoene-libmysofa-v1.3.1_GH0.tar.gz) = a8a8cbf7b0b2508a6932278799b9bf5c63d833d9e7d651aea4622f3bc6b992aa
SIZE (hoene-libmysofa-v1.3.1_GH0.tar.gz) = 208117352
TIMESTAMP = 1697487219
SHA256 (hoene-libmysofa-v1.3.2_GH0.tar.gz) = 6c5224562895977e87698a64cb7031361803d136057bba35ed4979b69ab4ba76
SIZE (hoene-libmysofa-v1.3.2_GH0.tar.gz) = 208753292
15 changes: 15 additions & 0 deletions audio/libmysofa/files/patch-src_CMakeLists.txt
@@ -0,0 +1,15 @@
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
30 changes: 30 additions & 0 deletions audio/libmysofa/files/patch-src_hrtf_portable__endian.h
@@ -0,0 +1,30 @@
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__)

6 changes: 5 additions & 1 deletion audio/libmysofa/pkg-plist
@@ -1,9 +1,13 @@
%%TEST%%bin/mysofa2json
include/mysofa.h
lib/cmake/mysofa/mysofaConfig.cmake
lib/cmake/mysofa/mysofaConfigVersion.cmake
lib/cmake/mysofa/mysofaTargets-%%CMAKE_BUILD_TYPE%%.cmake
lib/cmake/mysofa/mysofaTargets.cmake
%%STATIC%%lib/libmysofa.a
lib/libmysofa.so
lib/libmysofa.so.1
lib/libmysofa.so.1.3.0
lib/libmysofa.so.1.3.2
libdata/pkgconfig/libmysofa.pc
%%DATADIR%%/MIT_KEMAR_normal_pinna.sofa
%%DATADIR%%/default.sofa

0 comments on commit 1388ecf

Please sign in to comment.