While at it, add README explaining usage of the rc script OK and fixes jsing@, input from ajacoutot@
56 lines
1.3 KiB
Makefile
56 lines
1.3 KiB
Makefile
# $OpenBSD: Makefile,v 1.10 2016/08/21 14:29:06 czarkoff Exp $
|
|
|
|
COMMENT = various tools for the Go programming language
|
|
GH_ACCOUNT = golang
|
|
GH_PROJECT = tools
|
|
GH_COMMIT = 26c35b4dcf6dfcb924e26828ed9f4d028c5ce05a
|
|
DISTNAME = go-tools-1.7.20160815
|
|
CATEGORIES = devel
|
|
HOMEPAGE = https://godoc.org/golang.org/x/tools
|
|
|
|
MAINTAINER = Dmitrij D. Czarkoff <czarkoff@openbsd.org>
|
|
|
|
# 3-clause BSD
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
WANTLIB += c pthread
|
|
|
|
MODULES = lang/go
|
|
MODGO_ENV = PATH="${PORTPATH}"
|
|
|
|
BUILD_DEPENDS = net/go-net
|
|
RUN_DEPENDS = ${MODGO_RUN_DEPENDS}
|
|
|
|
GODOC_TARGET = golang.org/x/tools/cmd/godoc
|
|
|
|
_MAIN = golang.org/x/tools
|
|
_SUBPKGS = benchcmp \
|
|
bundle \
|
|
callgraph \
|
|
digraph \
|
|
eg \
|
|
fiximports \
|
|
godex \
|
|
goimports \
|
|
gomvpkg \
|
|
gorename \
|
|
gotype \
|
|
guru \
|
|
heapview \
|
|
html2article \
|
|
ssadump \
|
|
stress \
|
|
stringer
|
|
ALL_TARGET = ${_SUBPKGS:%=${_MAIN}/cmd/%}
|
|
WRKSRC = ${MODGO_WORKSPACE}/src/${_MAIN}
|
|
|
|
# godoc needs special handling - prior to Go 1.2, godoc was part of the base
|
|
# distribution and there is a remaining mapping that causes 'go install' to
|
|
# install godoc in $GOROOT/bin instead of $GOPATH/bin (golang.org/issue/6654).
|
|
do-build:
|
|
${MODGO_BUILD_TARGET}
|
|
${MODGO_CMD} build ${MODGO_FLAGS} -o ${MODGO_WORKSPACE}/bin/godoc \
|
|
${GODOC_TARGET}
|
|
|
|
.include <bsd.port.mk>
|