sthen 3cbe1c2f30 Reverse the polarity of MODPY_VERSION; default is now 3.x,
if a port needs 2.x then set MODPY_VERSION=${MODPY_DEFAULT_VERSION_2}.

This commit doesn't change any versions currently used; it may be that
some ports have MODPY_DEFAULT_VERSION_2 but don't require it, those
should be cleaned up in the course of updating ports where possible.

Python module ports providing py3-* packages should still use
FLAVOR=python3 so that we don't have a mixture of dependencies some
using ${MODPY_FLAVOR} and others not.
2021-02-23 19:39:08 +00:00

66 lines
1.7 KiB
Makefile

# $OpenBSD: Makefile,v 1.56 2021/02/23 19:39:49 sthen Exp $
COMMENT = high-performance HTTP accelerator
DISTNAME = varnish-6.5.1
REVISION = 0
CATEGORIES = www
SHARED_LIBS = varnishapi 3.0 # 2.5
HOMEPAGE = https://www.varnish-cache.org/
MAINTAINER = Klemens Nanni <kn@openbsd.org>, \
Gonzalo L. Rodriguez <gonzalo@openbsd.org>
# BSD
PERMIT_PACKAGE = Yes
MASTER_SITES = https://varnish-cache.org/_downloads/
EXTRACT_SUFX = .tgz
WANTLIB += c curses execinfo m pcre pthread readline
MODULES = lang/python
MODPY_RUNDEP = No
MODPY_ADJ_FILES = lib/libvcc/{vsc,vmod}tool.py
BUILD_DEPENDS = textproc/py-docutils${MODPY_FLAVOR} \
textproc/py-sphinx${MODPY_FLAVOR}
LIB_DEPENDS = devel/pcre
# The internal backtrace implementation fails to build with -Werror on arm/hppa
LIB_DEPENDS += devel/libexecinfo
USE_GMAKE = Yes
SEPARATE_BUILD = Yes
CONFIGURE_STYLE = autoreconf
AUTOCONF_VERSION = 2.69
AUTOMAKE_VERSION = 1.16
AUTORECONF = ./autogen.sh
CONFIGURE_ENV = CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib ${LDFLAGS}" \
PYTHON="${MODPY_BIN}"
CONFIGURE_ARGS = --docdir=${PREFIX}/share/examples/varnish \
--with-rst2man=rst2man${MODPY_BIN_SUFFIX} \
--with-sphinx-build=sphinx-build${MODPY_BIN_SUFFIX}
TEST_TARGET = check
.ifdef DEBUG
CONFIGURE_ARGS += --enable-debugging-symbols
.endif
# XXX ${WRKSRC}/doc/sphinx/Makefile.{am,in}
pre-build:
echo 'readlink -f "$$@"' >| ${WRKDIR}/bin/realpath
chmod +x ${WRKDIR}/bin/realpath
post-install:
${SUBST_PROGRAM} ${FILESDIR}/varnishreload ${PREFIX}/bin/varnishreload
${SUBST_MAN} ${FILESDIR}/varnishreload.1 ${PREFIX}/man/man1/varnishreload.1
rm -f ${PREFIX}/lib/varnish/{vmods,}/*.{a,la}
.include <bsd.port.mk>