Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Jul 2014 10:35:35 +0000 (UTC)
From:      Mathieu Arnold <mat@FreeBSD.org>
To:        doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org
Subject:   svn commit: r45205 - head/en_US.ISO8859-1/books/porters-handbook/makefiles
Message-ID:  <201407041035.s64AZZRJ076731@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mat (ports committer)
Date: Fri Jul  4 10:35:34 2014
New Revision: 45205
URL: http://svnweb.freebsd.org/changeset/doc/45205

Log:
  Document the optional argument *_CONFIGURE_WITH can have.
  
  PH:		D341
  Reviewed by:	wblock, bcr
  Sponsored by:	Absolight

Modified:
  head/en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml

Modified: head/en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml
==============================================================================
--- head/en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml	Thu Jul  3 12:53:33 2014	(r45204)
+++ head/en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml	Fri Jul  4 10:35:34 2014	(r45205)
@@ -3836,22 +3836,33 @@ CONFIGURE_ARGS+=	--disable-test
 	  <literal>--without-${<replaceable>OPT</replaceable>_CONFIGURE_WITH}</literal>
 	  will be added to <varname>CONFIGURE_ARGS</varname> depending
 	  on the status of the option
-	  <literal><replaceable>OPT</replaceable></literal>, for
-	  example:</para>
-
-	<programlisting>OPTIONS_DEFINE=	OPT1
-OPT1_CONFIGURE_WITH=	test</programlisting>
+	  <literal><replaceable>OPT</replaceable></literal>.  An
+	  optional argument can be specified with an
+	  <literal>=</literal> symbol. This argument is only appended
+	  to the
+	  <literal>--with-<replaceable>opt</replaceable></literal>
+	  configure option.  For example:</para>
+
+	<programlisting>OPTIONS_DEFINE=	OPT1 OPT2
+OPT1_CONFIGURE_WITH=	test1
+OPT1_CONFIGURE_WITH=	test2=exhaustive</programlisting>
 
 	<para>is equivalent to:</para>
 
-	<programlisting>OPTIONS_DEFINE=	OPT1
+	<programlisting>OPTIONS_DEFINE=	OPT1 OPT2
 
 .include &lt;bsd.port.options.mk&gt;
 
 .if ${PORT_OPTIONS:MOPT1}
-CONFIGURE_ARGS+=	--with-test
+CONFIGURE_ARGS+=	--with-test1
+.else
+CONFIGURE_ARGS+=	--without-test1
+.endif
+
+.if ${PORT_OPTIONS:MOPT2}
+CONFIGURE_ARGS+=	--with-test2=exhaustive
 .else
-CONFIGURE_ARGS+=	--without-test
+CONFIGURE_ARGS+=	--without-test2
 .endif</programlisting>
       </sect3>
 



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