Set MANDIR in Makefile.inc to point to ${PKGMANDIR} so that the BSD makefiles that include Makefile.inc will install manpages into the correct location.
with little cleanups/modifications by me. Closes pr 4678.