www/tntnet: Fix build with llvm16

- Utilize USES=localbase
- Pet portclippy

Approved by:	portmgr (blanket)
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Muhammad Moinur Rahman 2023-08-02 19:10:24 +02:00
parent d9b3e6b67a
commit fecf23dd72

View file

@ -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