1 | # $Id: Portfile,v 1.5 2008/09/19 17:01:07 davidh Exp $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | name cfitsio |
---|
5 | version 3.100 |
---|
6 | categories devel |
---|
7 | maintainers nomaintainer |
---|
8 | description C/Fortran access to FITS data files with optional Fortran wrappers |
---|
9 | long_description \ |
---|
10 | CFITSIO is a library of C and Fortran subroutines for reading and \ |
---|
11 | writing data files in FITS (Flexible Image Transport System) data \ |
---|
12 | format. CFITSIO simplifies the task of writing software that deals \ |
---|
13 | with FITS files by providing an easy to use set of high-level routines \ |
---|
14 | that insulate the programmer from the internal complexities of the FITS \ |
---|
15 | file format. At the same time, CFITSIO provides many advanced features \ |
---|
16 | that have made it the most widely used FITS file programming interface \ |
---|
17 | in the astronomical community. |
---|
18 | |
---|
19 | platforms darwin |
---|
20 | |
---|
21 | homepage http://heasarc.gsfc.nasa.gov/fitsio/ |
---|
22 | master_sites ftp://heasarc.gsfc.nasa.gov/software/fitsio/c/ |
---|
23 | distname ${name}[strsed ${version} {g/\.//}] |
---|
24 | |
---|
25 | worksrcdir ${name} |
---|
26 | |
---|
27 | checksums \ |
---|
28 | ${distname}${extract.suffix} \ |
---|
29 | md5 3a4893c92f485d2d1c6cda10e49d2dcf \ |
---|
30 | sha1 a0586a5411e2882165d55c46e66473f555142e07 \ |
---|
31 | rmd160 cd2d944ad73c74053ecd4c78b7efe5195cc8d43b |
---|
32 | |
---|
33 | # turn off FORTRAN compiler wrappers by removing FORTRAN from the path |
---|
34 | configure.fc ${prefix}/bin/no-possible-compiler |
---|
35 | |
---|
36 | configure.cflags -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 |
---|
37 | |
---|
38 | build.target all shared |
---|
39 | |
---|
40 | post-destroot { |
---|
41 | system "ranlib ${destroot}${prefix}/lib/libcfitsio.a" |
---|
42 | set docdir ${destroot}${prefix}/share/doc/${name}-${version} |
---|
43 | xinstall -m 755 -d ${docdir} |
---|
44 | eval xinstall -m 644 ${worksrcpath}/README [glob ${worksrcpath}/*.txt] \ |
---|
45 | [glob ${worksrcpath}/*.ps] [glob ${worksrcpath}/*.doc] \ |
---|
46 | [glob ${worksrcpath}/*.toc] [glob ${worksrcpath}/*.tex] \ |
---|
47 | ${docdir} |
---|
48 | } |
---|
49 | |
---|
50 | variant gcc42 description {create Fortran wrappers using gcc42} conflicts gcc43 g95 g77 { |
---|
51 | depends_lib-append port:gcc42 |
---|
52 | configure.fc-delete ${prefix}/bin/no-possible-compiler |
---|
53 | configure.fc ${prefix}/bin/gfortran-mp-4.2 |
---|
54 | } |
---|
55 | |
---|
56 | variant gcc43 description {create Fortran wrappers using gcc43} conflicts gcc42 g95 g77 { |
---|
57 | depends_lib-append port:gcc43 |
---|
58 | configure.fc-delete ${prefix}/bin/no-possible-compiler |
---|
59 | configure.fc ${prefix}/bin/gfortran-mp-4.3 |
---|
60 | } |
---|
61 | |
---|
62 | variant g95 description {create Fortran wrappers using f95} conflicts gcc42 gcc43 g77 { |
---|
63 | depends_lib-append port:g95 |
---|
64 | configure.fc-delete ${prefix}/bin/no-possible-compiler |
---|
65 | configure.fc ${prefix}/bin/g95 |
---|
66 | } |
---|
67 | |
---|
68 | variant g77 description {create Fortran wrappers using g77} conflicts gcc42 gcc43 g95 { |
---|
69 | depends_lib-append bin:g77-dp-3.4:gcc34 |
---|
70 | configure.fc-delete ${prefix}/bin/no-possible-compiler |
---|
71 | configure.fc ${prefix}/bin/g77-dp-3.4 |
---|
72 | } |
---|
73 | |
---|