Skip to content

Commit

Permalink
lang/go: sync with upstream
Browse files Browse the repository at this point in the history
Taken from: FreeBSD
  • Loading branch information
fichtner committed Feb 19, 2017
1 parent ebb9580 commit 54b6571
Show file tree
Hide file tree
Showing 3 changed files with 1,144 additions and 575 deletions.
13 changes: 10 additions & 3 deletions lang/go/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# $FreeBSD$

PORTNAME= go
PORTVERSION= 1.7.5
PORTVERSION= 1.8
PORTEPOCH= 1
CATEGORIES= lang
MASTER_SITES= http://golang.org/dl/
Expand All @@ -26,6 +26,9 @@ sh_CMD= ${SH}
WRKSRC= ${WRKDIR}/go
ONLY_FOR_ARCHS= i386 amd64 armv6

OPTIONS_DEFINE= GO387
GO387_DESC= Do not generate code with SSE2 (for old x86 CPU)

.include <bsd.port.pre.mk>

.if ${ARCH} == "i386"
Expand All @@ -38,18 +41,22 @@ GOARCH=arm
IGNORE= unknown arch ${ARCH}
.endif

.if ${PORT_OPTIONS:MGO387}
.error wat
GO386=387
.endif

PLIST_SUB+= opsys_ARCH=${OPSYS:tl}_${GOARCH}

post-patch:
@cd ${WRKSRC} && ${FIND} . -name '*.orig' -delete

do-build:
cd ${WRKSRC}/src && \
CC=${CC} \
GOROOT=${WRKSRC} GOROOT_FINAL=${PREFIX}/go \
GOROOT_BOOTSTRAP=${LOCALBASE}/go14 \
GOBIN= GOARCH=${GOARCH} GOOS=${OPSYS:tl} \
GO386=387 \
GO386=${GO386} \
${SH} make.bash

do-install:
Expand Down
6 changes: 3 additions & 3 deletions lang/go/distinfo
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
TIMESTAMP = 1485613241
SHA256 (go1.7.5.src.tar.gz) = 4e834513a2079f8cbbd357502cccaac9507fd00a1efe672375798858ff291815
SIZE (go1.7.5.src.tar.gz) = 14204325
TIMESTAMP = 1487448855
SHA256 (go1.8.src.tar.gz) = 406865f587b44be7092f206d73fc1de252600b79b3cacc587b74b5ef5c623596
SIZE (go1.8.src.tar.gz) = 15320083
Loading

0 comments on commit 54b6571

Please sign in to comment.