Skip to content

Commit

Permalink
irc/scrollz: Fix build with llvm16
Browse files Browse the repository at this point in the history
- Pet portclippy

Sponsored by:	The FreeBSD Foundation
  • Loading branch information
5u623l20 committed Jul 21, 2023
1 parent 414e761 commit 82403f1
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions irc/scrollz/Makefile
Expand Up @@ -16,23 +16,25 @@ LICENSE_FILE= ${WRKSRC}/COPYRIGHT

USES= gmake iconv ncurses
USE_GITHUB= yes

GNU_CONFIGURE= yes

DATADIR= ${PREFIX}/share/${PORTNAME:tl}

PLIST_SUB= SCROLLZ_VER="${PORTVERSION}"

OPTIONS_DEFINE= IPV6 REGEX UTF8
OPTIONS_DEFAULT= OPENSSL REGEX UTF8
OPTIONS_RADIO= SSL
OPTIONS_RADIO_SSL= GNUTLS OPENSSL

IPV6_CONFIGURE_ENABLE= ipv6
GNUTLS_LIB_DEPENDS= libgnutls.so:security/gnutls
GNUTLS_USES= pkgconfig
GNUTLS_CONFIGURE_ON= --with-ssl
REGEX_CONFIGURE_ENABLE= regexp
IPV6_CONFIGURE_ENABLE= ipv6
OPENSSL_USES= ssl
OPENSSL_CONFIGURE_ON= --with-openssl=${OPENSSLBASE}
REGEX_CONFIGURE_ENABLE= regexp
UTF8_CONFIGURE_ENABLE= utf8

.include <bsd.port.pre.mk>
Expand All @@ -41,6 +43,10 @@ UTF8_CONFIGURE_ENABLE= utf8
CFLAGS+= -Wno-error=int-conversion
.endif

.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
CFLAGS+= -Wno-error=incompatible-function-pointer-types
.endif

.if !empty(ICONV_LIB)
CONFIGURE_ENV+=ac_cv_func_iconv_open=yes
.endif
Expand Down

0 comments on commit 82403f1

Please sign in to comment.