Index: guide/xml/portfile-keywords.xml
===================================================================
--- guide/xml/portfile-keywords.xml (révision 73250)
+++ guide/xml/portfile-keywords.xml (copie de travail)
@@ -191,5 +191,34 @@
platforms darwin freebsd
+
+
+ supported_archs
+
+
+ The architecture the port can be built for.
+
+ Its value will be used to define the configure.build_arch
+ and configure.universal_archs
variables.
+
+ Supported values are : noarch
or any combination of
+ ppc
, ppc64
, i386
, x86_64
.
+ noarch
is used to indicate that the port is architecture independent
+ (eg. a java program).
+
+ If the building architecture isn't among supported_archs
,
+ port fails with an error message except when building on x86_64
+ (resp. ppc64
) and supported_archs
contains
+ i386
(resp. ppc
). In this case, the port will be built
+ in 32 bit mode.
+
+ One should use supported_archs
instead of hard-coding
+ configure.build_arch
or configure.universal_archs
+ in the Portfile, eg. when a programs uses the Carbon API and
+ hence wont build in 64 bit mode.
+
+ supported_archs ppc i386
+
+