Index: head/Mk/Uses/go.mk =================================================================== --- head/Mk/Uses/go.mk (nonexistent) +++ head/Mk/Uses/go.mk (revision 413776) @@ -0,0 +1,93 @@ +# $FreeBSD$ +# +# This file contains logic to ease porting of Go packages or binaries using +# the `go` command. +# +# Feature: go +# Usage: USES=go +# Valid ARGS: none +# +# You can set the following variables to control the process. +# +# GO_PKGNAME +# The name of the package. This is the directory that will be +# created in GOPATH/src and seen by the `go` command +# +# GO_TARGET +# The names of the package(s) to build +# +# CGO_CFLAGS +# Addional CFLAGS variables to be passed to the C compiler by the `go` +# command +# +# CGO_LDFLAGS +# Addional LDFLAGS variables to be passed to the C compiler by the `go` +# command +# +# MAINTAINER: jlaffaye@FreeBSD.org + +.if !defined(_INCLUDE_USES_GO_MK) +_INCLUDE_USES_GO_MK= yes + +.if ${ARCH} == "i386" +GOARCH= 386 +GOOBJ= 8 +.else +GOARCH= amd64 +GOOBJ= 6 +.endif + +# Settable variables +GO_PKGNAME?= ${PORTNAME} +GO_TARGET?= ${GO_PKGNAME} +CGO_CFLAGS+= -I${LOCALBASE}/include +CGO_LDFLAGS+= -L${LOCALBASE}/lib + +# Read-only variables +GO_CMD= ${LOCALBASE}/bin/go +LOCAL_GOPATH= ${LOCALBASE}/share/go +GO_LIBDIR= share/go/pkg/${OPSYS:tl}_${GOARCH} +GO_SRCDIR= share/go/src +GO_WRKSRC= ${GO_WRKDIR_SRC}/${GO_PKGNAME} +GO_WRKDIR_BIN= ${WRKDIR}/bin +GO_WRKDIR_SRC= ${WRKDIR}/src +GO_WRKDIR_PKG= ${WRKDIR}/pkg/${OPSYS:tl}_${GOARCH} + +BUILD_DEPENDS+= ${GO_CMD}:lang/go +GO_ENV+= GOPATH="${WRKDIR}:${LOCAL_GOPATH}" \ + CGO_CFLAGS="${CGO_CFLAGS}" \ + CGO_LDFLAGS="${CGO_LDFLAGS}" \ + GOBIN="" +PLIST_SUB+= GO_LIBDIR=${GO_LIBDIR} \ + GO_SRCDIR=${GO_SRCDIR} \ + GO_PKGNAME=${GO_PKGNAME} + +.if !target(post-extract) +post-extract: + @${MKDIR} ${GO_WRKSRC:H} + @${LN} -sf ${WRKSRC} ${GO_WRKSRC} +.endif + +.if !target(do-build) +do-build: + @(cd ${GO_WRKSRC}; ${SETENV} ${MAKE_ENV} ${GO_ENV} ${GO_CMD} install -v ${GO_TARGET}) +.endif + +.if !target(do-install) +do-install: +.for _TARGET in ${GO_TARGET} + @if [ -e "${GO_WRKDIR_PKG}/${_TARGET}.a" ]; then \ + _TARGET_LIBDIR="${STAGEDIR}/${PREFIX}/${GO_LIBDIR}/${_TARGET:H}"; \ + ${MKDIR} $${_TARGET_LIBDIR}; \ + ${INSTALL_DATA} ${GO_WRKDIR_PKG}/${_TARGET}.a $${_TARGET_LIBDIR}; \ + _TARGET_SRCDIR="${STAGEDIR}/${PREFIX}/${GO_SRCDIR}/${_TARGET}"; \ + ${MKDIR} $${_TARGET_SRCDIR}; \ + (cd ${GO_WRKDIR_SRC}/${_TARGET}/ && ${COPYTREE_SHARE} \* $${_TARGET_SRCDIR}); \ + fi; \ + if [ -e "${GO_WRKDIR_BIN}/${_TARGET:T}" ]; then \ + ${INSTALL_PROGRAM} ${GO_WRKDIR_BIN}/${_TARGET:T} ${STAGEDIR}/${LOCALBASE}/bin; \ + fi; +.endfor +.endif + +.endif Property changes on: head/Mk/Uses/go.mk ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/databases/godis/Makefile =================================================================== --- head/databases/godis/Makefile (revision 413775) +++ head/databases/godis/Makefile (revision 413776) @@ -1,20 +1,19 @@ # Created by: Grzegorz Blach # $FreeBSD$ PORTNAME= godis PORTVERSION= 20120405 PORTREVISION= 1 CATEGORIES= databases MASTER_SITES= LOCAL/jlaffaye MAINTAINER= ports@FreeBSD.org COMMENT= Redis client library written in Go +USES= go GO_PKGNAME= github.com/simonz05/${PORTNAME} pre-install: @${RM} ${WRKSRC}/fmt.sh -.include -.include "${PORTSDIR}/lang/go/files/bsd.go.mk" -.include +.include Index: head/databases/gomdb/Makefile =================================================================== --- head/databases/gomdb/Makefile (revision 413775) +++ head/databases/gomdb/Makefile (revision 413776) @@ -1,36 +1,35 @@ # $FreeBSD$ PORTNAME= gomdb PORTVERSION= 20140824 CATEGORIES= databases MAINTAINER= cheffo@freebsd-bg.org COMMENT= Go wrapper for LMDB - OpenLDAP Lightning Memory-Mapped Database LICENSE= BSD3CLAUSE BUILD_DEPENDS= go:lang/go ONLY_FOR_ARCHS= i386 amd64 -USES= compiler +USES= compiler go USE_GITHUB= yes GH_ACCOUNT= szferi GH_TAGNAME= 6bcb5a .include #Build fails on FreeBSD10+ if value of "CC" is not set to "clang" (checked by configure) .if ${COMPILER_TYPE} == clang CC= clang .else USE_GCC= yes .endif CONFIGURE_ENV+= CC=${CC} GO_ENV+= ${CONFIGURE_ENV} -.include "${PORTSDIR}/lang/go/files/bsd.go.mk" .include Index: head/databases/gosqlite3/Makefile =================================================================== --- head/databases/gosqlite3/Makefile (revision 413775) +++ head/databases/gosqlite3/Makefile (revision 413776) @@ -1,24 +1,25 @@ # Created by: Zhihao Yuan # $FreeBSD$ PORTNAME= gosqlite3 PORTVERSION= 20120330 PORTREVISION= 2 CATEGORIES= databases MASTER_SITES= LOCAL/jlaffaye MAINTAINER= lichray@gmail.com COMMENT= Go interface for SQLite3 -USES= compiler +USES= compiler go LIB_DEPENDS+= libsqlite3.so:databases/sqlite3 GO_PKGNAME= github.com/kuroneko/${PORTNAME} .include -.include "${PORTSDIR}/lang/go/files/bsd.go.mk" + .if ${COMPILER_TYPE} == clang && ${CC} == cc CC= clang .endif + .include Index: head/databases/levigo/Makefile =================================================================== --- head/databases/levigo/Makefile (revision 413775) +++ head/databases/levigo/Makefile (revision 413776) @@ -1,39 +1,38 @@ # $FreeBSD$ PORTNAME= levigo PORTVERSION= 20150216 CATEGORIES= databases MAINTAINER= cheffo@freebsd-bg.org COMMENT= Levigo is a Go wrapper for LevelDB LICENSE= MIT BUILD_DEPENDS= go:lang/go LIB_DEPENDS= libleveldb.so:databases/leveldb ONLY_FOR_ARCHS= i386 amd64 -USES= compiler +USES= compiler go USE_GITHUB= yes GH_ACCOUNT= jmhodges GH_TAGNAME= 1ddad808d4 .include # Build fails on FreeBSD10+ if value of "CC" is not set to "clang" # (checked by configure) .if ${COMPILER_TYPE} == clang CC= clang .else USE_GCC= yes .endif CONFIGURE_ENV+= CC=${CC} \ CXX=${CXX} GO_ENV+= ${CONFIGURE_ENV} -.include "${PORTSDIR}/lang/go/files/bsd.go.mk" .include Index: head/databases/redigo/Makefile =================================================================== --- head/databases/redigo/Makefile (revision 413775) +++ head/databases/redigo/Makefile (revision 413776) @@ -1,17 +1,16 @@ # Created by: Grzegorz Blach # $FreeBSD$ PORTNAME= redigo PORTVERSION= 20140714 CATEGORIES= databases MASTER_SITES= LOCAL/gblach/ MAINTAINER= ports@FreeBSD.org COMMENT= Go client for the Redis database WRKSRC= ${WRKDIR}/${DISTNAME}/redis +USES= go GO_PKGNAME= github.com/garyburd/${PORTNAME}/redis -.include -.include "${PORTSDIR}/lang/go/files/bsd.go.mk" -.include +.include Index: head/devel/gb/Makefile =================================================================== --- head/devel/gb/Makefile (revision 413775) +++ head/devel/gb/Makefile (revision 413776) @@ -1,33 +1,32 @@ # $FreeBSD$ PORTNAME= gb PORTVERSION= 0.4.0 DISTVERSIONPREFIX= v CATEGORIES= devel MAINTAINER= swills@FreeBSD.org COMMENT= Project based build tool for Go LICENSE= MIT BUILD_DEPENDS= ${LOCALBASE}/bin/go:lang/go +USES= go USE_GITHUB= yes GH_ACCOUNT= constabulary PLIST_FILES= bin/gb bin/gb-vendor PORTDOCS= README.md STRIP= # stripping can break go binaries GO_PKGNAME= github.com/${GH_ACCOUNT}/${GH_PROJECT} GO_TARGET= ./... do-install: ${INSTALL_PROGRAM} ${GO_WRKDIR_BIN}/* ${STAGEDIR}/${LOCALBASE}/bin ${MKDIR} ${STAGEDIR}${DOCSDIR} ( cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/ ; ) -.include -.include "${PORTSDIR}/lang/go/files/bsd.go.mk" -.include +.include Index: head/devel/git-lfs/Makefile =================================================================== --- head/devel/git-lfs/Makefile (revision 413775) +++ head/devel/git-lfs/Makefile (revision 413776) @@ -1,25 +1,24 @@ # $FreeBSD$ PORTNAME= git-lfs PORTVERSION= 1.1.0 DISTVERSIONPREFIX= v CATEGORIES= devel MASTER_SITES= GH GHC PKGNAMEPREFIX= go- MAINTAINER= kuriyama@FreeBSD.org COMMENT= Git extension for versioning large files LICENSE= MIT BROKEN= fails to build +USES= go USE_GITHUB= yes GH_ACCOUNT= github PLIST_FILES= bin/git-lfs GO_PKGNAME= github.com/${GH_ACCOUNT}/${PORTNAME} -.include -.include "${PORTSDIR}/lang/go/files/bsd.go.mk" -.include +.include Index: head/devel/go-btree/Makefile =================================================================== --- head/devel/go-btree/Makefile (revision 413775) +++ head/devel/go-btree/Makefile (revision 413776) @@ -1,23 +1,22 @@ # Created by: Akinori MUSHA aka knu # $FreeBSD$ PORTNAME= btree PORTVERSION= 0.0.0.20150414 CATEGORIES= devel PKGNAMEPREFIX= go- MAINTAINER= knu@FreeBSD.org COMMENT= BTree implementation for Go LICENSE= APACHE20 +USES= go USE_GITHUB= yes GH_ACCOUNT= google GH_PROJECT= ${PORTNAME} GH_TAGNAME= cc6329d GO_PKGNAME= github.com/${GH_ACCOUNT}/${GH_PROJECT} -.include -.include "${PORTSDIR}/lang/go/files/bsd.go.mk" -.include +.include Index: head/devel/go-flags/Makefile =================================================================== --- head/devel/go-flags/Makefile (revision 413775) +++ head/devel/go-flags/Makefile (revision 413776) @@ -1,23 +1,22 @@ # Created by: Akinori MUSHA aka knu # $FreeBSD$ PORTNAME= flags PORTVERSION= 1.0.0.20160227 CATEGORIES= devel PKGNAMEPREFIX= go- MAINTAINER= knu@FreeBSD.org COMMENT= Go command line option parser LICENSE= BSD3CLAUSE +USES= go USE_GITHUB= yes GH_ACCOUNT= jessevdk GH_PROJECT= ${PKGNAMEPREFIX}${PORTNAME} GH_TAGNAME= 6b9493b3 GO_PKGNAME= github.com/${GH_ACCOUNT}/${GH_PROJECT} -.include -.include "${PORTSDIR}/lang/go/files/bsd.go.mk" -.include +.include Index: head/devel/go-hashicorp-logutils/Makefile =================================================================== --- head/devel/go-hashicorp-logutils/Makefile (revision 413775) +++ head/devel/go-hashicorp-logutils/Makefile (revision 413776) @@ -1,22 +1,21 @@ # Created by: Thomas Bartelmess # $FreeBSD$ PORTNAME= go-hachicorp-logutils PORTVERSION= 0.1 CATEGORIES= devel MAINTAINER= thomas@bartelmess.io COMMENT= Utilities for slightly better logging in Go (Golang) LICENSE= BSD2CLAUSE +USES= go USE_GITHUB= yes GH_ACCOUNT= hashicorp GH_PROJECT= logutils GH_TAGNAME= 8e0820f GO_PKGNAME= github.com/hashicorp/logutils -.include -.include "${PORTSDIR}/lang/go/files/bsd.go.mk" -.include +.include Index: head/devel/go-json-rest/Makefile =================================================================== --- head/devel/go-json-rest/Makefile (revision 413775) +++ head/devel/go-json-rest/Makefile (revision 413776) @@ -1,27 +1,26 @@ # Created by: Ryan Steinmetz # $FreeBSD$ PORTNAME= go-json-rest PORTVERSION= 1.0.0 DISTVERSIONPREFIX= v PORTEPOCH= 1 CATEGORIES= devel MASTER_SITES= GH \ http://mirrors.rit.edu/zi/ MAINTAINER= lattera@gmail.com COMMENT= Quick and easy way to setup a RESTful JSON API +USES= go USE_GITHUB= yes GH_ACCOUNT= ant0ine GO_PKGNAME= github.com/ant0ine/go-json-rest post-install: @${MKDIR} ${STAGEDIR}${PREFIX}/${GO_LIBDIR}/${GO_PKGNAME} @${INSTALL_DATA} ${GO_WRKDIR_PKG}/${GO_PKGNAME}/trie.a \ ${STAGEDIR}${PREFIX}/${GO_LIBDIR}/${GO_PKGNAME} -.include -.include "${PORTSDIR}/lang/go/files/bsd.go.mk" -.include +.include Index: head/devel/go-pretty/Makefile =================================================================== --- head/devel/go-pretty/Makefile (revision 413775) +++ head/devel/go-pretty/Makefile (revision 413776) @@ -1,20 +1,19 @@ # Created by: Grzegorz Blach # $FreeBSD$ PORTNAME= go-pretty PORTVERSION= 20130510 PORTREVISION= 1 CATEGORIES= devel MASTER_SITES= LOCAL/gblach/ MAINTAINER= ports@FreeBSD.org COMMENT= Pretty-printing package for go values BUILD_DEPENDS= ${LOCALBASE}/${GO_LIBDIR}/github.com/kr/text.a:textproc/go-text RUN_DEPENDS= ${LOCALBASE}/${GO_LIBDIR}/github.com/kr/text.a:textproc/go-text +USES= go GO_PKGNAME= github.com/kr/pretty -.include -.include "${PORTSDIR}/lang/go/files/bsd.go.mk" -.include +.include Index: head/devel/go-raw/Makefile =================================================================== --- head/devel/go-raw/Makefile (revision 413775) +++ head/devel/go-raw/Makefile (revision 413776) @@ -1,21 +1,20 @@ # $FreeBSD$ PORTNAME= raw PORTVERSION= 0.0.0.20130328 CATEGORIES= devel PKGNAMEPREFIX= go- MAINTAINER= kuriyama@FreeBSD.org COMMENT= Go library for high-level interface to unsafe and reflection packages #LICENSE= MIT based, but with no-evil clause +USES= go USE_GITHUB= yes GH_ACCOUNT= feyeleanor GH_TAGNAME= 724aedf GO_PKGNAME= github.com/${GH_ACCOUNT}/${PORTNAME} -.include -.include "${PORTSDIR}/lang/go/files/bsd.go.mk" -.include +.include Index: head/devel/go-runewidth/Makefile =================================================================== --- head/devel/go-runewidth/Makefile (revision 413775) +++ head/devel/go-runewidth/Makefile (revision 413776) @@ -1,23 +1,22 @@ # Created by: Akinori MUSHA aka knu # $FreeBSD$ PORTNAME= runewidth PORTVERSION= 0.0.1 CATEGORIES= devel PKGNAMEPREFIX= go- MAINTAINER= knu@FreeBSD.org COMMENT= Go library to get the fixed width of a character or string LICENSE= MIT +USES= go USE_GITHUB= yes GH_ACCOUNT= mattn GH_PROJECT= ${PKGNAMEPREFIX}${PORTNAME} GH_TAGNAME= d6bea18f GO_PKGNAME= github.com/${GH_ACCOUNT}/${GH_PROJECT} -.include -.include "${PORTSDIR}/lang/go/files/bsd.go.mk" -.include +.include Index: head/devel/go-slices/Makefile =================================================================== --- head/devel/go-slices/Makefile (revision 413775) +++ head/devel/go-slices/Makefile (revision 413776) @@ -1,23 +1,22 @@ # $FreeBSD$ PORTNAME= slices PORTVERSION= 0.0.0.20130325 CATEGORIES= devel PKGNAMEPREFIX= go- MAINTAINER= kuriyama@FreeBSD.org COMMENT= Go library for slice-based datatypes #LICENSE= MIT based, with no-evli clause BUILD_DEPENDS= go-raw>0:devel/go-raw +USES= go USE_GITHUB= yes GH_ACCOUNT= feyeleanor GH_TAGNAME= bb44bb2 GO_PKGNAME= github.com/${GH_ACCOUNT}/${PORTNAME} -.include -.include "${PORTSDIR}/lang/go/files/bsd.go.mk" -.include +.include Index: head/devel/go-sql-driver/Makefile =================================================================== --- head/devel/go-sql-driver/Makefile (revision 413775) +++ head/devel/go-sql-driver/Makefile (revision 413776) @@ -1,22 +1,21 @@ # Created by: Ryan Steinmetz # $FreeBSD$ PORTNAME= go-sql-driver PORTVERSION= 1.1 DISTVERSIONPREFIX= v CATEGORIES= devel MASTER_SITES= GH \ http://mirrors.rit.edu/zi/ MAINTAINER= lattera@gmail.com COMMENT= Lightweight and fast MySQL driver for go +USES= go USE_GITHUB= yes GH_ACCOUNT= ${PORTNAME} GH_PROJECT= mysql GO_PKGNAME= github.com/${PORTNAME}/${GH_PROJECT} -.include -.include "${PORTSDIR}/lang/go/files/bsd.go.mk" -.include +.include Index: head/devel/go-termbox/Makefile =================================================================== --- head/devel/go-termbox/Makefile (revision 413775) +++ head/devel/go-termbox/Makefile (revision 413776) @@ -1,25 +1,24 @@ # Created by: Akinori MUSHA aka knu # $FreeBSD$ PORTNAME= termbox PORTVERSION= 0.0.0.20160123 CATEGORIES= devel PKGNAMEPREFIX= go- MAINTAINER= knu@FreeBSD.org COMMENT= Pure Go termbox implementation LICENSE= MIT BUILD_DEPENDS= ${LOCALBASE}/${GO_LIBDIR}/github.com/mattn/go-runewidth.a:devel/go-runewidth +USES= go USE_GITHUB= yes GH_ACCOUNT= nsf GH_PROJECT= ${PORTNAME}-go GH_TAGNAME= 362329b GO_PKGNAME= github.com/${GH_ACCOUNT}/${GH_PROJECT} -.include -.include "${PORTSDIR}/lang/go/files/bsd.go.mk" -.include +.include Index: head/devel/go-uuid/Makefile =================================================================== --- head/devel/go-uuid/Makefile (revision 413775) +++ head/devel/go-uuid/Makefile (revision 413776) @@ -1,23 +1,22 @@ # $FreeBSD$ PORTNAME= uuid PORTVERSION= 0.0.0.20141202 CATEGORIES= devel MASTER_SITES= LOCAL/kuriyama PKGNAMEPREFIX= go- DISTNAME= ${PKGNAMEPREFIX}${PORTNAME}-${REVISION} MAINTAINER= kuriyama@FreeBSD.org COMMENT= Go library to generates and inspects UUIDs based on RFC 4122 LICENSE= MIT +USES= go REVISION= 35bc42037350 PROJECTHOST= ${PKGNAMEPREFIX}${PORTNAME} WRKSRC= ${WRKDIR}/go-uuid-${REVISION} GO_PKGNAME= code.google.com/p/go-uuid/uuid GO_TARGET= code.google.com/p/go-uuid/uuid/uuid -.include -.include "${PORTSDIR}/lang/go/files/bsd.go.mk" -.include +.include Index: head/devel/goprotobuf/Makefile =================================================================== --- head/devel/goprotobuf/Makefile (revision 413775) +++ head/devel/goprotobuf/Makefile (revision 413776) @@ -1,23 +1,22 @@ # Created by: Michael Johnson # $FreeBSD$ PORTNAME= goprotobuf PORTVERSION= 20151207 CATEGORIES= devel MASTER_SITES= http://www.c-s.li/ports/ MAINTAINER= cs@FreeBSD.org COMMENT= Go support for Google's protocol buffers LICENSE= BSD3CLAUSE RUN_DEPENDS= protoc:devel/protobuf +USES= go GO_PKGNAME= github.com/golang/protobuf GO_TARGET= ${GO_PKGNAME}/proto \ ${GO_PKGNAME}/protoc-gen-go \ ${GO_PKGNAME}/jsonpb -.include -.include "${PORTSDIR}/lang/go/files/bsd.go.mk" -.include +.include Index: head/devel/statik/Makefile =================================================================== --- head/devel/statik/Makefile (revision 413775) +++ head/devel/statik/Makefile (revision 413776) @@ -1,22 +1,19 @@ # $FreeBSD$ PORTNAME= statik PORTVERSION= 20141209 CATEGORIES= devel MAINTAINER= cheffo@freebsd-bg.org COMMENT= Embed static files into a Go executable LICENSE= APACHE20 -BUILD_DEPENDS= go:lang/go - ONLY_FOR_ARCHS= i386 amd64 +USES= go USE_GITHUB= yes GH_ACCOUNT= rakyll GH_TAGNAME= 4a16c83 -.include -.include "${PORTSDIR}/lang/go/files/bsd.go.mk" -.include +.include Index: head/lang/go/files/bsd.go.mk =================================================================== --- head/lang/go/files/bsd.go.mk (revision 413775) +++ head/lang/go/files/bsd.go.mk (nonexistent) @@ -1,79 +0,0 @@ -# This file contains logic to ease porting of Go packages or binaries using -# the `go` command. -# You can set the following variables to control the process. -# -# GO_PKGNAME -# The name of the package. This is the directory that will be -# created in GOPATH/src and seen by the `go` command -# -# GO_TARGET -# The names of the package(s) to build -# -# CGO_CFLAGS -# Addional CFLAGS variables to be passed to the C compiler by the `go` -# command -# -# CGO_LDFLAGS -# Addional LDFLAGS variables to be passed to the C compiler by the `go` -# command - -.if ${ARCH} == "i386" -GOARCH= 386 -GOOBJ= 8 -.else -GOARCH= amd64 -GOOBJ= 6 -.endif - -# Settable variables -GO_PKGNAME?= ${PORTNAME} -GO_TARGET?= ${GO_PKGNAME} -CGO_CFLAGS+= -I${LOCALBASE}/include -CGO_LDFLAGS+= -L${LOCALBASE}/lib - -# Read-only variables -GO_CMD= ${LOCALBASE}/bin/go -LOCAL_GOPATH= ${LOCALBASE}/share/go -GO_LIBDIR= share/go/pkg/${OPSYS:tl}_${GOARCH} -GO_SRCDIR= share/go/src -GO_WRKSRC= ${GO_WRKDIR_SRC}/${GO_PKGNAME} -GO_WRKDIR_BIN= ${WRKDIR}/bin -GO_WRKDIR_SRC= ${WRKDIR}/src -GO_WRKDIR_PKG= ${WRKDIR}/pkg/${OPSYS:tl}_${GOARCH} - -BUILD_DEPENDS+= ${GO_CMD}:lang/go -GO_ENV+= GOPATH="${WRKDIR}:${LOCAL_GOPATH}" \ - CGO_CFLAGS="${CGO_CFLAGS}" \ - CGO_LDFLAGS="${CGO_LDFLAGS}" \ - GOBIN="" -PLIST_SUB+= GO_LIBDIR=${GO_LIBDIR} \ - GO_SRCDIR=${GO_SRCDIR} \ - GO_PKGNAME=${GO_PKGNAME} - -.if !target(post-extract) -post-extract: - @${MKDIR} ${GO_WRKSRC:H} - @${LN} -sf ${WRKSRC} ${GO_WRKSRC} -.endif - -.if !target(do-build) -do-build: - @(cd ${GO_WRKSRC}; ${SETENV} ${MAKE_ENV} ${GO_ENV} ${GO_CMD} install -v ${GO_TARGET}) -.endif - -.if !target(do-install) -do-install: -.for _TARGET in ${GO_TARGET} - @if [ -e "${GO_WRKDIR_PKG}/${_TARGET}.a" ]; then \ - _TARGET_LIBDIR="${STAGEDIR}/${PREFIX}/${GO_LIBDIR}/${_TARGET:H}"; \ - ${MKDIR} $${_TARGET_LIBDIR}; \ - ${INSTALL_DATA} ${GO_WRKDIR_PKG}/${_TARGET}.a $${_TARGET_LIBDIR}; \ - _TARGET_SRCDIR="${STAGEDIR}/${PREFIX}/${GO_SRCDIR}/${_TARGET}"; \ - ${MKDIR} $${_TARGET_SRCDIR}; \ - (cd ${GO_WRKDIR_SRC}/${_TARGET}/ && ${COPYTREE_SHARE} \* $${_TARGET_SRCDIR}); \ - fi; \ - if [ -e "${GO_WRKDIR_BIN}/${_TARGET:T}" ]; then \ - ${INSTALL_PROGRAM} ${GO_WRKDIR_BIN}/${_TARGET:T} ${STAGEDIR}/${LOCALBASE}/bin; \ - fi; -.endfor -.endif Property changes on: head/lang/go/files/bsd.go.mk ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:keywords ## -1 +0,0 ## -FreeBSD=%H \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/net/go-amqp/Makefile =================================================================== --- head/net/go-amqp/Makefile (revision 413775) +++ head/net/go-amqp/Makefile (revision 413776) @@ -1,21 +1,20 @@ # $FreeBSD$ PORTNAME= amqp PORTVERSION= 0.0.0.20140916 CATEGORIES= net PKGNAMEPREFIX= go- MAINTAINER= kuriyama@FreeBSD.org COMMENT= Go library for AMQP client with RabbitMQ extensions LICENSE= BSD2CLAUSE +USES= go USE_GITHUB= yes GH_ACCOUNT= streadway GH_TAGNAME= 7d6d180 GO_PKGNAME= github.com/${GH_ACCOUNT}/${PORTNAME} -.include -.include "${PORTSDIR}/lang/go/files/bsd.go.mk" -.include +.include Index: head/net/go-geoip/Makefile =================================================================== --- head/net/go-geoip/Makefile (revision 413775) +++ head/net/go-geoip/Makefile (revision 413776) @@ -1,28 +1,29 @@ # $FreeBSD$ PORTNAME= geoip PORTVERSION= 0.0.0.20131016 CATEGORIES= net MASTER_SITES= GH GHC PKGNAMEPREFIX= go- MAINTAINER= kuriyama@FreeBSD.org COMMENT= Go library to wrap the libgeoip C library LICENSE= MIT LIB_DEPENDS= libGeoIP.so:net/GeoIP -USES= compiler +USES= compiler go USE_GITHUB= yes GH_ACCOUNT= abh GH_TAGNAME= da13074 GO_PKGNAME= github.com/${GH_ACCOUNT}/${PORTNAME} .include -.include "${PORTSDIR}/lang/go/files/bsd.go.mk" + .if ${COMPILER_TYPE} == clang && ${CC} == cc CC= clang .endif + .include Index: head/net/go.net/Makefile =================================================================== --- head/net/go.net/Makefile (revision 413775) +++ head/net/go.net/Makefile (revision 413776) @@ -1,32 +1,31 @@ # Created by: Julien Laffaye # $FreeBSD$ PORTNAME= go.net PORTVERSION= 20131227 CATEGORIES= net devel MASTER_SITES= http://jlaffaye.net/ LOCAL/jlaffaye MAINTAINER= jlaffaye@FreeBSD.org COMMENT= Additional Net packages for Go LICENSE= BSD3CLAUSE BUILD_DEPENDS= ${LOCALBASE}/${GO_LIBDIR}/code.google.com/p/go.text:textproc/go.text +USES= go GO_PKGNAME= code.google.com/p/go.net GO_TARGET= ${GO_PKGNAME}/dict \ ${GO_PKGNAME}/html \ ${GO_PKGNAME}/html/atom \ ${GO_PKGNAME}/html/charset \ ${GO_PKGNAME}/idna \ ${GO_PKGNAME}/ipv4 \ ${GO_PKGNAME}/ipv6 \ ${GO_PKGNAME}/netutil \ ${GO_PKGNAME}/proxy \ ${GO_PKGNAME}/publicsuffix \ ${GO_PKGNAME}/spdy \ ${GO_PKGNAME}/websocket -.include -.include "${PORTSDIR}/lang/go/files/bsd.go.mk" -.include +.include Index: head/net-im/xmpp-client/Makefile =================================================================== --- head/net-im/xmpp-client/Makefile (revision 413775) +++ head/net-im/xmpp-client/Makefile (revision 413776) @@ -1,25 +1,20 @@ # $FreeBSD$ PORTNAME= xmpp-client PORTVERSION= 20160110 CATEGORIES= net-im MASTER_SITES= http://c-s.li/ports/ MAINTAINER= cs@FreeBSD.org COMMENT= XMPP client with OTR support LICENSE= BSD3CLAUSE BUILD_DEPENDS= ${LOCALBASE}/${GO_LIBDIR}/golang.org/x/crypto/bcrypt.a:security/go.crypto \ ${LOCALBASE}/${GO_LIBDIR}/code.google.com/p/go.net/dict.a:net/go.net +USES= go PLIST_FILES= bin/xmpp-client GO_PKGNAME= github.com/agl/${PORTNAME} -post-extract: - @${MKDIR} ${GO_WRKSRC:H} - @${LN} -sf ${WRKSRC} ${GO_WRKSRC} - -.include -.include "${PORTSDIR}/lang/go/files/bsd.go.mk" -.include +.include Index: head/security/go.crypto/Makefile =================================================================== --- head/security/go.crypto/Makefile (revision 413775) +++ head/security/go.crypto/Makefile (revision 413776) @@ -1,49 +1,47 @@ # $FreeBSD$ PORTNAME= go.crypto PORTVERSION= 20160105 CATEGORIES= security devel MASTER_SITES= http://www.c-s.li/ports/ MAINTAINER= jlaffaye@FreeBSD.org COMMENT= Additional cryptography packages for Go +USES= go GO_PKGNAME= golang.org/x/crypto GO_TARGET= ${GO_PKGNAME}/bcrypt \ ${GO_PKGNAME}/blowfish \ ${GO_PKGNAME}/bn256 \ ${GO_PKGNAME}/cast5 \ ${GO_PKGNAME}/curve25519 \ ${GO_PKGNAME}/hkdf \ ${GO_PKGNAME}/md4 \ ${GO_PKGNAME}/nacl/box \ ${GO_PKGNAME}/nacl/secretbox \ ${GO_PKGNAME}/ocsp \ ${GO_PKGNAME}/openpgp \ ${GO_PKGNAME}/openpgp/armor \ ${GO_PKGNAME}/openpgp/clearsign \ ${GO_PKGNAME}/openpgp/elgamal \ ${GO_PKGNAME}/openpgp/errors \ ${GO_PKGNAME}/openpgp/packet \ ${GO_PKGNAME}/openpgp/s2k \ ${GO_PKGNAME}/otr \ ${GO_PKGNAME}/pbkdf2 \ ${GO_PKGNAME}/poly1305 \ ${GO_PKGNAME}/ripemd160 \ ${GO_PKGNAME}/salsa20 \ ${GO_PKGNAME}/salsa20/salsa \ ${GO_PKGNAME}/scrypt \ ${GO_PKGNAME}/sha3 \ ${GO_PKGNAME}/ssh \ ${GO_PKGNAME}/ssh/agent \ ${GO_PKGNAME}/ssh/terminal \ ${GO_PKGNAME}/ssh/test \ ${GO_PKGNAME}/ssh/testdata \ ${GO_PKGNAME}/twofish \ ${GO_PKGNAME}/xtea \ ${GO_PKGNAME}/xts -.include -.include "${PORTSDIR}/lang/go/files/bsd.go.mk" - -.include +.include Index: head/security/goptlib/Makefile =================================================================== --- head/security/goptlib/Makefile (revision 413775) +++ head/security/goptlib/Makefile (revision 413776) @@ -1,20 +1,15 @@ # $FreeBSD$ PORTNAME= goptlib PORTVERSION= 0.5 CATEGORIES= security MASTER_SITES= http://c-s.li/ports/ MAINTAINER= cs@FreeBSD.org COMMENT= Go pluggable transports library +USES= go GO_PKGNAME= git.torproject.org/pluggable-transports/${PORTNAME}.git GO_TARGET= ${GO_PKGNAME} -post-extract: - @${MKDIR} ${GO_WRKSRC:H} - @${LN} -sf ${WRKSRC} ${GO_WRKSRC} - -.include -.include "${PORTSDIR}/lang/go/files/bsd.go.mk" -.include +.include Index: head/security/meek/Makefile =================================================================== --- head/security/meek/Makefile (revision 413775) +++ head/security/meek/Makefile (revision 413776) @@ -1,29 +1,24 @@ # $FreeBSD$ PORTNAME= meek PORTVERSION= 0.21 CATEGORIES= security MASTER_SITES= http://c-s.li/ports/ MAINTAINER= cs@FreeBSD.org COMMENT= Pluggable transport proxy that relays through third-party server BUILD_DEPENDS= ${LOCALBASE}/${GO_LIBDIR}/git.torproject.org/pluggable-transports/goptlib.git.a:security/goptlib +USES= go PLIST_FILES= bin/meek-client bin/meek-server man/man1/meek-client.1.gz man/man1/meek-server.1.gz SUB_FILES= pkg-message GO_PKGNAME= git.torproject.org/pluggable-transports/${PORTNAME}.git GO_TARGET= ${GO_PKGNAME}/${PORTNAME}-server \ ${GO_PKGNAME}/${PORTNAME}-client -post-extract: - @${MKDIR} ${GO_WRKSRC:H} - @${LN} -sf ${WRKSRC} ${GO_WRKSRC} - post-install: ${INSTALL_MAN} ${WRKSRC}/doc/meek-server.1 ${STAGEDIR}${PREFIX}/man/man1 ${INSTALL_MAN} ${WRKSRC}/doc/meek-client.1 ${STAGEDIR}${PREFIX}/man/man1 -.include -.include "${PORTSDIR}/lang/go/files/bsd.go.mk" -.include +.include Index: head/security/pond/Makefile =================================================================== --- head/security/pond/Makefile (revision 413775) +++ head/security/pond/Makefile (revision 413776) @@ -1,66 +1,65 @@ # $FreeBSD$ PORTNAME= pond PORTVERSION= 20150830 PORTREVISION= 1 CATEGORIES= security MASTER_SITES= http://c-s.li/ports/ DISTFILES= pond-20150830.tar.gz \ go-gtk-20151214.tar.gz \ ed25519-20150830.tar.gz MAINTAINER= cs@FreeBSD.org COMMENT= Forward secure, asynchronous messenger LICENSE= BSD3CLAUSE BUILD_DEPENDS= ${LOCALBASE}/${GO_LIBDIR}/golang.org/x/crypto/bcrypt.a:security/go.crypto \ ${LOCALBASE}/${GO_LIBDIR}/github.com/golang/protobuf/proto.a:devel/goprotobuf \ ${LOCALBASE}/${GO_LIBDIR}/code.google.com/p/go.net/dict.a:net/go.net RUN_DEPENDS= tor:security/tor LIB_DEPENDS= libgtkspell.so:textproc/gtkspell \ libtspi.so:security/trousers +USES= go PLIST_FILES= bin/pond-server bin/pond USE_GNOME= gtk30 GO_PKGNAME= github.com/agl/pond GO_TARGET= ${GO_PKGNAME}/pond-server \ ${GO_PKGNAME}/pond post-extract: @${MKDIR} ${GO_WRKSRC:H} @${LN} -sf ${WRKSRC} ${GO_WRKSRC} @${LN} -sf ${WRKSRC}/client ${WRKSRC}/pond @${LN} -sf ${WRKSRC}/server ${WRKSRC}/pond-server @${LN} -sf ${WRKDIR}/go-gtk-20151214 ${GO_WRKDIR_SRC}/github.com/agl/go-gtk @${LN} -sf ${WRKDIR}/ed25519-20150830 ${GO_WRKDIR_SRC}/github.com/agl/ed25519 post-patch: @${REINPLACE_CMD} -e 's|\ -.include "${PORTSDIR}/lang/go/files/bsd.go.mk" -.include +.include Index: head/sysutils/logstash-forwarder/Makefile =================================================================== --- head/sysutils/logstash-forwarder/Makefile (revision 413775) +++ head/sysutils/logstash-forwarder/Makefile (revision 413776) @@ -1,26 +1,25 @@ # $FreeBSD$ PORTNAME= logstash-forwarder PORTVERSION= 0.4.0.20150507 CATEGORIES= sysutils MAINTAINER= cheffo@freebsd-bg.org COMMENT= Collect logs locally in preparation for processing elsewhere! LICENSE= APACHE20 BUILD_DEPENDS= go:lang/go +USES= go USE_GITHUB= yes GH_ACCOUNT= elasticsearch GH_TAGNAME= 3b718f0 USE_RC_SUBR= logstash-forwarder SUB_FILES= pkg-message post-install: ${INSTALL_DATA} ${WRKSRC}/logstash-forwarder.conf.example ${STAGEDIR}${PREFIX}/etc/logstash-forwarder.conf.example -.include -.include "${.CURDIR}/../../lang/go/files/bsd.go.mk" -.include +.include Index: head/textproc/go-text/Makefile =================================================================== --- head/textproc/go-text/Makefile (revision 413775) +++ head/textproc/go-text/Makefile (revision 413776) @@ -1,18 +1,17 @@ # Created by: Grzegorz Blach # $FreeBSD$ PORTNAME= go-text PORTVERSION= 20130911 CATEGORIES= textproc MASTER_SITES= LOCAL/gblach/ MAINTAINER= ports@FreeBSD.org COMMENT= Go package for manipulating paragraphs of text LICENSE= MIT +USES= go GO_PKGNAME= github.com/kr/text -.include -.include "${PORTSDIR}/lang/go/files/bsd.go.mk" -.include +.include Index: head/textproc/go.text/Makefile =================================================================== --- head/textproc/go.text/Makefile (revision 413775) +++ head/textproc/go.text/Makefile (revision 413776) @@ -1,31 +1,30 @@ # $FreeBSD$ PORTNAME= go.text PORTVERSION= 20131227 CATEGORIES= textproc devel MASTER_SITES= http://jlaffaye.net/ LOCAL/jlaffaye MAINTAINER= jlaffaye@FreeBSD.org COMMENT= Additional textproc packages for Go LICENSE= BSD3CLAUSE +USES= go GO_PKGNAME= code.google.com/p/go.text GO_TARGET= ${GO_PKGNAME}/cldr \ ${GO_PKGNAME}/collate \ ${GO_PKGNAME}/collate/build \ ${GO_PKGNAME}/collate/colltab \ ${GO_PKGNAME}/encoding \ ${GO_PKGNAME}/encoding/charmap \ ${GO_PKGNAME}/encoding/japanese \ ${GO_PKGNAME}/encoding/korean \ ${GO_PKGNAME}/encoding/simplifiedchinese \ ${GO_PKGNAME}/encoding/traditionalchinese \ ${GO_PKGNAME}/encoding/unicode \ ${GO_PKGNAME}/language \ ${GO_PKGNAME}/transform \ ${GO_PKGNAME}/unicode/norm -.include -.include "${PORTSDIR}/lang/go/files/bsd.go.mk" -.include +.include Index: head/textproc/peco/Makefile =================================================================== --- head/textproc/peco/Makefile (revision 413775) +++ head/textproc/peco/Makefile (revision 413776) @@ -1,31 +1,30 @@ # Created by: Akinori MUSHA aka knu # $FreeBSD$ PORTNAME= peco PORTVERSION= 0.3.5 DISTVERSIONPREFIX= v CATEGORIES= textproc MAINTAINER= knu@FreeBSD.org COMMENT= Simplistic interactive filtering tool LICENSE= MIT BUILD_DEPENDS= ${LOCALBASE}/${GO_LIBDIR}/github.com/jessevdk/go-flags.a:devel/go-flags \ ${LOCALBASE}/${GO_LIBDIR}/github.com/mattn/go-runewidth.a:devel/go-runewidth \ ${LOCALBASE}/${GO_LIBDIR}/github.com/nsf/termbox-go.a:devel/go-termbox \ ${LOCALBASE}/${GO_LIBDIR}/github.com/google/btree.a:devel/go-btree +USES= go USE_GITHUB= yes WRKSRC_SUBDIR= cmd/peco GO_PKGNAME= github.com/${PORTNAME}/${PORTNAME}/cmd/peco PLIST_FILES= bin/peco post-extract: @${MKDIR} ${GO_WRKSRC:H:H:H} @${LN} -sf ${WRKSRC:H:H} ${GO_WRKSRC:H:H} -.include -.include "${PORTSDIR}/lang/go/files/bsd.go.mk" -.include +.include Index: head/www/webgo/Makefile =================================================================== --- head/www/webgo/Makefile (revision 413775) +++ head/www/webgo/Makefile (revision 413776) @@ -1,20 +1,19 @@ # Created by: Wen Heping # $FreeBSD$ PORTNAME= webgo PORTVERSION= 0.1.0.${SVNVERSION} PORTREVISION= 1 CATEGORIES= www MASTER_SITES= LOCAL/jlaffaye DISTNAME= ${PORTNAME}-${SVNVERSION} MAINTAINER= wen@FreeBSD.org COMMENT= Simplest way to write web applications in the Go programming language SVNVERSION= 20120419 +USES= go GO_PKGNAME= github.com/hoisie/web -.include -.include "${PORTSDIR}/lang/go/files/bsd.go.mk" -.include +.include