aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjlaffaye <jlaffaye@FreeBSD.org>2017-08-25 00:24:26 +0800
committerjlaffaye <jlaffaye@FreeBSD.org>2017-08-25 00:24:26 +0800
commita0c3a01cacc3033d3b0879ace9025c30f8ee70be (patch)
treeb78003383128059a9ac34a09b26d0d1e779964b8
parent5a91d464e7abe6cc2ea904da353ce95a36aa091d (diff)
downloadfreebsd-ports-gnome-a0c3a01cacc3033d3b0879ace9025c30f8ee70be.tar.gz
freebsd-ports-gnome-a0c3a01cacc3033d3b0879ace9025c30f8ee70be.tar.zst
freebsd-ports-gnome-a0c3a01cacc3033d3b0879ace9025c30f8ee70be.zip
Add pkg-plist target
PR: 221759 Submitted by: smh
-rw-r--r--lang/go/Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/lang/go/Makefile b/lang/go/Makefile
index aaf9dd045087..ea386b4f501f 100644
--- a/lang/go/Makefile
+++ b/lang/go/Makefile
@@ -75,4 +75,15 @@ do-install:
regression-test: build
cd ${WRKSRC}/src && GOROOT=${WRKSRC} PATH=${WRKSRC}/bin:${PATH} ${SH} run.bash --no-rebuild --banner
+pkg-plist: stage
+ ${RM} ${WRKDIR}/pkg-plist
+.for command in go gofmt
+ ${ECHO_CMD} bin/${command} >> ${WRKDIR}/pkg-plist
+.endfor
+ cd ${WRKDIR} && ${FIND} go -type f | \
+ ${SED} -e "s/\/${OPSYS:tl}_${GOARCH}\//\/%%opsys_ARCH%%\//g" | \
+ ${SORT} >> ${WRKDIR}/pkg-plist
+ ${ECHO_CMD} "@dir go/pkg/obj/%%opsys_ARCH%%" >> ${WRKDIR}/pkg-plist
+ ${CP} ${WRKDIR}/pkg-plist ${.CURDIR}/pkg-plist
+
.include <bsd.port.post.mk>