Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Nov 2003 11:10:33 -0800
From:      Mark Edwards <mark@antsclimbtree.com>
To:        Will Andrews <will@csociety.org>
Cc:        ports@FreeBSD.org
Subject:   Re: Passing an argument to a port
Message-ID:  <B8123DE4-1931-11D8-83EC-000A278CC960@antsclimbtree.com>
In-Reply-To: <20031117080359.GJ56603@procyon.firepipe.net>
References:  <56C01C88-18D1-11D8-86C7-000A278CC960@antsclimbtree.com> <20031117080359.GJ56603@procyon.firepipe.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Nov 17, 2003, at 12:03 AM, Will Andrews wrote:

> 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.

Unfortunately, that didn't do it.  Using MAKE_ENV actually caused the 
build to fail.  Using CONFIGURE_ENV had no effect at all.

I'm not sure what you mean by the last sentence.  How the port behaves? 
  I simply want to pass a variable to imapd's make process.  I want to 
influence how the source gets built.

--
Mark Edwards



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B8123DE4-1931-11D8-83EC-000A278CC960>