source: trunk/dports/science/opendx/Portfile

Last change on this file was 147088, checked in by takeshi@…, 16 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: 2.7 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            opendx
7version         4.4.4
8revision        4
9categories      science
10license         Permissive
11# "IBM PUBLIC LICENSE", http://opendx.org/dlSource.html
12maintainers     nomaintainer
13platforms       darwin
14
15description     IBM's Open Visualization Data Explorer
16long_description        \
17                OpenDX is a uniquely powerful, full-featured software   \
18                package for the visualization of scientific,            \
19                engineering and analytical data: Its open system design \
20                is built on familiar standard interface environments.   \
21                And its sophisticated data model provides users with    \
22                great flexibility in creating visualizations.
23
24homepage        http://opendx.org/
25#master_sites   http://opendx.informatics.jax.org/source/
26master_sites    macports_distfiles
27
28checksums       md5 6da0c4cd21d3c08f97b7662e3aee5b7b
29
30distname        dx-${version}
31
32depends_lib     port:netcdf             \
33                port:cdf                \
34                port:cosmoplayer        \
35                port:opendx-java40      \
36                path:lib/libXm.dylib:openmotif \
37                port:libGLU \
38                port:mesa
39
40# cdf is not universal
41universal_variant no
42
43patchfiles      configure.ac.diff \
44                patch-src-exec-dpexec-packet.c.diff \
45                patch-src-exec-dxmods-local.mk.in.diff \
46                main.diff \
47                patch-src-uipp-java-Makefile.am.diff
48
49use_autoreconf yes
50autoreconf.args -fvi
51
52if {${os.platform} eq "darwin" && ${os.major} >= 9} {
53    configure.cppflags-append -D_UINT64 -D_UINT32 -D_UINT16 -D_UINT8
54}
55
56variant no_java description "disable java support"      {
57                  depends_lib-delete    port:cosmoplayer
58                  depends_lib-delete    port:opendx-java40
59                  configure.args-delete --with-jni-path=/System/Library/Frameworks/JavaVM.frameworks/Headers
60                  configure.args-delete --with-java40jar-path=${prefix}/share/java/java40.jar
61                  configure.args-delete --with-cosmojar-path=${prefix}/share/java/npcosmop211.jar
62                  configure.args-append --without-javadx
63                }
64
65#
66# The configure.env variables are to make sure we use Apple's preinstalled
67# java; the kaffe port will not work to build JavaDX.
68#
69configure.javac         /usr/bin/javac
70configure.env-append    JAVA_HOME=/Library/Java/Home    \
71                JAVA=/usr/bin/java              \
72                JAVAH=/usr/bin/javah            \
73                JAVAP=/usr/bin/javap
74
75configure.args  --with-jni-path=/System/Library/Frameworks/JavaVM.framework/Headers     \
76                --with-java40jar-path=${prefix}/share/java/java40.jar   \
77                --with-cosmojar-path=${prefix}/share/java/npcosmop211.jar
78
79post-destroot   {
80                  set fixers [ exec find ${destroot}${prefix} -type f | xargs grep -l /usr/lpp ]
81                  foreach fil ${fixers} {
82                        reinplace -locale C "s|/usr/lpp|${prefix}|g" ${fil}
83                  }
84                }
85
86livecheck.type   regex
87livecheck.url    http://opendx.org/download.html
88livecheck.regex  The latest released version is (\[0-9.\]*)\. Check
Note: See TracBrowser for help on using the repository browser.