# -*- 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
set branch [join [lrange [split ${version} .] 0 1] .]
maintainers {aronnax @lpsinger}
description C++ language implementation of HEALPix
Software for pixelization, hierarchical indexing, synthesis, analysis, and \
visualization of data on the sphere. This is the ${description}.
homepage http://healpix.sourceforge.net
master_sites sourceforge:project/healpix/Healpix_${branch}/
distname healpix_cxx-${version}
checksums rmd160 6b2971e96d3bfe98423bb069d244f1d764fd81a0 \
sha256 4b7f3d355c8121fb7b0902757cb943fed18e5df9797ba473c69ed4483dc87ae6
depends_build port:pkgconfig
variant openmp description "enable OpenMP parallel acceleration" {
# Pick a compiler that supports openmp
compiler.whitelist macports-clang-3.9 macports-clang-3.8 macports-clang-3.7 macports-gcc-6 macports-gcc-5 macports-gcc-4.8 macports-gcc-4.7 macports-gcc-4.6 macports-gcc-4.5 macports-gcc-4.4 macports-gcc-4.3
compiler.fallback macports-clang-3.9
if {[file exists ${prefix}/lib/libchealpix.a]
&& ![catch {set vers [lindex [registry_active healpix] 0]}]
&& [vercmp [lindex $vers 1] 3.00] < 0} {
registry_deactivate_composite healpix "" [list ports_nodepcheck 1]