6 MASTER_SITES= http://golang.org/dl/
7 DISTNAME= go${PORTVERSION}.src
9 MAINTAINER= jlaffaye@FreeBSD.org
10 COMMENT= Go programming language
14 USES= compiler shebangfix
16 SHEBANG_FILES= ${WRKSRC}/src/*.bash \
17 ${WRKSRC}/doc/progs/run \
18 ${WRKSRC}/doc/articles/wiki/*.bash \
19 ${WRKSRC}/test/bench/shootout/timing.sh
21 sh_OLD_CMD= "/usr/bin/env bash"
25 ONLY_FOR_ARCHS= i386 amd64 armv6 armv6hf
27 # NB: apparently this failure is only when running under emulation via
28 # qemu; it works fine on native hardware. Let's leave the line in as a
29 # reminder, but commented out for now while this is being investigated.
30 #BROKEN_armv6= Fails to configure: wait: interrupted system call
32 .include <bsd.port.pre.mk>
34 # If cc is clang, change it to clang to help Go identify the compiler
35 .if ${COMPILER_TYPE} == "clang" && ${CC} == "cc"
42 .elif ${ARCH} == "x86_64"
45 .elif ${ARCH} == "armv6" || ${ARCH} == "armv6hf"
49 IGNORE= unknown arch ${ARCH}
52 PLIST_SUB+= ARCH=${GOARCH} \
56 @cd ${WRKSRC} && ${FIND} . -name '*.orig' -delete
61 GOROOT=${WRKSRC} GOROOT_FINAL=${PREFIX}/go14 \
62 GOBIN= GOARCH=${GOARCH} GOOS=${OPSYS:tl} \
67 @${CP} -a ${WRKSRC} ${STAGEDIR}${PREFIX}/go14
69 regression-test: build
70 cd ${WRKSRC}/src && GOROOT=${WRKSRC} PATH=${WRKSRC}/bin:${PATH} ${SH} run.bash --no-rebuild --banner
72 .include <bsd.port.post.mk>