[46813] trunk/dports/science

takeshi at macports.org takeshi at macports.org
Fri Feb 13 22:06:46 PST 2009


Revision: 46813
          http://trac.macports.org/changeset/46813
Author:   takeshi at macports.org
Date:     2009-02-13 22:06:44 -0800 (Fri, 13 Feb 2009)
Log Message:
-----------
vis5d+: adding vis5d+.

Added Paths:
-----------
    trunk/dports/science/vis5d+/
    trunk/dports/science/vis5d+/Portfile
    trunk/dports/science/vis5d+/files/
    trunk/dports/science/vis5d+/files/patch-graph_labels.c.diff

Added: trunk/dports/science/vis5d+/Portfile
===================================================================
--- trunk/dports/science/vis5d+/Portfile	                        (rev 0)
+++ trunk/dports/science/vis5d+/Portfile	2009-02-14 06:06:44 UTC (rev 46813)
@@ -0,0 +1,102 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem      1.0
+
+name            vis5d+
+version         1.3.0-beta
+categories      science graphics
+maintainers     takeshi at macports.org
+description     OpenGL-based scientific visualization program
+long_description \
+    Vis5D+ is a system for interactive visualization of large 5-D         \
+    gridded data sets such as those produced by numerical weather models. \
+    One can make isosurfaces, contour line slices, colored slices,        \
+    volume renderings, etc of data in a 3-D grid, then rotate and         \
+    animate the images in real time. There's also a feature for wind      \
+    trajectory tracing, a way to make text anotations for publications,   \
+    support for interactive data analysis, etc.
+homepage        http://vis5d.sourceforge.net/
+platforms       darwin
+master_sites    sourceforge:vis5d
+use_bzip2       yes
+
+checksums       md5    68df5737a4569c5f10749ca87959f9cb         \
+                sha1   14d673f533521ea402cf7bee14b6ebda54466ef8 \
+                rmd160 d8390deea19ec8bc1da0f27c779afd25dfa1a42a
+
+depends_build   port:pkgconfig
+depends_lib     port:netcdf \
+                port:gettext \
+                port:libiconv
+
+patchfiles      patch-graph_labels.c.diff
+post-patch {
+    reinplace "s|-undefined|-flat_namespace -undefined|" \
+                                  ${worksrcpath}/configure
+    reinplace "s|round|roundv5d|" ${worksrcpath}/src/misc.h
+    reinplace "s|round|roundv5d|" ${worksrcpath}/src/misc.c
+    reinplace "s| round| roundv5d|" ${worksrcpath}/src/work.c
+}
+
+if {[variant_isset universal]} {
+    post-configure {
+        reinplace "s|-dynamiclib|-dynamiclib ${configure.universal_ldflags}|" \
+            ${worksrcpath}/libtool
+    }
+}
+
+configure.env               PTHREAD_LIBS=-lpthread
+configure.args              -disable-fortran            \
+                            -disable-dependency-tracing \
+                            -enable-threads
+configure.cppflags-append   -I/usr/X11/include
+
+use_parallel_build          yes
+
+post-destroot {
+    xinstall -d ${destroot}${prefix}/share/${name}/convert
+    eval xinstall -m 644 [glob ${worksrcpath}/convert/*.c] \
+        ${destroot}${prefix}/share/${name}/convert
+    eval xinstall -m 644 [glob ${worksrcpath}/convert/*.m] \
+        ${destroot}${prefix}/share/${name}/convert
+    eval xinstall -m 644 [glob ${worksrcpath}/convert/*.f] \
+        ${destroot}${prefix}/share/${name}/convert
+    xinstall -d ${destroot}${prefix}/share/${name}/userfuncs
+    foreach foo {example.f externf.m probe.f README \
+                 externf externf_all spd3d.f} {
+        xinstall -m 644 ${worksrcpath}/userfuncs/${foo} \
+        ${destroot}${prefix}/share/${name}/userfuncs
+    }
+    xinstall -d ${destroot}${prefix}/share/${name}/scripts
+    eval xinstall -m 644 [glob ${worksrcpath}/scripts/*.tcl] \
+        ${destroot}${prefix}/share/${name}/scripts
+    xinstall -d ${destroot}${prefix}/share/doc/${name}
+    xinstall -d ${destroot}${prefix}/share/doc/${name}/html
+    xinstall -d ${destroot}${prefix}/share/doc/${name}/html/stylesheet-images
+    xinstall -m 644 ${worksrcpath}/doc/vis5d.pdf \
+        ${destroot}${prefix}/share/doc/${name}
+    eval xinstall -m 644 [glob ${worksrcpath}/doc/html/*.html] \
+        ${destroot}${prefix}/share/doc/${name}/html
+    eval xinstall -m 644 \
+        [glob ${worksrcpath}/doc/html/stylesheet-images/*.gif] \
+        ${destroot}${prefix}/share/doc/${name}/html/stylesheet-images
+}
+
+#variant g95 description {compiles fortran interface for g95} \
+#    conflicts {gcc43 universal} {
+#        depends_build           port:g95
+#        configure.args-delete   -disable-fortran \
+#                                -enable-threads
+#        configure.f77           ${prefix}/bin/g95
+#        configure.env-delete    PTHREAD_LIBS=-lpthread
+#}
+
+#variant gcc43 description {compiles fortran interface for gcc43} \
+#    conflicts {g95 universal} {
+#        depends_build           port:gcc43
+#        configure.args-delete   -disable-fortran \
+#                                -enable-threads
+#        configure.f77           ${prefix}/bin/gfortran-mp-4.3
+#        configure.env-delete    PTHREAD_LIBS=-lpthread
+#}

Added: trunk/dports/science/vis5d+/files/patch-graph_labels.c.diff
===================================================================
--- trunk/dports/science/vis5d+/files/patch-graph_labels.c.diff	                        (rev 0)
+++ trunk/dports/science/vis5d+/files/patch-graph_labels.c.diff	2009-02-14 06:06:44 UTC (rev 46813)
@@ -0,0 +1,18 @@
+--- gtk/graph_labels.c.orig	2009-02-09 23:21:28.000000000 +0900
++++ gtk/graph_labels.c	2009-02-09 23:22:05.000000000 +0900
+@@ -181,6 +181,7 @@
+ 		gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(widget), FALSE);
+       break;
+ 	 default:
++  		;
+ 	 }
+ 	 break;
+   case TEXTPLOT:
+@@ -202,6 +203,7 @@
+ 		label=NULL;
+       break;
+ 	 default:
++		;
+ 	 }
+ 	 break;
+ 	 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090213/94a9878d/attachment-0001.html>


More information about the macports-changes mailing list