a portlint dilemma

Edwin Groothuis edwin at mavetju.org
Wed Jul 27 03:17:19 GMT 2005


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 at mavetju.org    |          Weblog: http://weblog.barnet.com.au/edwin/


More information about the freebsd-ports mailing list