pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/go Add a separate Makefile for the version string...
details: https://anonhg.NetBSD.org/pkgsrc/rev/7420907fffc2
branches: trunk
changeset: 641810:7420907fffc2
user: bsiegert <bsiegert%pkgsrc.org@localhost>
date: Tue Nov 18 20:39:11 2014 +0000
description:
Add a separate Makefile for the version string plus GOARCH. To be used
by Go packages.
diffstat:
lang/go/Makefile | 27 +++++----------------------
lang/go/version.mk | 20 ++++++++++++++++++++
2 files changed, 25 insertions(+), 22 deletions(-)
diffs (66 lines):
diff -r 0ad1da2e6007 -r 7420907fffc2 lang/go/Makefile
--- a/lang/go/Makefile Tue Nov 18 15:49:19 2014 +0000
+++ b/lang/go/Makefile Tue Nov 18 20:39:11 2014 +0000
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.20 2014/10/12 14:51:03 wiz Exp $
+# $NetBSD: Makefile,v 1.21 2014/11/18 20:39:11 bsiegert Exp $
-VERSION= 1.3.3
-DISTNAME= go${VERSION}.src
-PKGNAME= go-${VERSION}
+.include "version.mk"
+
+DISTNAME= go${GO_VERSION}.src
+PKGNAME= go-${GO_VERSION}
CATEGORIES= lang
MASTER_SITES= https://storage.googleapis.com/golang/
PATCH_SITES= https://codereview.appspot.com/download/
@@ -18,24 +19,6 @@
# uses ulimit -T
BUILD_DEPENDS+= bash>=4.2nb3:../../shells/bash
-.include "../../mk/bsd.prefs.mk"
-
-# TODO: other arm platforms?
-ONLY_FOR_PLATFORM= *-*-i386 *-*-x86_64 *-*-evbarm
-NOT_FOR_PLATFORM= SunOS-*-i386
-.if ${MACHINE_ARCH} == "i386"
-GOARCH= 386
-GO_COMPILER= 8
-.elif ${MACHINE_ARCH} == "x86_64"
-GOARCH= amd64
-GO_COMPILER= 6
-.elif ${MACHINE_ARCH} == "evbarm"
-GOARCH= arm
-GO_COMPILER= 5
-.endif
-PLIST_SUBST+= GO_PLATFORM=${LOWER_OPSYS:Q}_${GOARCH:Q} GOARCH=${GOARCH:Q}
-PLIST_SUBST+= GO_COMPILER=${GO_COMPILER:Q}
-
PLIST_VARS+= cgo zsyscall
.if ${OPSYS} == "SunOS"
diff -r 0ad1da2e6007 -r 7420907fffc2 lang/go/version.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/go/version.mk Tue Nov 18 20:39:11 2014 +0000
@@ -0,0 +1,20 @@
+# $NetBSD: version.mk,v 1.1 2014/11/18 20:39:11 bsiegert Exp $
+
+.include "../../mk/bsd.prefs.mk"
+
+GO_VERSION= 1.3.3
+
+ONLY_FOR_PLATFORM= *-*-i386 *-*-x86_64 *-*-evbarm
+NOT_FOR_PLATFORM= SunOS-*-i386
+.if ${MACHINE_ARCH} == "i386"
+GOARCH= 386
+GO_COMPILER= 8
+.elif ${MACHINE_ARCH} == "x86_64"
+GOARCH= amd64
+GO_COMPILER= 6
+.elif ${MACHINE_ARCH} == "evbarm"
+GOARCH= arm
+GO_COMPILER= 5
+.endif
+PLIST_SUBST+= GO_PLATFORM=${LOWER_OPSYS:Q}_${GOARCH:Q} GOARCH=${GOARCH:Q}
+PLIST_SUBST+= GO_COMPILER=${GO_COMPILER:Q}
Home |
Main Index |
Thread Index |
Old Index