From fecf23dd721ae0274a70ed1cff9b73145f5eb61c Mon Sep 17 00:00:00 2001 From: Muhammad Moinur Rahman Date: Wed, 2 Aug 2023 19:10:24 +0200 Subject: [PATCH] www/tntnet: Fix build with llvm16 - Utilize USES=localbase - Pet portclippy Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation --- www/tntnet/Makefile | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/www/tntnet/Makefile b/www/tntnet/Makefile index ef903d7a72a9..f1b64ebf9296 100644 --- a/www/tntnet/Makefile +++ b/www/tntnet/Makefile @@ -8,18 +8,21 @@ MAINTAINER= ports@FreeBSD.org COMMENT= Webapplicationserver for C++ WWW= https://www.tntnet.org/index.html -LIB_DEPENDS= libcxxtools.so:devel/cxxtools BUILD_DEPENDS= zip:archivers/zip +LIB_DEPENDS= libcxxtools.so:devel/cxxtools + +USES= cpe iconv libtool localbase:ldflags pathfix pkgconfig \ + shebangfix +USE_CXXSTD= c++14 -USES= cpe iconv libtool pathfix pkgconfig shebangfix SHEBANG_FILES= tntnet-conf2xml.pl -USE_CSTD= gnu89 -PATCH_STRIP= -p1 +#USE_CSTD= gnu89 + GNU_CONFIGURE= yes -CPPFLAGS+= -I${LOCALBASE}/include -LDFLAGS+= -L${LOCALBASE}/lib CONFIGURE_ARGS= --localstatedir=/var +PATCH_STRIP= -p1 + .if defined(WITH_GNUTLS) CONFIGURE_ARGS+= --with-ssl=gnutls LIB_DEPENDS+= libgnutls.so:security/gnutls