From owner-freebsd-ports@FreeBSD.ORG Sat Jan 20 18:48:19 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 B670B16A401 for ; Sat, 20 Jan 2007 18:48:19 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.184]) by mx1.freebsd.org (Postfix) with ESMTP id 520F213C4B8 for ; Sat, 20 Jan 2007 18:48:19 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: by nf-out-0910.google.com with SMTP id k27so815690nfc for ; Sat, 20 Jan 2007 10:48:18 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=jj5obOsM8fJ3tiabNSaiFV9yWGjQLE7r2hXyjUFzo4anjOurqIxx1Em5k4gCSiGAwqsHusdZbDO+genhQNNYTmJOAOc2M/kXAOuQuNg5z1RaMsIwF6hOPnJQua1nvcL9cnWIPZmgnKRdJFCsjbm3TDZDQNKwjboIOaCqsGHfRUE= Received: by 10.82.184.2 with SMTP id h2mr2996393buf.1169318896205; Sat, 20 Jan 2007 10:48:16 -0800 (PST) Received: by 10.82.186.2 with HTTP; Sat, 20 Jan 2007 10:48:16 -0800 (PST) Message-ID: <790a9fff0701201048scc83967s4edf1dae74437d39@mail.gmail.com> Date: Sat, 20 Jan 2007 12:48:16 -0600 From: "Scot Hetzel" To: "Paul Hoffman" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <790a9fff0701192137y703108i421c05422eda39a7@mail.gmail.com> 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 18:48:19 -0000 On 1/20/07, Paul Hoffman wrote: > At 11:37 PM -0600 1/19/07, Scot Hetzel wrote: > >On 1/19/07, Paul Hoffman wrote: > >>Greetings again. I have a two-part question that may be a ports FAQ, > >>but I couldn't find such a beast. > >> > >>(1) For a particular port, I need to change the the MAKE_ENV to make > >>it build the way I want. What is the proper way to do this that will > >>live beyond the next time I do a cvsup? That is, editing the Makefile > >>works just fine, but I want something that will live if the Makefile > >>gets reverted. > >> > >Use the sysutils/portconf port and define the apporiate variable in > >PREFIX/etc/ports.conf. > > This isn't working for me. I installed the port and created > /usr/local/etc/ports.conf. I added the line: > security/nss: NSS_ENABLE_ECC=1 | BUILD_OPT=1 > > But building security/nss still builds without those in the make environment. > > If I add NSS_ENABLE_ECC=1 in the Makefile, I can see it reflected in > the cc lines during make; if I try to just ue the > /usr/local/etc/ports.conf, I don't. > > Clues? > 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 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 Scot