1 | # $Id: Portfile 20404 2006-11-03 02:13:21Z jberry@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | name cfitsio |
---|
5 | version 3.040 |
---|
6 | categories devel |
---|
7 | maintainers nomaintainer@macports.org |
---|
8 | description C/Fortran access to FITS data files |
---|
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}3040 |
---|
24 | |
---|
25 | worksrcdir ${name} |
---|
26 | |
---|
27 | checksums md5 ae8e5e7e3d38cf5de7d1228b40faa62d |
---|
28 | |
---|
29 | # For the g77 compiler |
---|
30 | depends_build port:gcc42 |
---|
31 | |
---|
32 | patchfiles patch-configure |
---|
33 | |
---|
34 | configure.env CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" \ |
---|
35 | FC="${prefix}/bin/gfortran-mp-4.2" |
---|
36 | |
---|
37 | build.target all shared |
---|
38 | |
---|
39 | destroot { |
---|
40 | xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name} |
---|
41 | xinstall -m 644 -W ${worksrcpath} libcfitsio.a libcfitsio.dylib \ |
---|
42 | ${destroot}${prefix}/lib |
---|
43 | system "ranlib ${destroot}${prefix}/lib/libcfitsio.a" |
---|
44 | xinstall -m 644 -W ${worksrcpath} fitsio.h fitsio2.h longnam.h \ |
---|
45 | drvrsmem.h ${destroot}${prefix}/include |
---|
46 | eval xinstall -m 644 README [glob ${worksrcpath}/*.txt] \ |
---|
47 | [glob ${worksrcpath}/*.ps] [glob ${worksrcpath}/*.doc] \ |
---|
48 | [glob ${worksrcpath}/*.toc] [glob ${worksrcpath}/*.tex] \ |
---|
49 | ${destroot}${prefix}/share/doc/${name} |
---|
50 | } |
---|
51 | |
---|