docs/76472: [patch] tell porters handbook about OPTIONS

Edwin Groothuis edwin at mavetju.org
Wed Jan 19 21:40:23 UTC 2005


The following reply was made to PR docs/76472; it has been noted by GNATS.

From: Edwin Groothuis <edwin at mavetju.org>
To: FreeBSD Gnats Submit <freebsd-gnats-submit at freebsd.org>
Cc:  
Subject: Re: docs/76472: [patch] tell porters handbook about OPTIONS
Date: Thu, 20 Jan 2005 08:30:44 +1100

 As noted by pav: option names should be uppercase:
 
 --- makefile-options.diff.old	Thu Jan 20 08:29:45 2005
 +++ makefile-options.diff	Thu Jan 20 08:28:43 2005
 @@ -24,7 +24,7 @@
  +	  <title>Syntax</title>
  +	  <para>The syntax for the <makevar>OPTIONS</makevar> variable is:
  +
 -+<programlisting>OPTIONS=	option	"descriptive text" default ...
 ++<programlisting>OPTIONS=	OPTION	"descriptive text" default ...
  +</programlisting>
  +
  +	  The value for default is either <literal>ON</literal> or
 @@ -48,15 +48,15 @@
  +	  <title>Example</title>
  +	  <example id="ports-options-simple-use">
  +	    <title>Simple use of <makevar>OPTIONS</makevar></title>
 -+	    <para><programlisting>OPTIONS=	foo "Enable option foo" On \
 -+			bar "Support feature bar" Off
 ++	    <para><programlisting>OPTIONS=	FOO "Enable option foo" On \
 ++			BAR "Support feature bar" Off
  +
  +.include <bsd.port.pre.mk>
  +
 -+.if defined(WITH_FOO)
 -+CONFIGURE_ARGS+=	--with-foo
 -+.else
 ++.if defined(WITHOUT_FOO)
  +CONFIGURE_ARGS+=	--without-foo
 ++.else
 ++CONFIGURE_ARGS+=	--with-foo
  +.endif
  +
  +.if defined(WITH_BAR)
 
 -- 
 Edwin Groothuis      |            Personal website: http://www.mavetju.org
 edwin at mavetju.org    |          Weblog: http://weblog.barnet.com.au/edwin/



More information about the freebsd-doc mailing list