Ticket #22110: Portfile

File Portfile, 3.9 KB (added by jtomshine@…, 15 years ago)
Line 
1# $Id$
2
3PortSystem          1.0
4
5name                libnova
6
7version             0.13.0
8
9categories          science
10
11maintainers         gmail.com:jtomshine
12
13description         Celestial Mechanics, Astrometry and Astrodynamics Library
14long_description    libnova is a general purpose, double precision, Celestial \
15                    Mechanics, Astrometry and Astrodynamics library.  The \
16                    intended audience of libnova is C / C++ programmers, \
17                    astronomers and anyone else interested in calculating \
18                    positions of astronomical objects or celestial mechanics. \
19                    libnova is the calculation engine used by the Nova project \
20                    and most importantly, is free software.
21                   
22homepage            http://libnova.sourceforge.net/
23
24platforms           darwin
25
26master_sites        http://downloads.sourceforge.net/project/libnova/libnova/V%200.13.0/libnova-0.13.0.tar.gz?use_mirror=softlayer
27
28checksums           md5 32f67b1ae28372582da7fe4e6f554dcd \
29                    sha1 87ecd8e5c8c1510c17928e4681c319d12efec76f \
30                    rmd160 fcaf9cf2553be4853364f84b4b77ebbd01abd99d
31                   
32post-destroot {
33    # fix internal references in libnova files with symbolic links
34    # the originals are screwed up, they all point to
35    # include/libnova/foo_file.h rather than just include/foo_file.h, but a
36    # simple "fix" with sed breaks the code so here's my cludge (installs, #
37    # works, and uninstalls okay)
38   
39    ln -s libnova/aberration.h          ${destroot}${prefix}/include
40    ln -s libnova/airmass.h             ${destroot}${prefix}/include
41    ln -s libnova/angular_separation.h  ${destroot}${prefix}/include
42    ln -s libnova/apparent_position.h   ${destroot}${prefix}/include
43    ln -s libnova/asteroid.h            ${destroot}${prefix}/include
44    ln -s libnova/comet.h               ${destroot}${prefix}/include
45    ln -s libnova/dynamical_time.h      ${destroot}${prefix}/include
46    ln -s libnova/earth.h               ${destroot}${prefix}/include
47    ln -s libnova/elliptic_motion.h     ${destroot}${prefix}/include
48    ln -s libnova/heliocentric_time.h   ${destroot}${prefix}/include
49    ln -s libnova/hyperbolic_motion.h   ${destroot}${prefix}/include
50    ln -s libnova/julian_day.h          ${destroot}${prefix}/include
51    ln -s libnova/jupiter.h             ${destroot}${prefix}/include
52    ln -s libnova/libnova.h             ${destroot}${prefix}/include
53    ln -s libnova/ln_types.h            ${destroot}${prefix}/include
54    ln -s libnova/lunar.h               ${destroot}${prefix}/include
55    ln -s libnova/mars.h                ${destroot}${prefix}/include
56    ln -s libnova/mercury.h             ${destroot}${prefix}/include
57    ln -s libnova/neptune.h             ${destroot}${prefix}/include
58    ln -s libnova/nutation.h            ${destroot}${prefix}/include
59    ln -s libnova/parabolic_motion.h    ${destroot}${prefix}/include
60    ln -s libnova/parallax.h            ${destroot}${prefix}/include
61    ln -s libnova/pluto.h               ${destroot}${prefix}/include
62    ln -s libnova/precession.h          ${destroot}${prefix}/include
63    ln -s libnova/proper_motion.h       ${destroot}${prefix}/include
64    ln -s libnova/refraction.h          ${destroot}${prefix}/include
65    ln -s libnova/rise_set.h            ${destroot}${prefix}/include
66    ln -s libnova/saturn.h              ${destroot}${prefix}/include
67    ln -s libnova/sidereal_time.h       ${destroot}${prefix}/include
68    ln -s libnova/solar.h               ${destroot}${prefix}/include
69    ln -s libnova/transform.h           ${destroot}${prefix}/include
70    ln -s libnova/uranus.h              ${destroot}${prefix}/include
71    ln -s libnova/utility.h             ${destroot}${prefix}/include
72    ln -s libnova/venus.h               ${destroot}${prefix}/include
73    ln -s libnova/vsop87.h              ${destroot}${prefix}/include
74   
75}