View | Details | Raw Unified | Return to bug 176836
Collapse All | Expand All

(-)books/porters-handbook/book.xml (-21 lines)
Lines 4574-4600 Link Here
4574
.include &lt;bsd.port.mk&gt;</programlisting>
4574
.include &lt;bsd.port.mk&gt;</programlisting>
4575
	  </example>
4575
	  </example>
4576
4576
4577
	  <example id="ports-options-old-style-use">
4578
	    <title>Old-Style Use of <makevar>OPTIONS</makevar></title>
4579
4580
	    <programlisting>OPTIONS=	FOO "Enable option foo" On
4581
4582
.include &lt;bsd.port.pre.mk&gt;
4583
4584
.if defined(WITHOUT_FOO)
4585
CONFIGURE_ARGS+=	--without-foo
4586
.else
4587
CONFIGURE_ARGS+=	--with-foo
4588
.endif
4589
4590
.include &lt;bsd.port.post.mk&gt;</programlisting>
4591
	  </example>
4592
4593
	  <important>
4594
	    <para>This method of using <makevar>OPTIONS</makevar>
4595
	      is deprecated, and will be removed at some point.
4596
	      Do not use this method for new ports.</para>
4597
	  </important>
4598
	</sect3>
4577
	</sect3>
4599
4578
4600
	<sect3>
4579
	<sect3>

Return to bug 176836