Update editors/libreoffice-tn to version 5.2.5
[dports.git] / lang / go14 / Makefile
1 # $FreeBSD$
2
3 PORTNAME=       go14
4 PORTVERSION=    1.4.3
5 CATEGORIES=     lang
6 MASTER_SITES=   http://golang.org/dl/
7 DISTNAME=       go${PORTVERSION}.src
8
9 MAINTAINER=     jlaffaye@FreeBSD.org
10 COMMENT=        Go programming language
11
12 LICENSE=        BSD3CLAUSE
13
14 USES=           compiler shebangfix
15 SHEBANG_LANG=   sh
16 SHEBANG_FILES=  ${WRKSRC}/src/*.bash \
17                 ${WRKSRC}/doc/progs/run \
18                 ${WRKSRC}/doc/articles/wiki/*.bash \
19                 ${WRKSRC}/test/bench/shootout/timing.sh
20
21 sh_OLD_CMD=     "/usr/bin/env bash"
22 sh_CMD=         ${SH}
23
24 WRKSRC=         ${WRKDIR}/go
25 ONLY_FOR_ARCHS= i386 amd64 armv6 armv6hf
26
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
31
32 .include <bsd.port.pre.mk>
33
34 # If cc is clang, change it to clang to help Go identify the compiler
35 .if ${COMPILER_TYPE} == "clang" && ${CC} == "cc"
36 CC=clang
37 .endif
38
39 .if ${ARCH} == "i386"
40 GOARCH=386
41 GOOBJ=8
42 .elif ${ARCH} == "x86_64"
43 GOARCH=amd64
44 GOOBJ=6
45 .elif ${ARCH} == "armv6" || ${ARCH} == "armv6hf"
46 GOARCH=arm
47 GOOBJ=5
48 .else
49 IGNORE=         unknown arch ${ARCH}
50 .endif
51
52 PLIST_SUB+=     ARCH=${GOARCH} \
53                 GOOBJ=${GOOBJ}
54
55 post-patch:
56         @cd ${WRKSRC} && ${FIND} . -name '*.orig' -delete
57
58 do-build:
59         cd ${WRKSRC}/src && \
60                 CC=${CC} \
61                 GOROOT=${WRKSRC} GOROOT_FINAL=${PREFIX}/go14 \
62                 GOBIN= GOARCH=${GOARCH} GOOS=${OPSYS:tl} \
63                 CGO_ENABLED=0 \
64                 ${SH} make.bash
65
66 do-install:
67         @${CP} -a ${WRKSRC} ${STAGEDIR}${PREFIX}/go14
68
69 regression-test: build
70         cd ${WRKSRC}/src && GOROOT=${WRKSRC} PATH=${WRKSRC}/bin:${PATH} ${SH} run.bash --no-rebuild --banner
71
72 .include <bsd.port.post.mk>