Improvement as suggested by Greg Lewis: The attached patch makes the foiltex port/package look for mktexlsr in LOCALBASE, PKG_PREFIX and /usr/local. That should find it in most cases. How-To-Repeat: Exactly.
State Changed From-To: open->closed Committed, thanks! Suggest you also have a pkg-deinstall script to update the LaTeX cache when the port is deinstalled. This would probably be identical to pkg-install.