freebsd-ports/www/varnish7/Makefile
Dimitry Andric 986c668ac6 www/varnish7: fix build with clang 15
During an exp-run for llvm 15 (see bug 265425), it turned out that
www/varnish7 failed to build with clang 15:

  adler32.c:189:15: error: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype]
  uLong ZEXPORT adler32(adler, buf, len)
                ^

This is because varnish needlessly builds with -Werror. Turn it off, so
the warnings can simply be ignored.

PR:		268814
Approved by:	dbaio (maintainer)
MFH:		2023Q1
2023-01-08 12:01:11 +01:00

54 lines
1.3 KiB
Makefile

PORTNAME= varnish
DISTVERSION= 7.2.1
CATEGORIES= www
MASTER_SITES= https://varnish-cache.org/downloads/
PKGNAMESUFFIX= 7
MAINTAINER= dbaio@FreeBSD.org
COMMENT= High-performance HTTP accelerator
WWW= https://varnish-cache.org/
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= rst2man:textproc/py-docutils@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}sphinx>=0,1:textproc/py-sphinx@${PY_FLAVOR}
LIB_DEPENDS= libpcre2-8.so:devel/pcre2
USES= cpe libedit libtool localbase ncurses pathfix \
pkgconfig python:3.6+,build shebangfix tar:tgz
CPE_VENDOR= varnish-cache
CPE_PRODUCT= varnish_cache
GNU_CONFIGURE= yes
SHEBANG_FILES= lib/libvcc/*.py lib/libvsc/*.py
USE_LDCONFIG= yes
USE_RC_SUBR= varnishd varnishlog varnishncsa
CONFLICTS= varnish4 varnish6
SUB_FILES= pkg-message
USERS= varnish varnishlog
GROUPS= varnish
INSTALL_TARGET= install-strip
TEST_TARGET= check
TEST_ARGS= TESTS_PARALLELISM=1
CONFIGURE_ARGS= --localstatedir=${PREFIX} --without-dot
# Needed for clang 15 (#268814)
CONFIGURE_ENV+= ax_cv_check_cflags___Werror=no
.if defined(NO_INET6) || defined(WITHOUT_INET6)
BAD_TESTS= r00832
EXTRA_PATCHES= ${FILESDIR}/no-inet6.patch
.endif
OPTIONS_DEFINE= DOCS
post-patch:
.if defined(BAD_TESTS)
${RM} ${BAD_TESTS:C|.+|${WRKSRC}/bin/varnishtest/tests/\0.vtc|}
.endif
.include <bsd.port.mk>