Modifying a port and keeping the mods across updates

RW fbsd06 at
Sun Jan 21 00:19:29 UTC 2007

On Sat, 20 Jan 2007 12:44:59 -0800
Paul Hoffman <phoffman at> wrote:

> At 12:48 PM -0600 1/20/07, Scot Hetzel wrote:
> >Are you trying to add NSS_ENABLE_ECC to the MAKE_ENV?
> >
> >Normally you would put it in ports.conf as:
> >
> >security/nss:   MAKE_ENV+= NSS_ENABLE_ECC=1
> Boy, that wasn't clear in the four lines of info on portconf.

portconf is simply a quick way of adding entries to make.conf without
having to put in explicit conditional statements like:

.if ${.CURDIR:M*/x11-toolkits/qt33}

What actually works as an entry depends on the ports system and each
individual port makefile. It's primary use is setting portknobs. With
something like MAKE_ENV+=.. you are depending on the port Makefile
not setting MAKE_ENV or setting it with a "+=" rather than "=".


More information about the freebsd-ports mailing list