Ticket #12350: cfitsio.Portfile

File cfitsio.Portfile, 1.7 KB (added by david.g.barnes@…, 17 years ago)

sample fixed portfile

Line 
1# $Id: Portfile 20404 2006-11-03 02:13:21Z jberry@macports.org $
2
3PortSystem                      1.0
4name                            cfitsio
5version                         3.040
6categories                      devel
7maintainers                     nomaintainer@macports.org
8description                     C/Fortran access to FITS data files
9long_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
19platforms                       darwin
20
21homepage                        http://heasarc.gsfc.nasa.gov/fitsio/
22master_sites            ftp://heasarc.gsfc.nasa.gov/software/fitsio/c/
23distname                        ${name}3040
24
25worksrcdir                      ${name}
26
27checksums                       md5 ae8e5e7e3d38cf5de7d1228b40faa62d
28
29# For the g77 compiler
30depends_build           port:gcc42
31
32patchfiles                      patch-configure
33
34configure.env           CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" \
35                                        FC="${prefix}/bin/gfortran-mp-4.2"
36
37build.target            all shared
38
39destroot {
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