Page MenuHomeFreeBSD

D2957.id6647.diff
No OneTemporary

D2957.id6647.diff

Index: en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml
===================================================================
--- en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml
+++ en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml
@@ -4655,6 +4655,134 @@
</sect4>
</sect3>
+
+ <sect3 xml:id="options-targets">
+ <title>Generic Target Additions</title>
+
+ <para>For any of these targets:</para>
+
+ <itemizedlist>
+ <listitem>
+ <para><buildtarget>pre-fetch</buildtarget></para>
+ </listitem>
+
+ <listitem>
+ <para><buildtarget>post-fetch</buildtarget></para>
+ </listitem>
+
+ <listitem>
+ <para><buildtarget>pre-extract</buildtarget></para>
+ </listitem>
+
+ <listitem>
+ <para><buildtarget>post-extract</buildtarget></para>
+ </listitem>
+
+ <listitem>
+ <para><buildtarget>pre-patch</buildtarget></para>
+ </listitem>
+
+ <listitem>
+ <para><buildtarget>post-patch</buildtarget></para>
+ </listitem>
+
+ <listitem>
+ <para><buildtarget>pre-configure</buildtarget></para>
+ </listitem>
+
+ <listitem>
+ <para><buildtarget>post-configure</buildtarget></para>
+ </listitem>
+
+ <listitem>
+ <para><buildtarget>pre-build</buildtarget></para>
+ </listitem>
+
+ <listitem>
+ <para><buildtarget>post-build</buildtarget></para>
+ </listitem>
+
+ <listitem>
+ <para><buildtarget>pre-install</buildtarget></para>
+ </listitem>
+
+ <listitem>
+ <para><buildtarget>post-install</buildtarget></para>
+ </listitem>
+
+ <listitem>
+ <para><buildtarget>pre-package</buildtarget></para>
+ </listitem>
+
+ <listitem>
+ <para><buildtarget>post-package</buildtarget></para>
+ </listitem>
+
+ <listitem>
+ <para><buildtarget>pre-stage</buildtarget></para>
+ </listitem>
+
+ <listitem>
+ <para><buildtarget>post-stage</buildtarget></para>
+ </listitem>
+ </itemizedlist>
+
+ <sect4 xml:id="options-targets-on">
+ <!-- XXX: Should be <buildtarget> and not <literal> -->
+ <title><literal><replaceable>ABOVETARGET</replaceable>-<replaceable>OPT</replaceable>-on</literal></title>
+
+ <para>When option <replaceable>OPT</replaceable> is
+ selected, the target
+ <buildtarget><replaceable>ABOVETARGET</replaceable>-<replaceable>OPT</replaceable>-on</buildtarget>,
+ if defined, is executed after
+ <buildtarget><replaceable>ABOVETARGET</replaceable></buildtarget>.
+ For example:</para>
+
+ <programlisting>OPTIONS_DEFINE= OPT1
+
+post-patch-OPT1-on:
+ @${REINPLACE_CMD} -e '/opt1/d' ${WRKSRC}/Makefile</programlisting>
+
+ <para>is equivalent to:</para>
+
+ <programlisting>OPTIONS_DEFINE= OPT1
+
+.include &lt;bsd.port.options.mk&gt;
+
+post-patch:
+.if ${PORT_OPTIONS:MOPT1}
+ @${REINPLACE_CMD} -e '/opt1/d' ${WRKSRC}/Makefile
+.endif</programlisting>
+ </sect4>
+
+ <sect4 xml:id="options-targets-off">
+ <!-- XXX: Should be <buildtarget> and not <literal> -->
+ <title><literal><replaceable>ABOVETARGET</replaceable>-<replaceable>OPT</replaceable>-off</literal></title>
+
+ <para>When option <replaceable>OPT</replaceable> is
+ not selected, the target
+ <buildtarget><replaceable>ABOVETARGET</replaceable>-<replaceable>OPT</replaceable>-off</buildtarget>,
+ if defined, is executed after
+ <buildtarget><replaceable>ABOVETARGET</replaceable></buildtarget>.
+ For example:</para>
+
+ <programlisting>OPTIONS_DEFINE= OPT1
+
+post-patch-OPT1-off:
+ @${REINPLACE_CMD} -e '/opt1/d' ${WRKSRC}/Makefile</programlisting>
+
+ <para>is equivalent to:</para>
+
+ <programlisting>OPTIONS_DEFINE= OPT1
+
+.include &lt;bsd.port.options.mk&gt;
+
+post-patch:
+.if !${PORT_OPTIONS:MOPT1}
+ @${REINPLACE_CMD} -e '/opt1/d' ${WRKSRC}/Makefile
+.endif</programlisting>
+ </sect4>
+ </sect3>
</sect2>
</sect1>

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 9, 12:18 AM (10 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25053945
Default Alt Text
D2957.id6647.diff (3 KB)

Event Timeline