[110260] trunk/dports/graphics/rt-volume-rendering/Portfile

mojca at macports.org mojca at macports.org
Thu Aug 29 03:27:08 PDT 2013


Revision: 110260
          https://trac.macports.org/changeset/110260
Author:   mojca at macports.org
Date:     2013-08-29 03:27:08 -0700 (Thu, 29 Aug 2013)
Log Message:
-----------
rt-volume-rendering: broken until the maintainer or someone else patches it to accept new wxWidgets location

Modified Paths:
--------------
    trunk/dports/graphics/rt-volume-rendering/Portfile

Modified: trunk/dports/graphics/rt-volume-rendering/Portfile
===================================================================
--- trunk/dports/graphics/rt-volume-rendering/Portfile	2013-08-29 10:25:14 UTC (rev 110259)
+++ trunk/dports/graphics/rt-volume-rendering/Portfile	2013-08-29 10:27:08 UTC (rev 110260)
@@ -3,10 +3,11 @@
 
 PortSystem          1.0
 PortGroup           xcode 1.0
+PortGroup           wxWidgets 1.0
 
 name                rt-volume-rendering
 version             1.0.0
-revision            5
+revision            6
 categories          graphics
 platforms           darwin
 maintainers         gmail.com:bugcutt
@@ -18,14 +19,9 @@
                     sets in real-time. The application uses a texture based \
                     approach that is run entirely on the GPU.
 
-depends_lib         port:wxWidgets \
-                    port:glew \
+depends_lib         port:glew \
                     port:zlib
 
-# wxWidgets is 32-bit only
-universal_variant   no
-supported_archs     i386 ppc
-
 homepage            http://www.joeforte.net/projects/real-time-volume-rendering/
 master_sites        http://www.joeforte.net/project_data/rt_volume_rendering/
 
@@ -39,6 +35,35 @@
 xcode.project       RTVolumeRendering.xcodeproj
 xcode.configuration Release
 
+pre-fetch {
+    ui_error "The port ${name} needs to be adapted to new wxWidgets packaging"
+    return -code error "outdated port definition"
+}
+
+# TODO: test whether wxwidgets30 works at all after patching
+# in case it does, other variants may go away;
+# in case it doesn't, it should be commented out
+variant wxwidgets30 conflicts wxgtk28 wxwidgets28 description {Use wxWidgets 2.9} {
+    wxWidgets.use           wxWidgets-3.0
+    depends_lib-append      port:${wxWidgets.port}
+}
+
+variant wxwidgets28 conflicts wxgtk28 wxwidgets30 description {Use 32-bit Carbon-based wxWidgets 2.8} {
+    wxWidgets.use           wxWidgets-2.8
+    depends_lib-append      port:${wxWidgets.port}
+}
+
+variant wxgtk28 conflicts wxwidgets28 wxwidgets30 description {Use wxWidgets 2.8 with GTK} {
+    wxWidgets.use           wxGTK-2.8
+    depends_lib-append      port:${wxWidgets.port}
+}
+
+if {![variant_isset wxwidgets30] && ![variant_isset wxwidgets28] && ![variant_isset wxgtk28]} {
+    # TODO: choose the default working variant
+    default_variants +wxwidgets30
+}
+
+
 livecheck.type      regex
 livecheck.url       [lindex ${master_sites} 0]
 livecheck.regex     rtvolumerendering-(\[0-9.\]+)\\.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130829/f33d338b/attachment-0001.html>


More information about the macports-changes mailing list