There is a problem in mk/check/check-shlibs.mk: . if ${OBJECT_FMT} == "ELF" CHECK_SHLIBS_NATIVE= ${PKGSRCDIR}/mk/check/check-shlibs-elf.awk . elif ${OBJECT_FMT} == "Mach-O" CHECK_SHLIBS_NATIVE= ${PKGSRCDIR}/mk/check/check-shlibs-macho.awk . endif Clearly there is an ".else" branch missing, and you seem to have neither ELF nor Mach-O binaries.
Now I have to see why ${OBJECT_FMT} isn't getting set properly... Thanks, John