source: trunk/dports/science/cfitsio/Portfile @ 98560

Last change on this file since 98560 was 98560, checked in by ryandesign@…, 8 years ago

cfitsio: new maintainer (#34940)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.7 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 98560 2012-10-08 21:48:45Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                cfitsio
7version             3.300
8revision            1
9categories          science
10license             zlib MIT {LGPL Noncommercial}
11platforms           darwin
12maintainers         gmail.com:Deil.Christoph openmaintainer
13
14description         C access to FITS data files with optional Fortran wrappers
15
16long_description    CFITSIO is a library of C and Fortran subroutines for \
17                    reading and writing data files in FITS (Flexible Image \
18                    Transport System) data format. CFITSIO simplifies the \
19                    task of writing software that deals with FITS files by \
20                    providing an easy to use set of high-level routines that \
21                    insulate the programmer from the internal complexities \
22                    of the FITS file format. At the same time, CFITSIO \
23                    provides many advanced features that have made it the \
24                    most widely used FITS file programming interface in the \
25                    astronomical community.
26
27homepage            http://heasarc.gsfc.nasa.gov/fitsio/
28master_sites        http://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/
29distname            ${name}[strsed ${version} {g/\.//}]
30worksrcdir          ${name}
31#dist_subdir         ${name}/${version}_${revision}
32
33checksums           rmd160  ebd71ee83a429bde3014a644ee7e872a20f99075 \
34                    sha256  7a2b5401c184297df1e44a4f4de564feff74d64d038918213526aa454db03f3e
35
36patchfiles          patch-configure.diff
37
38# turn off FORTRAN compiler wrappers by removing FORTRAN from the path
39configure.fc        ${prefix}/bin/no-possible-compiler
40configure.cflags    -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
41configure.universal_args-delete --disable-dependency-tracking
42
43build.target        all shared
44
45use_parallel_build  no
46
47post-patch {
48    reinplace "s|@@MPORTS_PREFIX@@|${prefix}|" ${worksrcpath}/configure
49}
50
51post-destroot {
52    system "ranlib ${destroot}${prefix}/lib/libcfitsio.a"
53    set docdir ${destroot}${prefix}/share/doc/${name}
54    xinstall -m 755 -d ${docdir}
55    eval xinstall -m 644 \
56        ${worksrcpath}/README \
57        [glob ${worksrcpath}/*.txt] \
58        [glob ${worksrcpath}/*.ps] \
59        [glob ${worksrcpath}/*.doc] \
60        [glob ${worksrcpath}/*.tex] \
61        ${docdir}
62}
63
64variant gcc43 description {create Fortran wrappers using gcc43} conflicts gcc44 gcc45 gcc46 gcc47 g95 {
65    depends_lib-append  port:gcc43
66    configure.fc        ${prefix}/bin/gfortran-mp-4.3
67}
68
69variant gcc44 description {create Fortran wrappers using gcc44} conflicts gcc43 gcc45 gcc46 gcc47 g95 {
70    depends_lib-append  port:gcc44
71    configure.fc        ${prefix}/bin/gfortran-mp-4.4
72}
73
74variant gcc45 description {create Fortran wrappers using gcc45} conflicts gcc43 gcc44 gcc46 gcc47 g95 {
75    depends_lib-append  port:gcc45
76    configure.fc        ${prefix}/bin/gfortran-mp-4.5
77}
78
79variant gcc46 description {create Fortran wrappers using gcc46} conflicts gcc43 gcc44 gcc45 gcc47 g95 {
80    depends_lib-append  port:gcc46
81    configure.fc        ${prefix}/bin/gfortran-mp-4.6
82}
83
84variant gcc47 description {create Fortran wrappers using gcc47} conflicts gcc43 gcc44 gcc45 gcc46 g95 {
85    depends_lib-append  port:gcc47
86    configure.fc        ${prefix}/bin/gfortran-mp-4.7
87}
88
89variant g95 description {create Fortran wrappers using f95} conflicts gcc43 gcc44 gcc45 gcc46 gcc47 {
90    depends_lib-append  port:g95
91    configure.fc        ${prefix}/bin/g95
92}
93
94livecheck.type      regex
95livecheck.url       ${master_sites}
96livecheck.regex     {cfitsio(\d+).tar.gz}
97livecheck.version   [strsed ${version} {g/\.//}]
Note: See TracBrowser for help on using the repository browser.