Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Aug 2023 22:26:05 GMT
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 6d70e99cc0ef - main - devel/juce: fix build on powerpc*
Message-ID:  <202308232226.37NMQ568005672@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by pkubaj:

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

commit 6d70e99cc0ef2383dea151621d47238a4691531b
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2023-08-23 22:24:23 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2023-08-23 22:24:23 +0000

    devel/juce: fix build on powerpc*
    
    /wrkdirs/usr/ports/devel/juce/work/JUCE-7.0.6/modules/juce_dsp/containers/juce_AudioBlock_test.cpp:32:34: error: no template named 'SIMDRegister'
    String& operator<< (String& str, SIMDRegister<SampleType>) { return str; }
---
 devel/juce/Makefile                                         |  3 ++-
 ...-modules_juce__dsp_containers_juce__AudioBlock__test.cpp | 13 +++++++++++++
 2 files changed, 15 insertions(+), 1 deletion(-)

diff --git a/devel/juce/Makefile b/devel/juce/Makefile
index 00e395124a56..408cc18da514 100644
--- a/devel/juce/Makefile
+++ b/devel/juce/Makefile
@@ -24,7 +24,8 @@ LIB_DEPENDS=	libasound.so:audio/alsa-lib \
 		libsysinfo.so:devel/libsysinfo
 
 USES=		cmake compiler:c++11-lang dos2unix gl gnome localbase:ldflags pkgconfig xorg
-DOS2UNIX_FILES=	modules/juce_core/juce_core.h
+DOS2UNIX_FILES=	modules/juce_core/juce_core.h \
+		modules/juce_dsp/containers/juce_AudioBlock_test.cpp
 USE_GNOME=	atk cairo gdkpixbuf2 glib20 gtk30 pango
 USE_GL=		gl
 USE_XORG=	x11 xcomposite xcursor xext xinerama xorgproto xrandr
diff --git a/devel/juce/files/patch-modules_juce__dsp_containers_juce__AudioBlock__test.cpp b/devel/juce/files/patch-modules_juce__dsp_containers_juce__AudioBlock__test.cpp
new file mode 100644
index 000000000000..0e1571f86135
--- /dev/null
+++ b/devel/juce/files/patch-modules_juce__dsp_containers_juce__AudioBlock__test.cpp
@@ -0,0 +1,13 @@
+--- modules/juce_dsp/containers/juce_AudioBlock_test.cpp.orig	2023-08-23 16:47:58 UTC
++++ modules/juce_dsp/containers/juce_AudioBlock_test.cpp
+@@ -28,8 +28,10 @@ namespace juce
+ namespace dsp
+ {
+ 
++#if JUCE_USE_SIMD
+ template <typename SampleType>
+ String& operator<< (String& str, SIMDRegister<SampleType>) { return str; }
++#endif
+ 
+ template <typename SampleType>
+ class AudioBlockUnitTests   : public UnitTest



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202308232226.37NMQ568005672>