Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Dec 2022 11:26:11 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: c1f19973e4bf - main - audio/bespokesynth: fix build on powerpc64le
Message-ID:  <202212241126.2BOBQBqE027651@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=c1f19973e4bf7fb96b277e746a96a1e1c0d9ec95

commit c1f19973e4bf7fb96b277e746a96a1e1c0d9ec95
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2022-12-24 11:26:06 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2022-12-24 11:26:06 +0000

    audio/bespokesynth: fix build on powerpc64le
    
    ld: error: undefined symbol: juce::pnglibNamespace::png_init_filter_functions_vsx(juce::pnglibNamespace::png_struct_def*, unsigned int)
    >>> referenced by juce_graphics.cpp
    >>>               CMakeFiles/BespokeSynth.dir/usr/local/include/JUCE-7.0.2/modules/juce_graphics/juce_graphics.cpp.o:(juce::pnglibNamespace::png_read_row(juce::pnglibNamespace::png_struct_def*, unsigned char*, unsigned char*))
    
    Using system png is no-op, since it's already installed by reverse dependencies.
---
 audio/bespokesynth/Makefile | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/audio/bespokesynth/Makefile b/audio/bespokesynth/Makefile
index 2575a56dcbf9..827484519be0 100644
--- a/audio/bespokesynth/Makefile
+++ b/audio/bespokesynth/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	bespokesynth
 DISTVERSION=	1.1.0-20221006
+PORTREVISION=	1
 CATEGORIES=	audio
 
 MAINTAINER=	yuri@FreeBSD.org
@@ -14,7 +15,8 @@ BUILD_DEPENDS=	juce>0:devel/juce \
 LIB_DEPENDS=	libasound.so:audio/alsa-lib \
 		libfreetype.so:print/freetype2 \
 		libjack.so:audio/jack \
-		libjsoncpp.so:devel/jsoncpp
+		libjsoncpp.so:devel/jsoncpp \
+		libpng16.so:graphics/png
 
 USES=		cmake:noninja desktop-file-utils gl localbase:ldflags pkgconfig python
 USE_GL=		gl
@@ -36,4 +38,7 @@ CMAKE_ON=	BESPOKE_SYSTEM_JUCE \
 		BESPOKE_SYSTEM_PYBIND11 \
 		BESPOKE_SYSTEM_JSONCPP
 
+CXXFLAGS+=	-DJUCE_INCLUDE_PNGLIB_CODE=0
+LDFLAGS+=	-lpng
+
 .include <bsd.port.mk>



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