Ticket #15928: Portfile

File Portfile, 2.1 KB (added by mlund (Mikael Lund), 16 years ago)
Line 
1# $Id$
2PortSystem          1.0
3name                xmgr
4version             4.1.2
5categories          math science
6maintainers         mac.com:mlund
7description         ACE/gr 2D plotting tool (Ancestor to Grace)
8long_description    ACE/gr, also known as Xmgr, is a 2D plotting tool for the X Window System. \
9                    While ACE/gr has a convenient point-and-click interface, most parameter\
10                    settings and operations are available through a command line interface.\
11                    NOTE: The development of ACE/gr is frozen, but is continued as Grace -- new users\
12                    should try that instead. This port is for those who cannot come to terms with the\
13                    updated UI in Grace.
14
15homepage            http://plasma-gate.weizmann.ac.il/Xmgr/
16platforms           darwin
17distname            ${name}-${version}
18patchfiles          patch-main.c
19fetch.use_epsv      no
20master_sites        ftp://plasma-gate.weizmann.ac.il/pub/xmgr4/src \
21                    ftp://wauug.erols.com/pub/X-Windows/xmgr4/src \
22                    ftp://freedom7.swmed.edu/pub/mirrors/xmgr4/src
23
24checksums           md5 2c6240bbd0c287cf8419aea48d73a2a3 \
25                    sha1 7e679de2d48ca0de8dcb0435910df3f3d7a2c2ac \
26                    rmd160 5f8b08b5e2cea0ca4e2c8b9d7d590f7bdb93a4ee
27
28depends_lib         port:openmotif
29
30configure.args      --disable-f77 --disable-netcdf --host=mac \
31                    --enable-acegr-home=${prefix}/share/xmgr
32
33variant netcdf description {Build with netcdf file support} {
34  depends_lib-append       port:netcdf
35  configure.args-delete    --disable-netcdf
36}
37
38build.target
39use_parallel_build  yes
40
41destroot {
42  # html-docs and grconvert must reside in acegr-home
43  file copy ${worksrcpath}/src/xmgr ${destroot}${prefix}/bin/
44  file mkdir ${destroot}${prefix}/share/xmgr/bin
45  file copy ${worksrcpath}/grconvert/grconvert ${destroot}${prefix}/share/xmgr/bin/
46  file delete ${worksrcpath}/doc/Makefile 
47  file copy ${worksrcpath}/doc ${destroot}${prefix}/share/xmgr/
48  file delete ${worksrcpath}/examples/Makefile
49  file copy ${worksrcpath}/examples ${destroot}${prefix}/share/xmgr/
50}