Modified: trunk/dports/lang/go/Portfile (140806 => 140807)
--- trunk/dports/lang/go/Portfile 2015-10-03 16:06:47 UTC (rev 140806)
+++ trunk/dports/lang/go/Portfile 2015-10-03 16:54:24 UTC (rev 140807)
@@ -36,6 +36,8 @@
set GOROOT ${worksrcpath}
set GOROOT_FINAL ${prefix}/lib/${name}
+supported_archs i386 x86_64
+
switch ${build_arch} {
i386 {
set GOARCH 386
@@ -43,12 +45,8 @@
x86_64 {
set GOARCH amd64
}
-}
-
-pre-fetch {
- if {"big" == ${os.endian}} {
- ui_error "${name} can only be used on an Intel Mac or other computer with a little-endian processor."
- return -code error "incompatible processor"
+ default {
+ set GOARCH {}
}
}
@@ -84,7 +82,6 @@
foreach f {go gofmt} {
system -W ${destroot}${prefix}/bin/ "ln -s ../lib/${name}/bin/$f ./$f"
-# ln -s ${grfdir}/bin/${f} ${destroot}${prefix}/bin/${f}
}
xinstall -m 644 -W ${worksrcpath} \
Modified: trunk/dports/lang/go-1.4/Portfile (140806 => 140807)
--- trunk/dports/lang/go-1.4/Portfile 2015-10-03 16:06:47 UTC (rev 140806)
+++ trunk/dports/lang/go-1.4/Portfile 2015-10-03 16:54:24 UTC (rev 140807)
@@ -34,6 +34,8 @@
set GOROOT ${worksrcpath}
set GOROOT_FINAL ${prefix}/lib/${name}
+supported_archs i386 x86_64
+
switch ${build_arch} {
i386 {
set GOARCH 386
@@ -41,12 +43,8 @@
x86_64 {
set GOARCH amd64
}
-}
-
-pre-fetch {
- if {"big" == ${os.endian}} {
- ui_error "${name} can only be used on an Intel Mac or other computer with a little-endian processor."
- return -code error "incompatible processor"
+ default {
+ set GOARCH {}
}
}