Modified: trunk/dports/lang/go-devel/Portfile (67163 => 67164)
--- trunk/dports/lang/go-devel/Portfile 2010-04-30 13:47:52 UTC (rev 67163)
+++ trunk/dports/lang/go-devel/Portfile 2010-04-30 13:55:00 UTC (rev 67164)
@@ -33,27 +33,19 @@
set GOROOT ${worksrcpath}
set GOBIN ${workpath}/bin
-# based on minivmac port
-# converts normal arch names into Go arch names
-proc my_arch_to_target {arch} {
- switch ${arch} {
- i386 {
- return 386
- }
- x86_64 {
- return amd64
- }
- arm {
- return arm
- }
- default {
- return -code error "unsupported architecture ${arch}"
- }
+switch ${build_arch} {
+ i386 {
+ set GOARCH 386
}
+ x86_64 {
+ set GOARCH amd64
+ }
+ default {
+ # unsupported arch, but GOARCH needs to be set to something to prevent errors
+ set GOARCH x
+ }
}
-set GOARCH [my_arch_to_target ${build_arch}]
-# based on wine port
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."