# $OpenBSD: Makefile.template,v 1.77 2018/02/09 17:08:33 sthen Exp $

COMMENT =	portable, linkable version of unbound

V =		1.7.1
DISTNAME =	unbound-${V}
PKGNAME =	libunbound-${V}

SHARED_LIBS +=  unbound                   0.0 # 7.9

CATEGORIES =	net
HOMEPAGE =	https://www.unbound.net
MAINTAINER =	Thomas Frohwein <tfrohwein@fastmail.com>

# BSD-3-Clause
PERMIT_PACKAGE_CDROM =	Yes

WANTLIB += c crypto expat pthread ssl

MASTER_SITES =	https://www.unbound.net/downloads/

CONFIGURE_ENV =	ac_cv_prog_doxygen=false

SEPARATE_BUILD =	Yes
CONFIGURE_STYLE =	gnu

AUTOCONF_VERSION =	2.69
AUTOMAKE_VERSION =	1.15

SYSCONFDIR =	${BASESYSCONFDIR}/unbound

do-test:
	env -i ${ALL_TEST_ENV} ${MAKE_PROGRAM} ${ALL_TEST_FLAGS} \
		-C ${WRKBUILD} tests
	cd ${WRKSRC} && ${WRKBUILD}/unittest

.include <bsd.port.mk>
