# -*- 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
checksums rmd160 2783f7b25c8cadc9ca884547ac9c27aa26d66129 \
sha256 13c11ff70a7725563ec5fa52707a9965fce186a1766db193d08c9766ea107000 \
description Library for handling World Coordinate System in FITS files
long_description A C library, with a set of Fortran wrappers, that \
implements the World Coordinate System (WCS) standard \
in FITS (Flexible Image Transport System). \
Select a Fortran compiler variant to enable the Fortran wrappers.
homepage http://www.atnf.csiro.au/people/mcalabre/WCS/index.html
master_sites ftp://ftp.atnf.csiro.au/pub/software/wcslib/ \
ftp://ftp.eso.org/pub/dfs/pipelines/libraries/wcslib/
patchfiles patch-configure.diff
configure.args --disable-fortran \
--with-cfitsioinc=${prefix}/include \
--with-cfitsiolib=${prefix}/lib \
# The -I flag from CPPFLAGS ends up in the wrong place on the build line
# (before the -I flags for source directories). The build system will add
# its own -I and -L flags from the --with-cfitsioinc and --with-cfitsiolib
configure.cppflags-delete \
configure.ldflags-delete \
livecheck.url http://www.atnf.csiro.au/people/mcalabre/WCS/CHANGES
livecheck.regex "WCSLIB version (\\d+\\.\\d+\(\\.\\d+\)?)"
compilers.choose fc f77 f90
if {[fortran_variant_isset]} {
depends_lib-append port:pgplot
configure.args-replace --disable-fortran --enable-fortran
configure.args-replace --without-pgplot --with-pgplot
configure.args-append --with-pgplotinc=${prefix}/include \
--with-pgplotlib=${prefix}/lib