|
Lines 4574-4600
Link Here
|
| 4574 |
.include <bsd.port.mk></programlisting> |
4574 |
.include <bsd.port.mk></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 <bsd.port.pre.mk> |
| 4583 |
|
| 4584 |
.if defined(WITHOUT_FOO) |
| 4585 |
CONFIGURE_ARGS+= --without-foo |
| 4586 |
.else |
| 4587 |
CONFIGURE_ARGS+= --with-foo |
| 4588 |
.endif |
| 4589 |
|
| 4590 |
.include <bsd.port.post.mk></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> |