From owner-freebsd-ports@FreeBSD.ORG Sat Jan 20 22:54:30 2007 Return-Path: X-Original-To: freeBSD-ports@freebsd.org Delivered-To: freeBSD-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2D49716A402 for ; Sat, 20 Jan 2007 22:54:30 +0000 (UTC) (envelope-from phoffman@proper.com) Received: from balder-227.proper.com (Balder-227.Proper.COM [192.245.12.227]) by mx1.freebsd.org (Postfix) with ESMTP id 09C7813C468 for ; Sat, 20 Jan 2007 22:54:29 +0000 (UTC) (envelope-from phoffman@proper.com) Received: from [10.20.30.108] (adsl-66-125-125-65.dsl.pltn13.pacbell.net [66.125.125.65]) (authenticated bits=0) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id l0KMsS4h076044 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 20 Jan 2007 15:54:29 -0700 (MST) (envelope-from phoffman@proper.com) Mime-Version: 1.0 Message-Id: In-Reply-To: <790a9fff0701201048scc83967s4edf1dae74437d39@mail.gmail.com> References: <790a9fff0701192137y703108i421c05422eda39a7@mail.gmail.com> <790a9fff0701201048scc83967s4edf1dae74437d39@mail.gmail.com> Date: Sat, 20 Jan 2007 12:44:59 -0800 To: "Scot Hetzel" From: Paul Hoffman Content-Type: text/plain; charset="us-ascii" ; format="flowed" Cc: freeBSD-ports@freebsd.org Subject: Re: Modifying a port and keeping the mods across updates X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Jan 2007 22:54:30 -0000 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