git: 79c810b46d9c - 2022Q3 - audio/dexed: Fix build on powerpc64le

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Tue, 26 Jul 2022 21:38:08 UTC
The branch 2022Q3 has been updated by yuri:

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

commit 79c810b46d9c0d6e91883568533f57183b359f62
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2022-07-26 21:36:41 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-07-26 21:38:05 +0000

    audio/dexed: Fix build on powerpc64le
    
    PR:             265446
    (cherry picked from commit 58b51f941282911e9e677499a0e0925c89c33905)
---
 audio/dexed/Makefile | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/audio/dexed/Makefile b/audio/dexed/Makefile
index 9321a2f48517..38f0181ea5dd 100644
--- a/audio/dexed/Makefile
+++ b/audio/dexed/Makefile
@@ -2,7 +2,7 @@ PORTNAME=	dexed
 DISTVERSIONPREFIX=	v
 DISTVERSION=	0.9.6-16
 DISTVERSIONSUFFIX=	-g1df9a58
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	audio
 PKGNAMESUFFIX=	-synth
 
@@ -18,9 +18,10 @@ BUILD_DEPENDS=	libX11>0:x11/libX11 \
 		libXrandr>0:x11/libXrandr
 LIB_DEPENDS=	libfreetype.so:print/freetype2 \
 		libjack.so:audio/jack \
+		libpng16.so:graphics/png \
 		libasound.so:audio/alsa-lib # see https://github.com/asb2m10/dexed/issues/343 about the ALSA use
 
-USES=		cmake dos2unix localbase pkgconfig
+USES=		cmake dos2unix localbase:ldflags pkgconfig
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	asb2m10
@@ -48,6 +49,9 @@ VST3_BUILD_DEPENDS=	vst3sdk>0:audio/vst3sdk
 VST3_CXXFLAGS=		-DJUCE_CUSTOM_VST3_SDK=1 -fPIC
 VST3_PLIST_FILES=	lib/vst3/Dexed.so
 
+CXXFLAGS+=	-DJUCE_INCLUDE_PNGLIB_CODE=0 # to fix build on powerpc64le, see bug#265446, https://github.com/juce-framework/JUCE/issues/1094
+LDFLAGS+=	-lpng16
+
 PORTSCOUT=	skipv:nightly
 
 post-patch-VST3-off: