Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Jul 2005 13:17:10 +1000
From:      Edwin Groothuis <edwin@mavetju.org>
To:        Mikhail Teterin <mi+mx@aldan.algebra.com>
Cc:        ports@freebsd.org
Subject:   Re: a portlint dilemma
Message-ID:  <20050727031710.GE1186@k7.mavetju>
In-Reply-To: <200507262156.43233.mi%2Bmx@aldan.algebra.com>
References:  <200507262156.43233.mi%2Bmx@aldan.algebra.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Jul 26, 2005 at 09:56:43PM -0400, Mikhail Teterin wrote:
> Hello! You are the portlint maintainer, so I'll ask you directly :-)
> 
> I'd like to set the default value for a new port's OPTION depending on the 
> ARCH ("on" for i386, "off" for others).
> 
> However, portlint would not let me. ARCH can only be used _after_ 
> including mk.ports.pre.mk, and OPTIONS can only be modified _before_ it.
> 
> Any suggestions? Can I just ignore this "fatal" issue?

I would just add it to the options statement:

OPTIONS=	foo	"Use foo (i386 only)" on \
		bar	"Use bar (PowerPC only)" off

Edwin
-- 
Edwin Groothuis      |            Personal website: http://www.mavetju.org
edwin@mavetju.org    |          Weblog: http://weblog.barnet.com.au/edwin/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050727031710.GE1186>