Date: Mon, 14 Apr 2014 14:20:38 +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: r44549 - head/en_US.ISO8859-1/books/porters-handbook/makefiles Message-ID: <201404141420.s3EEKcuT068125@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404141420.s3EEKcuT068125>