Set PKG_OPTIONS via INSTALL_ENV variable instead of using SUBST FRAMEWORK.
Applied patch from upstream.