The pkg-plist and bsd.go.mk have been unnecessarily hardcoded to "freebsd". The attached patch enhances the PLIST_SUB variable so that it will build out of the box on DragonFly.
I've been carrying an equivalent patch in DPorts, but every release of go completely breaks it, so it would be great to get this adjustment in. If approved, I can commit it.
I'm also going to attach a poudriere log to prove the port still builds fine on FreeBSD.
Created attachment 160887 [details]
Patch lang/go to enhance pkg-plist and bsd.go.mk to support DragonFly
Strange, the patch didn't attach when I created the PR.
Created attachment 160888 [details]
Poudriere build log
Attaching poudriere log to show port still works on FreeBSD after patch applied.
A commit references this bug:
Date: Thu Sep 10 22:57:48 UTC 2015
New revision: 396626
lang/go: adjust PLIST_SUB and bsd.go.mk to support DragonFly
Change hardcoded "freebsd" to variable (OPSYS:tl) to allow DragonFly
to build without patches.
Approved by: maintainer