[62014] trunk/dports/textproc/xercesc/Portfile
ryandesign at macports.org
ryandesign at macports.org
Sun Dec 27 14:23:11 PST 2009
Revision: 62014
http://trac.macports.org/changeset/62014
Author: ryandesign at macports.org
Date: 2009-12-27 14:23:10 -0800 (Sun, 27 Dec 2009)
Log Message:
-----------
xercesc: specify the number of bits to build for; use muniversal portgroup to be able to give each arch the right number of bits; see #14396
Modified Paths:
--------------
trunk/dports/textproc/xercesc/Portfile
Modified: trunk/dports/textproc/xercesc/Portfile
===================================================================
--- trunk/dports/textproc/xercesc/Portfile 2009-12-27 22:21:42 UTC (rev 62013)
+++ trunk/dports/textproc/xercesc/Portfile 2009-12-27 22:23:10 UTC (rev 62014)
@@ -1,6 +1,8 @@
# $Id$
PortSystem 1.0
+PortGroup muniversal 1.0
+
name xercesc
version 2.8.0
revision 1
@@ -25,7 +27,25 @@
configure.args -c ${configure.cc} \
-x ${configure.cxx}
configure.cmd ./runConfigure
+configure.universal_args-delete --disable-dependency-tracking
+proc bits_arg_for_arch {arch} {
+ switch ${arch} {
+ x86_64 -
+ ppc64 { return {-b 64} }
+ i386 -
+ ppc { return {-b 32} }
+ }
+}
+
+if {[variant_isset universal]} {
+ foreach arch {x86_64 ppc64 i386 ppc} {
+ set merger_configure_args(${arch}) [bits_arg_for_arch ${arch}]
+ }
+} else {
+ configure.args-append [bits_arg_for_arch ${configure.build_arch}]
+}
+
build.dir ${worksrcpath}/src/xercesc
build.env ${configure.env}
build.type gnu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091227/8790d5c7/attachment-0001.html>
More information about the macports-changes
mailing list