aboutsummaryrefslogtreecommitdiff
path: root/devel/gllvm/Makefile
blob: 65f6030d358be5aa300ef2b58fa1af2413c62e4e (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
PORTNAME=	gllvm
DISTVERSIONPREFIX=	v
DISTVERSION=	1.3.1
PORTREVISION=	17
CATEGORIES=	devel

MAINTAINER=	arrowd@FreeBSD.org
COMMENT=	Whole Program LLVM: wllvm ported to Go
WWW=		https://github.com/SRI-CSL/gllvm

LICENSE=	BSD3CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE

USES=		go

USE_GITHUB=	yes
GH_ACCOUNT=	SRI-CSL

GO_PKGNAME=	github.com/SRI-CSL/gllvm
GO_TARGET=	./cmd/gclang++ \
		./cmd/gclang \
		./cmd/get-bc \
		./cmd/gsanity-check

PLIST_FILES=	${GO_TARGET:C/.\/cmd/bin/}

PORTDOCS=	README.md
PORTEXAMPLES=	*

OPTIONS_DEFINE=	DOCS EXAMPLES

post-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}

post-install-EXAMPLES-on:
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
	cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}

.include <bsd.port.mk>