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
RevLine 
[79559]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
[20267]2# $Id: Portfile 98560 2012-10-08 21:48:45Z ryandesign@macports.org $
[7052]3
[79559]4PortSystem          1.0
[40047]5
[79559]6name                cfitsio
[94480]7version             3.300
[97763]8revision            1
[79559]9categories          science
[84921]10license             zlib MIT {LGPL Noncommercial}
[79559]11platforms           darwin
[98560]12maintainers         gmail.com:Deil.Christoph openmaintainer
[40082]13
[79559]14description         C access to FITS data files with optional Fortran wrappers
[7052]15
[79559]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.
[7052]26
[79559]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
[94480]33checksums           rmd160  ebd71ee83a429bde3014a644ee7e872a20f99075 \
34                    sha256  7a2b5401c184297df1e44a4f4de564feff74d64d038918213526aa454db03f3e
[7052]35
[79559]36patchfiles          patch-configure.diff
[7052]37
[40080]38# turn off FORTRAN compiler wrappers by removing FORTRAN from the path
[79559]39configure.fc        ${prefix}/bin/no-possible-compiler
40configure.cflags    -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
[61064]41configure.universal_args-delete --disable-dependency-tracking
[7052]42
[79559]43build.target        all shared
[15909]44
[79559]45use_parallel_build  no
[77988]46
[44267]47post-patch {
[79559]48    reinplace "s|@@MPORTS_PREFIX@@|${prefix}|" ${worksrcpath}/configure
[44267]49}
50
[30984]51post-destroot {
[79559]52    system "ranlib ${destroot}${prefix}/lib/libcfitsio.a"
[79560]53    set docdir ${destroot}${prefix}/share/doc/${name}
[79559]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}
[7052]62}
63
[97763]64variant gcc43 description {create Fortran wrappers using gcc43} conflicts gcc44 gcc45 gcc46 gcc47 g95 {
[79559]65    depends_lib-append  port:gcc43
66    configure.fc        ${prefix}/bin/gfortran-mp-4.3
[40080]67}
68
[97763]69variant gcc44 description {create Fortran wrappers using gcc44} conflicts gcc43 gcc45 gcc46 gcc47 g95 {
[79559]70    depends_lib-append  port:gcc44
71    configure.fc        ${prefix}/bin/gfortran-mp-4.4
[52412]72}
73
[97763]74variant gcc45 description {create Fortran wrappers using gcc45} conflicts gcc43 gcc44 gcc46 gcc47 g95 {
[90820]75    depends_lib-append  port:gcc45
76    configure.fc        ${prefix}/bin/gfortran-mp-4.5
77}
78
[97763]79variant gcc46 description {create Fortran wrappers using gcc46} conflicts gcc43 gcc44 gcc45 gcc47 g95 {
[94480]80    depends_lib-append  port:gcc46
81    configure.fc        ${prefix}/bin/gfortran-mp-4.6
82}
83
[97763]84variant gcc47 description {create Fortran wrappers using gcc47} conflicts gcc43 gcc44 gcc45 gcc46 g95 {
[94480]85    depends_lib-append  port:gcc47
86    configure.fc        ${prefix}/bin/gfortran-mp-4.7
87}
88
[97763]89variant g95 description {create Fortran wrappers using f95} conflicts gcc43 gcc44 gcc45 gcc46 gcc47 {
[79559]90    depends_lib-append  port:g95
91    configure.fc        ${prefix}/bin/g95
[40080]92}
93
[79559]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.