mirror of
https://github.com/beard7n/bsdports.git
synced 2026-04-10 10:31:20 +02:00
updated go makefile
This commit is contained in:
@@ -5,15 +5,14 @@ PORTNAME= go
|
||||
PORTVERSION= 1.17.6
|
||||
CATEGORIES= lang
|
||||
MASTER_SITES= https://golang.org/dl/
|
||||
MASTER_SITES+= https://github.com/dmgk/go-bootstrap/releases/download/${BOOTSTRAP_TAG}/:bootstrap \
|
||||
MASTER_SITES+= https://github.com/dmgk/go-bootstrap/releases/download/${BOOTSTRAP_TAG}/:bootstrap
|
||||
MASTER_SITES+= LOCAL/dmgk:bootstrap
|
||||
DISTFILES= go${PORTVERSION}.src.tar.gz
|
||||
DISTFILES+= ${BOOTSTRAP_NAME}.tar.xz:bootstrap
|
||||
DISTFILES+= go-${OPSYS:tl}-${GOARCH}${GOARM}-${BOOTSTRAP_TAG}.tar.xz:bootstrap
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
|
||||
BOOTSTRAP_NAME= go-${OPSYS:tl}-${GOARCH}${GOARM}-${BOOTSTRAP_TAG}
|
||||
BOOTSTRAP_TAG= go1.14
|
||||
|
||||
|
||||
@@ -36,8 +35,8 @@ IGNORE= unknown arch ${ARCH}
|
||||
MAINTAINER= jlaffaye@FreeBSD.org
|
||||
COMMENT= Go programming language
|
||||
|
||||
#BUILD_DEPENDS= go14>=1.4:lang/go14
|
||||
RUN_DEPENDS= bash:lang/bash
|
||||
BUILD_DEPENDS= bash:lang/bash
|
||||
|
||||
USES= shebangfix
|
||||
SHEBANG_LANG= sh perl
|
||||
@@ -45,8 +44,8 @@ SHEBANG_FILES+= misc/wasm/go_js_wasm_exec
|
||||
SHEBANG_FILES+= src/net/http/cgi/testdata/test.cgi
|
||||
SHEBANG_GLOB= *.bash *.pl *.sh
|
||||
|
||||
#sh_OLD_CMD= /bin/bash "/usr/bin/env bash"
|
||||
#sh_CMD= ${SH}
|
||||
sh_OLD_CMD= /bin/bash
|
||||
sh_CMD= "/usr/bin/env bash"
|
||||
|
||||
WRKSRC= ${WRKDIR}/go
|
||||
ONLY_FOR_ARCHS= i386 amd64 armv6 armv7 aarch64
|
||||
@@ -58,13 +57,12 @@ post-patch:
|
||||
cd ${WRKSRC} && ${FIND} . -name '*.orig' -delete
|
||||
${REINPLACE_CMD} -e 's|^if ulimit -T|false \&\& &|' ${WRKSRC}/src/run.bash
|
||||
|
||||
#BOOTSTRAP_GO = ${LOCALBASE}/go14
|
||||
BOOTSTRAP_GO = ${WRKDIR}/${BOOTSTRAP_NAME}
|
||||
PLIST= pkg-plist.${ARCH}
|
||||
|
||||
do-build:
|
||||
cd ${WRKSRC}/src ; ${SETENV} \
|
||||
XDG_CACHE_HOME=${WRKDIR} \
|
||||
GOROOT_BOOTSTRAP=${BOOTSTRAP_GO} \
|
||||
GOROOT_BOOTSTRAP=${WRKDIR}/go-${OPSYS:tl}-${GOARCH}${GOARM}-bootstrap \
|
||||
GOROOT=${WRKSRC} \
|
||||
GOROOT_FINAL=${PREFIX}/go \
|
||||
GOBIN= \
|
||||
@@ -74,12 +72,6 @@ do-build:
|
||||
GOARM=${GOARM} \
|
||||
CC=${CC} \
|
||||
${LOCALBASE}/bin/bash make.bash -v
|
||||
|
||||
# cd ${WRKSRC}/src && \
|
||||
# GOROOT=${WRKSRC} GOROOT_FINAL=${PREFIX}/lib/go \
|
||||
# GOROOT_BOOTSTRAP=${BOOTSTRAP_GO} \
|
||||
# GOBIN= GOARCH=${GOARCH} GOOS=${OPSYS:tl} \
|
||||
# GO386=${GO386} GOARM=${GOARM} CGO_ENABLED=1 \
|
||||
# ${SH} make.bash -v
|
||||
${RM} -r ${WRKSRC}/pkg/obj \
|
||||
${WRKSRC}/pkg/bootstrap \
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
TIMESTAMP = 1645383690
|
||||
TIMESTAMP = 1645385959
|
||||
SHA256 (go1.17.6.src.tar.gz) = 4dc1bbf3ff61f0c1ff2b19355e6d88151a70126268a47c761477686ef94748c8
|
||||
SIZE (go1.17.6.src.tar.gz) = 22191372
|
||||
SHA256 (go-freebsd-arm64-go1.14.tar.xz) = f8b0cf0d323e581c9e3e0d5c217847a3e0294fcc92dbac92a5b02cea9d97ad8d
|
||||
SIZE (go-freebsd-arm64-go1.14.tar.xz) = 34944548
|
||||
SHA256 (go-freebsd-amd64-go1.14.tar.xz) = 3b259247fb228258a4f31e283e9aa23cafd590eabce334666a9e9b2ffe47c19b
|
||||
SIZE (go-freebsd-amd64-go1.14.tar.xz) = 35927980
|
||||
|
||||
11622
lang/go/pkg-plist.aarch64
Normal file
11622
lang/go/pkg-plist.aarch64
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user