git: e3c4b9e6d47b - main - audio/ncmpcpp: Fix visualizer dependency

From: Daniel Engberg <diizzy_at_FreeBSD.org>
Date: Sun, 12 Feb 2023 09:15:25 UTC
The branch main has been updated by diizzy:

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

commit e3c4b9e6d47bc264db66736071ea82070a1f6909
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2023-02-12 08:55:12 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2023-02-12 08:55:17 +0000

    audio/ncmpcpp: Fix visualizer dependency
    
    fftw3 is only needed when visualizer is enabled
    
    PR:             269173
    Approved by:    portmgr (maintainer timeout, 2+ weeks)
---
 audio/ncmpcpp/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/audio/ncmpcpp/Makefile b/audio/ncmpcpp/Makefile
index b59122dc4066..041da310f466 100644
--- a/audio/ncmpcpp/Makefile
+++ b/audio/ncmpcpp/Makefile
@@ -12,7 +12,6 @@ LICENSE=	GPLv2+
 LICENSE_FILE=	${WRKSRC}/COPYING
 
 LIB_DEPENDS=	libmpdclient.so:audio/libmpdclient \
-		libfftw3.so:math/fftw3 \
 		libicuuc.so:devel/icu \
 		libboost_filesystem.so:devel/boost-libs \
 		libcurl.so:ftp/curl
@@ -39,8 +38,9 @@ CLOCK_CONFIGURE_ENABLE=	clock
 OUTPUTS_CONFIGURE_ENABLE=	outputs
 TAGLIB_LIB_DEPENDS=	libtag.so:audio/taglib
 TAGLIB_CONFIGURE_WITH=	taglib
-VISUALIZER_BUILD_DEPENDS=	${LOCALBASE}/include/fftw3.h:math/fftw3
+VISUALIZER_LIB_DEPENDS=		libfftw3.so:math/fftw3
 VISUALIZER_CONFIGURE_ENABLE=	visualizer
+VISUALIZER_CONFIGURE_WITH=	fftw
 
 post-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/src/ncmpcpp ${STAGEDIR}${PREFIX}/bin/