Thanks for your help everybody, /usr/local/etc/pkgtools.conf works for me. Couldn't we add similar functionality to /usr/ports/Mk/bsd.port.mk using port origin as a hook for make arguments? And then be able to use definitions like DATABASES_MYSQL40='WITH_OPENSSL=yes' in /etc/make.conf? Sasha