git: a0bd454e760a - main - devel/fungw: respect CC, CFLAGS, LDFLAGS, WITH_DEBUG

From: Robert Clausecker <fuz_at_FreeBSD.org>
Date: Mon, 20 Feb 2023 23:37:37 UTC
The branch main has been updated by fuz:

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

commit a0bd454e760aa57f7ca5bd085f566df7443541b1
Author:     Robert Clausecker <fuz@fuz.su>
AuthorDate: 2022-07-21 06:11:11 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2023-02-20 23:36:31 +0000

    devel/fungw: respect CC, CFLAGS, LDFLAGS, WITH_DEBUG
    
    Approved by:    flo (mentor)
    Differential Revision: https://reviews.freebsd.org/D38678
---
 devel/fungw/Makefile | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/devel/fungw/Makefile b/devel/fungw/Makefile
index 2a237713d1d7..ab2ca5194f72 100644
--- a/devel/fungw/Makefile
+++ b/devel/fungw/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	fungw
 DISTVERSION=	1.2.1
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	devel
 MASTER_SITES=	http://www.repo.hu/projects/fungw/releases/
 
@@ -16,6 +16,11 @@ LIB_DEPENDS=	libgenht.so:devel/genht
 USES=		gmake tar:bz2
 USE_LDCONFIG=	yes
 HAS_CONFIGURE=	yes
+CONFIGURE_ARGS=	${WITH_DEBUG:D--debug} \
+		--CC=${CC} \
+		--CFLAGS='${CFLAGS}' \
+		--LDFLAGS='${LDFLAGS}'
+
 MAKE_ARGS+=	PREFIX=${PREFIX}
 BINARY_ALIAS=	python=${PYTHON_CMD:Ufalse}