[86704] trunk/base/doc/portfile.7

ryandesign at macports.org ryandesign at macports.org
Tue Nov 1 08:39:41 PDT 2011


Revision: 86704
          http://trac.macports.org/changeset/86704
Author:   ryandesign at macports.org
Date:     2011-11-01 08:39:40 -0700 (Tue, 01 Nov 2011)
Log Message:
-----------
portfile.7: modernize the platform block examples

Modified Paths:
--------------
    trunk/base/doc/portfile.7

Modified: trunk/base/doc/portfile.7
===================================================================
--- trunk/base/doc/portfile.7	2011-11-01 15:29:01 UTC (rev 86703)
+++ trunk/base/doc/portfile.7	2011-11-01 15:39:40 UTC (rev 86704)
@@ -1792,7 +1792,7 @@
 .Xc
 The body is executed if the given platform/version/arch combination matches
 os.platform or os.subplatform and/or os.major and/or os.arch.
-The following examples are from the databases/db4 and devel/libidl1
+The following examples are from the lang/php5, audio/flac and sysutils/getopt
 .Nm Portfiles
 respectively.
 .br
@@ -1801,20 +1801,18 @@
 .br
 .Sy Example:
 .Bd -literal -offset indent -compact
-platform darwin 6 { configure.args-append   --enable-tcl \e\
-
-        --with-tcl=/System/Library/Tcl/8.3 }
+platform darwin 10 { configure.env-append LIBS=-lresolv }
 .Ed
 .br
 .Sy Example:
 .Bd -literal -offset indent -compact
-platform darwin powerpc { configure.args-append \e\
-
-        --host=${os.arch}-apple-rhapsody${os.version} }
-platform darwin i386 { configure.args-append \e\
-
-        --host=i386-gnu-rhapsody${os.version} }
+platform darwin i386 { configure.args-append --disable-asm-optimizations }
 .Ed
+.br
+.Sy Example:
+.Bd -literal -offset indent -compact
+platform darwin 8 powerpc { configure.universal_ldflags-append -liconv }
+.Ed
 .El
 .Sh PORTGROUP
 To factorize the work with similar ports, MacPorts provides the notion of
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111101/41216b46/attachment-0001.html>


More information about the macports-changes mailing list