I patched config.mk to make it working on g/fbsd 7.0. It compiles and works fine.
Created attachment 161998 [details, diff] patch here's the patch
I've added sed line to drop -DHAVE_SHADOW_H which cause build failure on bsd.