Ticket #4728: Portfile

File Portfile, 2.4 KB (added by sal@…, 19 years ago)

Portfile

Line 
1# $Id$
2
3PortSystem 1.0
4
5name                    cspice
6version                 N0058
7categories              science
8description             C Implementation of NAIF SPICE Library
9maintainers             sal@email.arc.nasa.gov
10long_description        The Navigation and Ancillary Information Facility (NAIF),
11    acting under the directions of NASA's Science Directorate, has \
12    built an information system named "SPICE" to assist scientists in \
13    planning and interpreting scientific observations from space-borne \
14    instruments, and to assist engineers involved in modeling, \
15    planning and executing activities needed to conduct space \
16    exploration missions. The use of SPICE extends through the \
17    post-mission data analysis phase, including help with correlation \
18    of individual instrument data sets with those from other \
19    instruments on the same or on other spacecraft.
20homepage                http://naif.jpl.nasa.gov/naif/index.html
21master_sites            ftp://naif.jpl.nasa.gov/pub/naif/toolkit//C/Mac_OSX_Apple_C/packages
22distfiles               ${name}.tar.Z
23checksums               sha1 17cbef3e27fa04e985f3ac15f360abffe584f4ef
24worksrcdir              ${name}
25use_configure           no
26build.cmd               ./makeall.csh
27destroot                {
28    xinstall -m 755 -d ${destroot}${prefix}/share/cspice
29    xinstall -m 755 -W ${worksrcpath}/data \
30        cook_01.tc cook_01.tls cook_01.tpc cook_01.tsc \
31        cook_01.tsp cook_01.tc cook_01.tsp \
32        ${destroot}${prefix}/share/cspice
33    xinstall -m 755 -d ${destroot}${prefix}/doc/${name}-${version}
34    file copy ${worksrcpath}/doc ${destroot}${prefix}/doc/cspice
35    xinstall -m 755 -W ${worksrcpath}/exe \
36        brief chronos ckbrief commnt inspekt mkspk simple \
37        spacit spkmerge states subpt tictoc tobin toxfr version \
38        ${destroot}${prefix}/bin
39    xinstall -m 755 -d ${destroot}${prefix}/include/${name}
40    xinstall -m 644 -W ${worksrcpath}/include \
41        SpiceCK.h SpiceCel.h SpiceEK.h SpiceEll.h SpicePln.h \
42        SpiceSPK.h SpiceUsr.h SpiceZdf.h SpiceZfc.h SpiceZim.h \
43        SpiceZmc.h SpiceZpl.h SpiceZpr.h SpiceZst.h f2c.h f2cMang.h \
44        fio.h fmt.h fp.h lio.h rawio.h signal1.h \
45        ${destroot}${prefix}/include/${name}
46    system "ranlib ${workscrcpath}/lib/cspice.a"
47    system "ranlib ${workscrcpath}/lib/csupport.a"
48    xinstall -m 644 -W ${worksrcpath}/lib \
49        cspice.a csupport.a \
50        ${destroot}${prefix}/lib
51}