I've got a solution now. After the build failed just go to your WRKDIR and run gmake. The build will finish just fine. I've got no idea why it doesn't work through the ports.