Ticket #18404: Portfile

File Portfile, 2.3 KB (added by cedric.ody@…, 16 years ago)

UsedPortfile

Line 
1# $Id: Portfile 40515 2008-10-04 23:18:28Z jmr@macports.org $
2
3PortSystem 1.0
4name            opendx
5version         4.4.4
6revision        1
7categories      science
8maintainers     gwright@macports.org
9platforms       darwin
10
11description     IBM's Open Visualization Data Explorer
12long_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
20homepage        http://opendx.org
21master_sites    http://opendx.npaci.edu/source/
22
23checksums       md5 6da0c4cd21d3c08f97b7662e3aee5b7b
24
25distname        dx-${version}
26
27depends_lib     port:netcdf             \
28                port:cdf                \
29                port:cosmoplayer        \
30                port:opendx-java40      \
31                port:ImageMagick        \
32                port:openmotif
33
34platform 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
41variant 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#
54configure.javac         /usr/bin/javac
55configure.env-append    JAVA_HOME=/Library/Java/Home    \
56                JAVA=/usr/bin/java              \
57                JAVAH=/usr/bin/javah            \
58                JAVAP=/usr/bin/javap
59configure.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
65post-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