0835106f3f
thanks Edgar Fuss
93 lines
2.8 KiB
Makefile
93 lines
2.8 KiB
Makefile
# $NetBSD: Makefile,v 1.4 2020/12/19 14:28:56 bsiegert Exp $
|
|
|
|
PKGNAME= go-bin-1.14.2
|
|
PKGREVISION= 1
|
|
CATEGORIES= lang
|
|
MASTER_SITES= https://dl.google.com/go/
|
|
|
|
MAINTAINER= tnn@NetBSD.org
|
|
HOMEPAGE= https://golang.org/
|
|
COMMENT= Bootstrap toolchain for lang/go*
|
|
LICENSE= modified-bsd
|
|
|
|
NO_BUILD= yes
|
|
PLIST_SRC= ${WRKDIR}/PLIST_DYNAMIC
|
|
USE_LANGUAGES= # none
|
|
USE_TOOLS+= pax perl:run bash:run
|
|
WRKSRC= ${WRKDIR}/go
|
|
|
|
REPLACE_PERL+= src/*/*.pl src/*/*/*.pl
|
|
REPLACE_PERL+= src/net/http/cgi/testdata/test.cgi
|
|
REPLACE_BASH+= */*.bash */*/*.bash */*/*/*.bash
|
|
REPLACE_BASH+= */*/*.sh */*/*/*.sh
|
|
REPLACE_BASH+= misc/arm/a misc/wasm/go_js_wasm_exec
|
|
CHECK_INTERPRETER_SKIP+= */*.rc
|
|
CHECK_PORTABILITY_SKIP+= misc/ios/clangwrap.sh
|
|
CHECK_SHLIBS_SUPPORTED= no
|
|
CHECK_RELRO_SUPPORTED= no
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
ONLY_FOR_PLATFORM+= Darwin-*-x86_64
|
|
DIST.darwin-amd64= go${PKGVERSION_NOREV}.darwin-amd64.tar.gz
|
|
.if !empty(MACHINE_PLATFORM:MDarwin-*-x86_64) || make(distinfo)
|
|
DISTFILES+= ${DIST.darwin-amd64}
|
|
EXTRACT_ONLY+= ${DIST.darwin-amd64}
|
|
.endif
|
|
|
|
ONLY_FOR_PLATFORM+= Darwin-*-aarch64
|
|
.if !empty(MACHINE_PLATFORM:MDarwin-*-aarch64)
|
|
PKGNAME= go-bin-1.16.beta1
|
|
.endif
|
|
DIST.darwin-arm64= go1.16beta1.darwin-arm64.tar.gz
|
|
.if !empty(MACHINE_PLATFORM:MDarwin-*-aarch64) || make(distinfo)
|
|
DISTFILES+= ${DIST.darwin-arm64}
|
|
EXTRACT_ONLY+= ${DIST.darwin-arm64}
|
|
.endif
|
|
|
|
ONLY_FOR_PLATFORM+= Linux-*-i386
|
|
DIST.linux-386= go${PKGVERSION_NOREV}.linux-386.tar.gz
|
|
.if !empty(MACHINE_PLATFORM:MLinux-*-i386) || make(distinfo)
|
|
DISTFILES+= ${DIST.linux-386}
|
|
EXTRACT_ONLY+= ${DIST.linux-386}
|
|
.endif
|
|
|
|
ONLY_FOR_PLATFORM+= Linux-*-x86_64
|
|
DIST.linux-amd64= go${PKGVERSION_NOREV}.linux-amd64.tar.gz
|
|
.if !empty(MACHINE_PLATFORM:MLinux-*-x86_64) || make(distinfo)
|
|
DISTFILES+= ${DIST.linux-amd64}
|
|
EXTRACT_ONLY+= ${DIST.linux-amd64}
|
|
.endif
|
|
|
|
ONLY_FOR_PLATFORM+= Linux-*-*arm*
|
|
DIST.linux-armv6l= go${PKGVERSION_NOREV}.linux-armv6l.tar.gz
|
|
.if !empty(MACHINE_PLATFORM:MLinux-*-*arm*) || make(distinfo)
|
|
DISTFILES+= ${DIST.linux-armv6l}
|
|
EXTRACT_ONLY+= ${DIST.linux-armv6l}
|
|
.endif
|
|
|
|
ONLY_FOR_PLATFORM+= Linux-*-aarch64
|
|
DIST.linux-arm64= go${PKGVERSION_NOREV}.linux-arm64.tar.gz
|
|
.if !empty(MACHINE_PLATFORM:MLinux-*-aarch64) || make(distinfo)
|
|
DISTFILES+= ${DIST.linux-arm64}
|
|
EXTRACT_ONLY+= ${DIST.linux-arm64}
|
|
.endif
|
|
|
|
ONLY_FOR_PLATFORM+= NetBSD-*-aarch64
|
|
DIST.netbsd-arm64= go1.14.2.netbsd-arm64.tar.gz
|
|
SITES.${DIST.netbsd-arm64}= https://cdn.NetBSD.org/pub/pkgsrc/misc/tnn/golang-aarch64/
|
|
.if !empty(MACHINE_PLATFORM:MNetBSD-*-aarch64) || make(distinfo)
|
|
DISTFILES+= ${DIST.netbsd-arm64}
|
|
EXTRACT_ONLY+= ${DIST.netbsd-arm64}
|
|
.endif
|
|
|
|
INSTALLATION_DIRS+= go-bin
|
|
|
|
do-install:
|
|
cd ${WRKSRC} && ${PAX} -rw . ${DESTDIR}${PREFIX}/go-bin
|
|
|
|
post-install:
|
|
cd ${DESTDIR}${PREFIX} && find go-bin -type f -print \
|
|
> ${WRKDIR}/PLIST_DYNAMIC
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|