05f6c00d36
gllvm provides tools for building whole-program (or whole-library) LLVM bitcode files from an unmodified C or C++ source package. It is a drop-in replacement for wllvm, that builds the bitcode in parallel, and is faster. WWW: https://github.com/SRI-CSL/gllvm Approved by: tz (mentor) Differential Revision: https://reviews.freebsd.org/D21780
40 lines
780 B
Makefile
40 lines
780 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= gllvm
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 1.2.4
|
|
CATEGORIES= devel
|
|
|
|
MAINTAINER= dmgk@FreeBSD.org
|
|
COMMENT= Whole Program LLVM: wllvm ported to Go
|
|
|
|
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>
|