[30417] trunk/doc-new/man/xml/portfile.7.xml

source_changes at macosforge.org source_changes at macosforge.org
Sat Oct 27 08:43:53 PDT 2007


Revision: 30417
          http://trac.macosforge.org/projects/macports/changeset/30417
Author:   mww at macports.org
Date:     2007-10-27 08:43:52 -0700 (Sat, 27 Oct 2007)

Log Message:
-----------
correct some examples/usage (configure.*)

Modified Paths:
--------------
    trunk/doc-new/man/xml/portfile.7.xml

Modified: trunk/doc-new/man/xml/portfile.7.xml
===================================================================
--- trunk/doc-new/man/xml/portfile.7.xml	2007-10-27 15:25:58 UTC (rev 30416)
+++ trunk/doc-new/man/xml/portfile.7.xml	2007-10-27 15:43:52 UTC (rev 30417)
@@ -2145,7 +2145,9 @@
           <listitem>
             <para>Set environment variables for configure; list modifiers add
             and delete items from a previous Portfile configure.env keyword,
-            or a default set by MacPorts base.</para>
+            or a default set by MacPorts base. If available, it is encouraged to
+            use the predefined options (like configure.cflags) instead of
+            modifying configure.env directly</para>
 
             <itemizedlist>
               <listitem>
@@ -2156,7 +2158,7 @@
               <listitem>
                 <para>Example:</para>
 
-                <programlisting>configure.env   CFLAGS=-I${prefix}/include/qt3
+                <programlisting>configure.env   QTDIR=${prefix}/lib/qt3
 </programlisting>
               </listitem>
             </itemizedlist>
@@ -2165,8 +2167,8 @@
           <listitem>
             <para>List modifier examples:</para>
 
-            <programlisting>configure.env-append   CFLAGS=-${prefix}/include/qt3
-configure.env-delete   LDFLAGS=-L${prefix}/lib</programlisting>
+            <programlisting>configure.env-append   ABI=32
+configure.env-delete   TCLROOT=${prefix}</programlisting>
           </listitem>
         </varlistentry>
 
@@ -2185,13 +2187,13 @@
             <itemizedlist>
               <listitem>
                 <para>Default:
-                <literal>CFLAGS=-I${prefix}/include</literal></para>
+                <literal>-O2</literal></para>
               </listitem>
 
               <listitem>
                 <para>Example:</para>
 
-                <programlisting>configure.cflags    CFLAGS=-I${worksrcpath}/include
+                <programlisting>configure.cflags    -Os -flat_namespace
 
 </programlisting>
               </listitem>
@@ -2201,8 +2203,8 @@
           <listitem>
             <para>List modifier examples:</para>
 
-            <programlisting>configure.cflags-append   "-I/usr/X11R6/include -I${worksrcpath}"
-configure.cflags-delete   -I${prefix}/include/db44</programlisting>
+            <programlisting>configure.cflags-append   "-undefined suppress"
+configure.cflags-delete   -O2</programlisting>
           </listitem>
         </varlistentry>
 
@@ -2221,13 +2223,13 @@
             <itemizedlist>
               <listitem>
                 <para>Default:
-                <literal>LDFLAGS=-L${prefix}/lib</literal></para>
+                <literal>-L${prefix}/lib</literal></para>
               </listitem>
 
               <listitem>
                 <para>Example:</para>
 
-                <programlisting>configure.ldflags    CFLAGS=-I${worksrcpath}/include
+                <programlisting>configure.ldflags    -L${worksrcpath}/zlib -lz
 
 </programlisting>
               </listitem>
@@ -2257,13 +2259,13 @@
             <itemizedlist>
               <listitem>
                 <para>Default:
-                <literal>CPPFLAGS=-I${prefix}/include</literal></para>
+                <literal>-I${prefix}/include</literal></para>
               </listitem>
 
               <listitem>
                 <para>Example:</para>
 
-                <programlisting>configure.cppflags    CPPFLAGS=-I${worksrcpath}/include
+                <programlisting>configure.cppflags    -I${worksrcpath}/include
 
 </programlisting>
               </listitem>
@@ -2273,7 +2275,7 @@
           <listitem>
             <para>List modifier examples:</para>
 
-            <programlisting>configure.cppflags-append   "-I/usr/X11R6/lib -I${worksrcpath}/lib"
+            <programlisting>configure.cppflags-append   "-I/usr/X11R6/lib -I${worksrcpath}/lib -DHAVE_RRD_12X"
 configure.cppflags-delete   -I${prefix}/lib/db44</programlisting>
           </listitem>
         </varlistentry>
@@ -2879,4 +2881,4 @@
 
     <para>Markus W. Weissmann <email>mww at macports.org</email></para>
   </refsection>
-</refentry>
\ No newline at end of file
+</refentry>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071027/228bbc0b/attachment-0001.html


More information about the macports-changes mailing list