COMMENT-main =		game of trees version control system
COMMENT-web =		game of trees repository cgi script
COMMENT-webd =		game of trees repository fast-cgi server

V =			0.76
DISTNAME =		got-${V}
PKGNAME-web =		gotweb-${V}
PKGNAME-webd =		gotwebd-${V}
REVISION-webd =		0
CATEGORIES =		devel
HOMEPAGE =		https://gameoftrees.org
MAINTAINER =		Stefan Sperling <stsp@openbsd.org>

# ISC
PERMIT_PACKAGE =	Yes

MULTI_PACKAGES =	-main -web -webd

# uses pledge()
WANTLIB-main =		c curses m panel pthread util z
WANTLIB-web =		c util z
WANTLIB-webd =		c util z

MAKE_FLAGS =		CC="${CC}"
ALL_TARGET =		all web webd
INSTALL_TARGET =	install web-install webd-install

MASTER_SITES =		https://gameoftrees.org/releases/

DEBUG_PACKAGES =	${BUILD_PACKAGES}

BUILD_DEPENDS =		www/kcgi>=0.12.0

# some tests will fail without working non-interactive 'ssh 127.0.0.1'
TEST_IS_INTERACTIVE =	Yes
TEST_DEPENDS =		devel/git \
			${PKGPATH}=${V}

PREFIX-web =		${VARBASE}/www
PREFIX-webd =		${VARBASE}/www
TEST_TARGET =		regress
FAKE_FLAGS =		MANDIR=${PREFIX}/man/man CHROOT_DIR=${VARBASE}/www

.include <bsd.port.mk>
