aboutsummaryrefslogtreecommitdiff
path: root/devel/got/Makefile
blob: 3ea370244689aeda840be9528d450920fc791e50 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
PORTNAME=	got
DISTVERSION=	0.98
CATEGORIES=	devel
MASTER_SITES=	https://gameoftrees.org/releases/

MAINTAINER=	naddy@FreeBSD.org
COMMENT=	Game of Trees version control system
WWW=		https://gameoftrees.org

LICENSE=	ISCL
LICENSE_FILE=	${WRKSRC}/LICENCE

USES=		localbase:ldflags uidfix

CONFLICTS_INSTALL=	p5-App-GitGot

# Insert #include "openbsd-compat.h" into each source file,
# after the <...> includes and before the "..." ones.
n=		${.newline}
post-extract:
	@${FIND} ${WRKSRC} -name '*.[cy]' -exec \
	    ${REINPLACE_CMD} '1,/^#include "/{ \
	    /^#include "/i\$n#include "openbsd-compat.h"\$n$n}' \
	    {} +
	${CP} -R ${FILESDIR}/openbsd-compat ${WRKSRC}

# The regression test suite requires:
#  installed got
#  installed git
#  installed perl and HTTP::Daemon
#  ssh to 127.0.0.1
regress:
	@(cd ${WRKSRC}/regress && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} regress)

.include <bsd.port.pre.mk>

# When using LibreSSL use its own libtls, but when using OpenSSL
# use libtls from libretls.
.if ${SSL_DEFAULT:Mlibressl*}
#	/* empty */
.else
LIB_DEPENDS+=	libtls.so:security/libretls
.endif # SSL_DEFAULT

.include <bsd.port.post.mk>