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

mojca at macports.org mojca at macports.org
Thu Aug 29 01:00:10 PDT 2013


Revision: 110245
          https://trac.macports.org/changeset/110245
Author:   mojca at macports.org
Date:     2013-08-29 01:00:10 -0700 (Thu, 29 Aug 2013)
Log Message:
-----------
wxMaxima: use the new wxWidgets-3.0 and drop variant names wxwxdgets30/devel

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

Modified: trunk/dports/math/wxMaxima/Portfile
===================================================================
--- trunk/dports/math/wxMaxima/Portfile	2013-08-29 07:56:12 UTC (rev 110244)
+++ trunk/dports/math/wxMaxima/Portfile	2013-08-29 08:00:10 UTC (rev 110245)
@@ -2,10 +2,11 @@
 
 PortSystem      1.0
 PortGroup       active_variants 1.1
+PortGroup       wxWidgets 1.0
 
 name            wxMaxima
 version         12.01.0
-revision        2
+revision        3
 maintainers     usami-k openmaintainer
 license         gpl
 platforms       darwin
@@ -20,6 +21,9 @@
 checksums           md5     ef71ba8339fcdd7b715619af51bfa65e \
                     sha1    d80002ddea3260b0f3315072f23b4bb3cce3a10a \
                     rmd160  47891ac06c2e9b789c9581901c1e410e932beecd
+
+wxWidgets.use   wxWidgets-3.0
+
 patchfiles      patch-src_main.cpp.diff \
                 patch-src_Config.cpp.diff \
                 patch-src_wxMaxima.cpp.diff
@@ -27,41 +31,20 @@
 depends_lib     port:libiconv \
                 path:lib/pkgconfig/sdl.pc:libsdl \
                 port:libxml2 \
-                port:wxWidgets \
+                port:${wxWidgets.port} \
                 port:zlib
 depends_run     port:maxima
 
-platform darwin 11 {
-    if {[vercmp $xcodeversion 4.4] < 0} {
-        if {[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
-        }
-    }
-}
+require_active_variants gnuplot wxwidgets
 
 post-patch {
     reinplace "s|@@PREFIX@@|${prefix}|" ${worksrcpath}/src/main.cpp
 }
 
 depends_skip_archcheck  maxima
-supported_archs         i386 ppc
-configure.args  --enable-dnd --enable-printing --enable-unicode-glyphs
+configure.args  --enable-dnd --enable-printing --enable-unicode-glyphs --with-wxdir=${wxWidgets.wxdir}
 build.target-append wxMaxima.app
 
-if {[catch {registry_active wxwidgets-devel}] == 0} {
-    default_variants +wxwidgets_devel
-}
-
-if {[catch {registry_active wxwidgets30}] == 0} {
-    default_variants +wxwidgets30
-}
-
-if { ![variant_isset wxwidgets_devel] } {
-    default_variants    +wxwidgets30
-}
-
 destroot {
     xinstall -m 755 -d ${destroot}${applications_dir}
     file copy ${worksrcpath}/wxMaxima.app ${destroot}${applications_dir}
@@ -73,24 +56,4 @@
     }
 }
 
-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
 
-    require_active_variants gnuplot wxwidgets_devel
-
-    supported_archs     i386 x86_64
-}
-
-variant wxwidgets30 description {Build against wxWidgets30 rather than wxWidgets} {
-    # if the user has installed wxWidgets30, force using that
-    # (from gobject-introspection)
-    depends_lib-delete  port:wxWidgets
-    depends_lib-append  port:wxWidgets30
-
-    require_active_variants gnuplot wxwidgets30
-
-    supported_archs     i386 x86_64
-}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130829/e7b6982a/attachment.html>


More information about the macports-changes mailing list