Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Jan 2005 21:40:22 GMT
From:      Edwin Groothuis <edwin@mavetju.org>
To:        freebsd-doc@FreeBSD.org
Subject:   Re: docs/76472: [patch] tell porters handbook about OPTIONS
Message-ID:  <200501192140.j0JLeMBK070515@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR docs/76472; it has been noted by GNATS.

From: Edwin Groothuis <edwin@mavetju.org>
To: FreeBSD Gnats Submit <freebsd-gnats-submit@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 &lt;bsd.port.pre.mk&gt;
  +
 -+.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@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?200501192140.j0JLeMBK070515>