From owner-freebsd-ports@FreeBSD.ORG Mon Nov 17 00:04:02 2003 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3077716A4CE for ; Mon, 17 Nov 2003 00:04:02 -0800 (PST) Received: from procyon.firepipe.net (procyon.firepipe.net [198.78.66.151]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8DF6443FE9 for ; Mon, 17 Nov 2003 00:03:59 -0800 (PST) (envelope-from will@csociety.org) Received: by procyon.firepipe.net (Postfix, from userid 1000) id 54AC1217E0; Mon, 17 Nov 2003 00:03:59 -0800 (PST) Date: Mon, 17 Nov 2003 00:03:59 -0800 From: Will Andrews To: Mark Edwards Message-ID: <20031117080359.GJ56603@procyon.firepipe.net> Mail-Followup-To: Mark Edwards , ports@FreeBSD.org References: <56C01C88-18D1-11D8-86C7-000A278CC960@antsclimbtree.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <56C01C88-18D1-11D8-86C7-000A278CC960@antsclimbtree.com> User-Agent: Mutt/1.4.1i cc: ports@FreeBSD.org Subject: Re: Passing an argument to a port X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Nov 2003 08:04:02 -0000 On Sun, Nov 16, 2003 at 11:40:39PM -0800, Mark Edwards wrote: > Can someone clue me in on how to pass a variable to a port during make? > > I am trying to customize the behavior of mail/imap-uw and mail/cclient. > They ordinarily use unix mailbox format when creating new mailboxes, > and I want them to create mbx format mailboxes. This is achieved by > setting CREATEPROTO=mbxproto during compilation. For example: > > make osx CREATEPROTO=mbxproto > > achieves this on my OSX machine. However, I'm not sure how to pass > this setting to the FreeBSD port. If I do: > > cd /usr/ports/mail/imap-uw > make install CREATEPROTO=mbxproto > > it doesn't happen. Is there some way to pass a given argument to the > make process from the make command in the port? make MAKE_ENV="CREATEPROTO=mbxproto" install There is also CONFIGURE_ENV. There are others but they are less frequently useful. Note that if you pass a variable to "make" at the port level, it affects how the _port_ behaves, not necessarily how the source it encompasses is built. Regards, -- wca