1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00
freebsd-ports/www/varnish6/Makefile
Mark Linimon 63a630fc27 Flags -Wno-unknown-warning-option -Wno-implicit-fallthrough are not
supported by base GCC, making build fail on GCC-based architectures.

This changes the location of the BAD_TESTS conditional.

PR:		233576
Submitted by:	Piotr Kubaj
Approved by:	portmgr (tier-2 blanket)
2018-12-02 02:37:29 +00:00

60 lines
1.4 KiB
Makefile

# $FreeBSD$
PORTNAME= varnish
PORTVERSION= 6.1.1
DISTVERSIONPREFIX= varnish-
PORTREVISION= 0
CATEGORIES= www
PKGNAMESUFFIX= 6
MAINTAINER= feld@FreeBSD.org
COMMENT= High-performance HTTP accelerator
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= rst2man:textproc/py-docutils \
${PYTHON_PKGNAMEPREFIX}sphinx>0:textproc/py-sphinx@${PY_FLAVOR}
LIB_DEPENDS= libpcre.so:devel/pcre
CONFLICTS= varnish-2.* varnish-3.* varnish4-4.* varnish5-5.*
USES= autoreconf cpe gmake libedit libtool ncurses pathfix \
pkgconfig python:2.7,build readline shebangfix
SHEBANG_FILES= lib/libvcc/*.py
CPE_VENDOR= varnish-cache
CFLAGS+= -I${LOCALBASE}/include
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --localstatedir=${PREFIX} --without-dot
USE_LDCONFIG= yes
INSTALL_TARGET= install-strip
TEST_TARGET= check
TEST_ARGS= TESTS_PARALLELISM=1
USE_GITHUB= yes
GH_ACCOUNT= varnishcache
GH_PROJECT= varnish-cache
USERS= varnish varnishlog
GROUPS= varnish
USE_RC_SUBR= varnishd varnishlog varnishncsa
.if defined(NO_INET6) || defined(WITHOUT_INET6)
BAD_TESTS+= r00832
EXTRA_PATCHES+= ${FILESDIR}/no-inet6.patch
.endif
OPTIONS_DEFINE= DOCS
.include <bsd.port.pre.mk>
post-patch:
.if defined(BAD_TESTS)
${RM} ${BAD_TESTS:C|.+|${WRKSRC}/bin/varnishtest/tests/\0.vtc|}
.endif
.if ${ARCH:Mmips*} || ${ARCH:Mpowerpc*} || ${ARCH} == sparc64
${REINPLACE_CMD} -e '/-Wno-unknown-warning-option -Wno-implicit-fallthrough/d' ${WRKSRC}/configure.ac
.endif
.include <bsd.port.post.mk>