I think that FreeBSD's make uses PACKAGES as special variable. Can you change it to eg. GITEA_PACKAGES?
https://github.com/go-gitea/gitea/blob/37bd5787fc67762684d035949d96a38637392f6f/Makefile#L65
We can rename it to GO_PACKAGES.
GO_PACKAGES
Most helpful comment
We can rename it to
GO_PACKAGES
.