[86008] trunk/dports/graphics/wxWidgets-devel/Portfile
and.damore at macports.org
and.damore at macports.org
Tue Oct 18 01:26:05 PDT 2011
Revision: 86008
http://trac.macports.org/changeset/86008
Author: and.damore at macports.org
Date: 2011-10-18 01:26:04 -0700 (Tue, 18 Oct 2011)
Log Message:
-----------
port wxwdigets-devel: adding universal variant, darwin 11 only (i386, x86_64), close #31554, maintainer timeout
Modified Paths:
--------------
trunk/dports/graphics/wxWidgets-devel/Portfile
Modified: trunk/dports/graphics/wxWidgets-devel/Portfile
===================================================================
--- trunk/dports/graphics/wxWidgets-devel/Portfile 2011-10-18 08:22:46 UTC (rev 86007)
+++ trunk/dports/graphics/wxWidgets-devel/Portfile 2011-10-18 08:26:04 UTC (rev 86008)
@@ -7,7 +7,7 @@
conflicts wxgtk wxWidgets
version 2.9.2
revision 1
-
+license wxWindow Licence 3.1
categories graphics devel
platforms darwin
maintainers jwa
@@ -85,6 +85,25 @@
configure.args-append \
--with-macosx-sdk=/Developer/SDKs/MacOSX10.6.sdk \
--with-macosx-version-min=10.6
+
+ universal_variant yes
+ variant universal {
+ configure.args-append --enable-universal_binary
+
+ #removing single arch target
+ configure.cppflags-delete -arch ${configure.build_arch}
+
+ #enabling the following breaks a cpp test while configuring
+ #it's not needed as archs are hardcoded in configure script
+# configure.cppflags-append "-arch [join ${universal_archs} \ -arch\ ]"
+
+ #removing hardcoded ppc target as it won't build with XCode 4.1
+ #this is required due the use of --enable-universal_binary
+ #it could stay out of universal variant as ppc platform isn't supported in darwin 11
+ post-patch {
+ reinplace -- "s|-arch ppc ||" ${worksrcpath}/../configure
+ }
+ }
}
default_variants +sdl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111018/fc60dc7b/attachment.html>
More information about the macports-changes
mailing list