Modifying a port and keeping the mods across updates
Paul Hoffman
phoffman at proper.com
Sat Jan 20 22:54:30 UTC 2007
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.
>But this doesn't work. I tried setting CFLAGS+= NSS_ENABLE_ECC=1, and
>that removed the default CFLAGS. Instead you need to use:
>
>cd /usr/ports
>echo "security/nss: CFLAGS= "`make -V CFLAGS`" -DNSS_ENABLE_ECC" >>
>/usr/local/etc/ports.conf
Yep, that works fine. Thanks! I'll pass this along to the folks in
the NSS world as well.
If the security/nss port maintainer is on this list, it would be
really grand to have NSS_ENABLE_ECC as an option in the port itself.
--Paul Hoffman
More information about the freebsd-ports
mailing list