[53693] trunk/dports/science/vis5d+/Portfile

takeshi at macports.org takeshi at macports.org
Sat Jul 11 22:07:50 PDT 2009


Revision: 53693
          http://trac.macports.org/changeset/53693
Author:   takeshi at macports.org
Date:     2009-07-11 22:07:48 -0700 (Sat, 11 Jul 2009)
Log Message:
-----------
vis5d+: made compatible with netcdf 4

Modified Paths:
--------------
    trunk/dports/science/vis5d+/Portfile

Modified: trunk/dports/science/vis5d+/Portfile
===================================================================
--- trunk/dports/science/vis5d+/Portfile	2009-07-12 02:24:49 UTC (rev 53692)
+++ trunk/dports/science/vis5d+/Portfile	2009-07-12 05:07:48 UTC (rev 53693)
@@ -5,7 +5,7 @@
 
 name            vis5d+
 version         1.3.0-beta
-revision        1
+revision        2
 categories      science graphics
 maintainers     takeshi
 description     OpenGL-based scientific visualization program
@@ -28,12 +28,19 @@
 
 depends_build   port:pkgconfig
 depends_lib     port:netcdf \
+                port:hdf5-18 \
+                port:szip \
+                port:zlib \
+                port:ImageMagick \
                 port:gettext \
+                port:tcl \
                 port:libiconv
 
 patchfiles      patch-graph_labels.c.diff
 post-patch {
-    reinplace "s|-undefined|-flat_namespace -undefined|" \
+#    reinplace "s|-undefined|-flat_namespace -undefined|" \
+#                                  ${worksrcpath}/configure
+    reinplace "s|-undefined suppress|-undefined dynamic_lookup|" \
                                   ${worksrcpath}/configure
     reinplace "s|^ac_save_positional|#ac_save_positional|" \
                                   ${worksrcpath}/configure
@@ -48,6 +55,10 @@
     reinplace "s|NULL/'80808080'X/|NULL/X'80808080'/|" ${worksrcpath}/util/igg3d.f
 }
 
+pre-configure {
+    reinplace "s|-lnetcdf \$V5D_LIBS_AUX|-lnetcdf -lhdf5_hl -lhdf5 -lz -lcurl \$V5D_LIBS_AUX|" \
+        ${worksrcpath}/configure
+}
 if {[variant_isset universal]} {
     post-configure {
         reinplace "s|-dynamiclib|-dynamiclib ${configure.universal_ldflags}|" \
@@ -55,12 +66,14 @@
     }
 }
 
-configure.env               PTHREAD_LIBS=-lpthread
+#configure.env-append        PTHREAD_LIBS=-lpthread
+configure.cppflags-append   -I/usr/X11/include
 configure.args              -disable-fortran            \
-                            -disable-dependency-tracing
+                            -disable-dependency-tracing \
+                            --x-includes=/usr/X11/include \
+                            --x-libraries=/usr/X11/lib
 # seems to use up CPU all the time
 #                            -enable-threads
-configure.cppflags-append   -I/usr/X11/include
 
 use_parallel_build          yes
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090711/e5e3d469/attachment-0001.html>


More information about the macports-changes mailing list