source: trunk/dports/science/healpix-cxx/Portfile

Last change on this file was 153427, checked in by aronnax@…, 12 months ago

healpix-cxx: build with clang, now that it supports OpenMP

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 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 153427 2016-09-30 02:27:14Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                healpix-cxx
7version             3.30.0
8set branch          [join [lrange [split ${version} .] 0 1] .]
9revision            2
10categories          science
11license             GPL-2
12maintainers         aronnax
13description         C++ language implementation of HEALPix
14long_description \
15  Software for pixelization, hierarchical indexing, synthesis, analysis, and \
16  visualization of data on the sphere. This is the ${description}.
17homepage            http://healpix.sourceforge.net
18platforms           darwin
19master_sites        sourceforge:project/healpix/Healpix_${branch}/
20distname            healpix_cxx-${version}
21
22checksums           rmd160  6b2971e96d3bfe98423bb069d244f1d764fd81a0 \
23                    sha256  4b7f3d355c8121fb7b0902757cb943fed18e5df9797ba473c69ed4483dc87ae6
24
25depends_build       port:pkgconfig
26depends_lib         port:cfitsio
27
28configure.args-append \
29                    --disable-openmp
30
31default_variants    +openmp
32
33variant openmp description "enable OpenMP parallel acceleration" {
34    configure.args-delete \
35                    --disable-openmp
36
37        # Pick a compiler that supports openmp
38        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
39        compiler.fallback macports-clang-3.9
40}
41
42pre-activate {
43    if {[file exists ${prefix}/lib/libchealpix.a]
44        && ![catch {set vers [lindex [registry_active healpix] 0]}]
45        && [vercmp [lindex $vers 1] 3.00] < 0} {
46        registry_deactivate_composite healpix "" [list ports_nodepcheck 1]
47    }
48}
Note: See TracBrowser for help on using the repository browser.