make.conf for ports?

Radek Kozlowski radek at raadradd.com
Tue Sep 28 04:47:07 PDT 2004


On Tue, Sep 28, 2004 at 02:28:31PM +0400, Alexander Kirillov wrote:
> 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?

You could do something like this:

.if ${.CURDIR:N*/ports/databases/mysql40-server} == ""
WITH_OPENSSL=yes
.endif


-Radek


More information about the freebsd-ports mailing list