1 | # $Id: Portfile 40515 2008-10-04 23:18:28Z jmr@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | name opendx |
---|
5 | version 4.4.4 |
---|
6 | revision 1 |
---|
7 | categories science |
---|
8 | maintainers gwright@macports.org |
---|
9 | platforms darwin |
---|
10 | |
---|
11 | description IBM's Open Visualization Data Explorer |
---|
12 | long_description \ |
---|
13 | OpenDX is a uniquely powerful, full-featured software \ |
---|
14 | package for the visualization of scientific, \ |
---|
15 | engineering and analytical data: Its open system design \ |
---|
16 | is built on familiar standard interface environments. \ |
---|
17 | And its sophisticated data model provides users with \ |
---|
18 | great flexibility in creating visualizations. |
---|
19 | |
---|
20 | homepage http://opendx.org |
---|
21 | master_sites http://opendx.npaci.edu/source/ |
---|
22 | |
---|
23 | checksums md5 6da0c4cd21d3c08f97b7662e3aee5b7b |
---|
24 | |
---|
25 | distname dx-${version} |
---|
26 | |
---|
27 | depends_lib port:netcdf \ |
---|
28 | port:cdf \ |
---|
29 | port:cosmoplayer \ |
---|
30 | port:opendx-java40 \ |
---|
31 | port:ImageMagick \ |
---|
32 | port:openmotif |
---|
33 | |
---|
34 | platform darwin 9 { |
---|
35 | configure.cppflags-append -D_UINT64 -D_UINT32 -D_UINT16 -D_UINT8 |
---|
36 | configure.ldflags-append -dylib_file \ |
---|
37 | /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:\ |
---|
38 | /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib |
---|
39 | } |
---|
40 | |
---|
41 | variant no_java { |
---|
42 | depends_lib-delete port:cosmoplayer |
---|
43 | depends_lib-delete port:opendx-java40 |
---|
44 | configure.args-delete --with-jni-path=/System/Library/Frameworks/JavaVM.frameworks/Headers |
---|
45 | configure.args-delete --with-java40jar-path=${prefix}/share/java/java40.jar |
---|
46 | configure.args-delete --with-cosmojar-path=${prefix}/share/java/npcosmop211.jar |
---|
47 | configure.args-append --without-javadx |
---|
48 | } |
---|
49 | |
---|
50 | # |
---|
51 | # The configure.env variables are to make sure we use Apple's preinstalled |
---|
52 | # java; the kaffe port will not work to build JavaDX. |
---|
53 | # |
---|
54 | configure.javac /usr/bin/javac |
---|
55 | configure.env-append JAVA_HOME=/Library/Java/Home \ |
---|
56 | JAVA=/usr/bin/java \ |
---|
57 | JAVAH=/usr/bin/javah \ |
---|
58 | JAVAP=/usr/bin/javap |
---|
59 | configure.args --x-includes=${x11prefix}/include \ |
---|
60 | --x-libraries=${x11prefix}/lib \ |
---|
61 | --with-jni-path=/System/Library/Frameworks/JavaVM.framework/Headers \ |
---|
62 | --with-java40jar-path=${prefix}/share/java/java40.jar \ |
---|
63 | --with-cosmojar-path=${prefix}/share/java/npcosmop211.jar |
---|
64 | |
---|
65 | post-destroot { |
---|
66 | set fixers [ exec find ${destroot}${prefix} -type f | xargs grep -l /usr/lpp ] |
---|
67 | foreach fil ${fixers} { |
---|
68 | reinplace "s|/usr/lpp|${prefix}|g" ${fil} |
---|
69 | } |
---|
70 | } |
---|
71 | |
---|