It requires FNM_EXTMATCH in order to build. This patch is based on an existing patch for gettext (Ports/gettext/patches/fnmatch.patch).