svn commit: r44549 - head/en_US.ISO8859-1/books/porters-handbook/makefiles

Mathieu Arnold mat at FreeBSD.org
Mon Apr 14 14:20:38 UTC 2014


Author: mat (ports committer)
Date: Mon Apr 14 14:20:38 2014
New Revision: 44549
URL: http://svnweb.freebsd.org/changeset/doc/44549

Log:
  Add the OPT_USE knob's documentation.
  
  Poked by:	bdrewery
  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	Mon Apr 14 12:48:53 2014	(r44548)
+++ head/en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml	Mon Apr 14 14:20:38 2014	(r44549)
@@ -3841,6 +3841,34 @@ SUB_LIST+=	OPT1="@comment " NO_OPT1=""
 	</note>
       </sect3>
 
+      <sect3 xml:id="options-use">
+	<title><varname><replaceable>X</replaceable>_USE</varname></title>
+
+	<para>For each
+	  <literal><replaceable>key</replaceable>=<replaceable>value</replaceable></literal>
+	  pair in <varname><replaceable>X</replaceable>_USE</varname>
+	  the corresponding
+	  <varname>USE_<replaceable>KEY</replaceable></varname>
+	  variable will be set to <replaceable>value</replaceable>.
+	  If <replaceable>value</replaceable> has spaces in it,
+	  replace them with commas, they will get back as spaces
+	  during processing.  For example:</para>
+
+	<programlisting>OPTIONS_DEFINE=	OPT1
+OPT1_USE=	mysql=yes xorg=x11,xextproto,xext,xrandr</programlisting>
+
+	<para>is equivalent to:</para>
+
+	<programlisting>OPTIONS_DEFINE=	OPT1
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MOPT1}
+USE_MYSQL=	yes
+USE_XORG=	x11 xextproto xext xrandr
+.endif</programlisting>
+      </sect3>
+
       <sect3 xml:id="options-configure_enable">
 	<title><varname><replaceable>X</replaceable>_CONFIGURE_ENABLE</varname></title>
 


More information about the svn-doc-head mailing list