[98113] trunk/dports/math/wxMaxima/Portfile

and.damore at macports.org and.damore at macports.org
Tue Sep 25 05:22:01 PDT 2012


Revision: 98113
          http://trac.macports.org//changeset/98113
Author:   and.damore at macports.org
Date:     2012-09-25 05:22:01 -0700 (Tue, 25 Sep 2012)
Log Message:
-----------
port wxmaxima: choose right SDK using Xcode 4.4.x on 10.7, better handle wxwidgets dependency; ticket #36157; maintainer timeout

Modified Paths:
--------------
    trunk/dports/math/wxMaxima/Portfile

Modified: trunk/dports/math/wxMaxima/Portfile
===================================================================
--- trunk/dports/math/wxMaxima/Portfile	2012-09-25 12:18:39 UTC (rev 98112)
+++ trunk/dports/math/wxMaxima/Portfile	2012-09-25 12:22:01 UTC (rev 98113)
@@ -23,12 +23,14 @@
 depends_lib     port:libiconv \
                 path:lib/pkgconfig/sdl.pc:libsdl \
                 port:libxml2 \
-                bin:wx-config:wxWidgets \
+                port:wxWidgets \
                 port:zlib
 depends_run     port:maxima
 
 platform darwin 11 {
-    if {[vercmp $xcodeversion 4.3] >= 0} {
+    if {[vercmp $xcodeversion 4.4] >= 0} {
+        configure.cxxflags-append -isysroot ${developer_dir}/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk
+    } elseif {[vercmp $xcodeversion 4.3] >= 0} {
         configure.cxxflags-append -isysroot ${developer_dir}/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk
     } else {
         configure.cxxflags-append -isysroot ${developer_dir}/SDKs/MacOSX10.6.sdk
@@ -44,6 +46,10 @@
 configure.args  --enable-dnd --enable-printing --enable-unicode-glyphs
 build.target-append wxMaxima.app
 
+if {[catch {registry_active wxwidgets-devel}] == 0} {
+    default_variants +wxwidgets_devel
+}
+
 destroot {
     xinstall -m 755 -d ${destroot}${applications_dir}
     file copy ${worksrcpath}/wxMaxima.app ${destroot}${applications_dir}
@@ -54,3 +60,11 @@
         xinstall -m 644 ${worksrcpath}/${f} ${destroot}${docPath}
     }
 }
+
+variant wxwidgets_devel description {Build against wxWidgets-devel rather than wxWidgets} {
+    # if the user has installed wxWidgets-devel, force using that
+    # (from gobject-introspection)
+    depends_lib-delete  port:wxWidgets
+    depends_lib-append  port:wxWidgets-devel
+    supported_archs     i386 x86_64
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120925/9dfbc747/attachment-0001.html>


More information about the macports-changes mailing list