git: 898554463d2c - main - sysutils/nut-devel: Update to the latest networkupstools/nut github commit

From: Cy Schubert <cy_at_FreeBSD.org>
Date: Sun, 28 Aug 2022 21:19:42 UTC
The branch main has been updated by cy:

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

commit 898554463d2ce554bc0531c31ddfaf898475a932
Author:     Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2022-08-28 17:40:51 +0000
Commit:     Cy Schubert <cy@FreeBSD.org>
CommitDate: 2022-08-28 21:16:41 +0000

    sysutils/nut-devel: Update to the latest networkupstools/nut github commit
    
    In addition to this update, the nutworkupstools upstream's check for
    ltdl.h now fails on llvm as of upstream commit 17eeef008 with the
    following error during configure:
    
    conftest.c:240:10: fatal error: 'ltdl.h' file not found
             ^~~~~~~~
    1 error generated.
    
    They put the correct arguments into the CLFAGS environment variable however
    llvm does not see the environment variable whereas gcc does. Adding USE_GCC
    works around this problem for now.
---
 sysutils/nut-devel/Makefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/sysutils/nut-devel/Makefile b/sysutils/nut-devel/Makefile
index 416c610b2a32..391a5d9acc1f 100644
--- a/sysutils/nut-devel/Makefile
+++ b/sysutils/nut-devel/Makefile
@@ -21,6 +21,7 @@ GH_TAGNAME=	2ce9dfa4a
 NUT_COMMIT_DATE=	2022.08.25
 
 MAKE_JOBS_UNSAFE=	yes
+USE_GCC=	yes
 GNU_CONFIGURE=	yes
 USES=		autoreconf:build compiler:c11 gmake libtool pkgconfig python
 USE_LDCONFIG=	yes
@@ -74,7 +75,8 @@ CONFIGURE_ARGS=	--sysconfdir=${PREFIX}/etc/nut \
 		--with-python=${PYTHON_CMD} \
 		--without-python2 \
 		--with-python3=${PYTHON_CMD} \
-		--with-dev
+		--with-dev \
+		--with-ltdl --with-nut-scanner
 
 CFLAGS+=	-I${LOCALBASE}/include -L${LOCALBASE}/lib
 LIB_DEPENDS+=	libltdl.so:devel/libltdl