source: trunk/dports/science/vis5d/Portfile

Last change on this file was 147088, checked in by takeshi@…, 18 months ago

rev bump ports that depend on netcdf. See #50911

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 5.6 KB
Line 
1# -*- 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
2# $Id: Portfile 147088 2016-03-26 09:44:32Z ryandesign@macports.org $
3
4PortSystem      1.0
5
6name            vis5d
7version         1.3.0-beta
8revision        13
9distname        ${name}+-${version}
10categories      science graphics
11license         {GPL-2 Restrictive}
12maintainers     takeshi
13description     OpenGL-based scientific visualization program
14long_description \
15    Vis5D+ is a system for interactive visualization of large 5-D         \
16    gridded data sets such as those produced by numerical weather models. \
17    One can make isosurfaces, contour line slices, colored slices,        \
18    volume renderings, etc of data in a 3-D grid, then rotate and         \
19    animate the images in real time. There's also a feature for wind      \
20    trajectory tracing, a way to make text anotations for publications,   \
21    support for interactive data analysis, etc.
22homepage        http://vis5d.sourceforge.net/
23platforms       darwin
24master_sites    sourceforge:vis5d
25use_bzip2       yes
26
27checksums       md5    68df5737a4569c5f10749ca87959f9cb         \
28                sha1   14d673f533521ea402cf7bee14b6ebda54466ef8 \
29                rmd160 d8390deea19ec8bc1da0f27c779afd25dfa1a42a
30
31depends_build   port:pkgconfig \
32                port:libtool \
33                port:ImageMagick
34depends_lib     port:netcdf \
35                port:gettext \
36                port:tcl \
37                port:libpng \
38                port:libiconv \
39                port:libGLU \
40                port:mesa \
41                port:xorg-libsm
42depends_run     port:ImageMagick
43
44patchfiles      patch-graph_labels.c.diff
45post-patch {
46#    reinplace "s|-undefined|-flat_namespace -undefined|" \
47#                                  ${worksrcpath}/configure
48    reinplace "s|-undefined suppress|-undefined dynamic_lookup|" \
49                                  ${worksrcpath}/configure
50    reinplace "s|^ac_save_positional|#ac_save_positional|" \
51                                  ${worksrcpath}/configure
52    reinplace "s|LIBTOOL='\$\(SHELL\) \$\(top_builddir\)/libtool'|LIBTOOL=\"${prefix}/bin/glibtool --tag=CC\"|" ${worksrcpath}/configure
53    reinplace "s|round|roundv5d|" ${worksrcpath}/src/misc.h
54    reinplace "s|round|roundv5d|" ${worksrcpath}/src/misc.c
55    reinplace "s| round| roundv5d|" ${worksrcpath}/src/work.c
56    reinplace "s|MISS/'80808080'X/|MISS/X'80808080'/|" ${worksrcpath}/util/igmk3d.f
57    reinplace "s|ZERO/'30'X/|ZERO/X'30'/|" ${worksrcpath}/util/sdest.f
58    reinplace "s|IMASK/'1FF'X/|IMASK/X'1FF'/|" ${worksrcpath}/util/topo.f
59    reinplace "s|ENDMRK/'80808080'X/|ENDMRK/X'80808080'/|" \
60      ${worksrcpath}/util/gg3d.f ${worksrcpath}/util/igg3d.f
61    reinplace "s|NULL/'80808080'X/|NULL/X'80808080'/|" ${worksrcpath}/util/igg3d.f
62}
63
64post-configure {
65    reinplace -E {s|-arch [^ ]+||g} ${worksrcpath}/vis5d+.pc
66    if {[variant_isset universal]} {
67        reinplace "s|-dynamiclib|-dynamiclib ${configure.universal_ldflags}|" \
68            ${worksrcpath}/libtool
69    }
70}
71
72#configure.env-append        PTHREAD_LIBS=-lpthread
73configure.env-append        RANLIB=/usr/bin/ranlib
74configure.cppflags          -DUSE_INTERP_RESULT
75configure.args              -disable-fortran            \
76                            -disable-dependency-tracing \
77                            --x-includes=${prefix}/include \
78                            --x-libraries=${prefix}/lib \
79                            --with-netcdf=${prefix} \
80                            --without-mixkit
81if {![variant_isset universal]} {
82    configure.ldflags-append    ${configure.cc_archflags}
83}
84
85# seems to use up CPU all the time
86#                            -enable-threads
87
88post-destroot {
89    xinstall -d ${destroot}${prefix}/share/${name}/convert
90    eval xinstall -m 644 [glob ${worksrcpath}/convert/*.c] \
91        ${destroot}${prefix}/share/${name}/convert
92    eval xinstall -m 644 [glob ${worksrcpath}/convert/*.m] \
93        ${destroot}${prefix}/share/${name}/convert
94    eval xinstall -m 644 [glob ${worksrcpath}/convert/*.f] \
95        ${destroot}${prefix}/share/${name}/convert
96    xinstall -d ${destroot}${prefix}/share/${name}/userfuncs
97    foreach foo {example.f externf.m probe.f README \
98                 externf externf_all spd3d.f} {
99        xinstall -m 644 ${worksrcpath}/userfuncs/${foo} \
100        ${destroot}${prefix}/share/${name}/userfuncs
101    }
102    xinstall -d ${destroot}${prefix}/share/${name}/scripts
103    eval xinstall -m 644 [glob ${worksrcpath}/scripts/*.tcl] \
104        ${destroot}${prefix}/share/${name}/scripts
105    xinstall -d ${destroot}${prefix}/share/doc/${name}
106    xinstall -d ${destroot}${prefix}/share/doc/${name}/html
107    xinstall -d ${destroot}${prefix}/share/doc/${name}/html/stylesheet-images
108    xinstall -m 644 ${worksrcpath}/doc/vis5d.pdf \
109        ${destroot}${prefix}/share/doc/${name}
110    eval xinstall -m 644 [glob ${worksrcpath}/doc/html/*.html] \
111        ${destroot}${prefix}/share/doc/${name}/html
112    eval xinstall -m 644 \
113        [glob ${worksrcpath}/doc/html/stylesheet-images/*.gif] \
114        ${destroot}${prefix}/share/doc/${name}/html/stylesheet-images
115}
116
117variant g95 description {compiles fortran interface for g95} { \
118        depends_build           port:g95
119        configure.args-delete   -disable-fortran
120        configure.f77           ${prefix}/bin/g95
121        configure.env-append    FLIBS=${prefix}/lib/libf95.a
122}
123
124#variant gcc43 description {compiles fortran interface for gcc43} \
125#    conflicts g95 {
126#        depends_build           port:gcc43
127#        configure.args-delete   -disable-fortran \
128#        configure.f77           ${prefix}/bin/gfortran-mp-4.3
129#        configure.env-delete    PTHREAD_LIBS=-lpthread
130#}
Note: See TracBrowser for help on using the repository browser.