# -*- 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 # $Id: Portfile 150613 2016-07-24 08:27:35Z raimue@macports.org $ PortSystem 1.0 PortGroup compilers 1.0 name cfitsio version 3.390 revision 1 categories science license zlib MIT {LGPL Noncommercial} platforms darwin maintainers gmail.com:Deil.Christoph openmaintainer description C access to FITS data files with optional Fortran wrappers long_description CFITSIO is a library of C and Fortran subroutines for \ reading and writing data files in FITS (Flexible Image \ Transport System) data format. CFITSIO simplifies the \ task of writing software that deals with FITS files by \ providing an easy to use set of high-level routines that \ insulate the programmer from the internal complexities \ of the FITS file format. At the same time, CFITSIO \ provides many advanced features that have made it the \ most widely used FITS file programming interface in the \ astronomical community. homepage http://heasarc.gsfc.nasa.gov/fitsio/ master_sites http://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/ distname ${name}[strsed ${version} {g/\.//}] worksrcdir ${name} checksums rmd160 515146dd69dfacc0a41f5d2727332c81b9fa501b \ sha256 62d3d8f38890275cc7a78f5e9a4b85d7053e75ae43e988f1e2390e539ba7f409 patchfiles patch-configure.diff patch-Makefile.in.diff compilers.choose fc compilers.setup -dragonegg # turn off FORTRAN compiler wrappers by removing FORTRAN from the path if {![fortran_variant_isset]} { configure.fc none } configure.cflags -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 configure.universal_args-delete --disable-dependency-tracking build.target all shared use_parallel_build no post-patch { reinplace "s|@@MPORTS_PREFIX@@|${prefix}|" ${worksrcpath}/configure } post-destroot { system "ranlib ${destroot}${prefix}/lib/libcfitsio.a" set docdir ${destroot}${prefix}/share/doc/${name} xinstall -m 755 -d ${docdir} eval xinstall -m 644 \ ${worksrcpath}/README \ [glob ${worksrcpath}/*.txt] \ ${docdir} } livecheck.type regex livecheck.url ${master_sites} livecheck.regex {cfitsio(\d+).tar.gz} livecheck.version [strsed ${version} {g/\.//}]