Ticket #29836: Portfile

File Portfile, 1.8 KB (added by lsinger@…, 12 years ago)

proposed Portfile

Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
2# $Id$
3
4PortSystem              1.0
5PortGroup               python 1.0
6
7name                    py-healpy
8version                 0.10.2
9categories              python science
10platforms               darwin
11maintainers             nomaintainer
12description             Python wrapper for healpix
13long_description        Python wrapper for healpix
14
15homepage                http://code.google.com/p/healpy/
16master_sites            googlecode:healpy
17distname                healpy-${version}
18checksums               md5     c9561c318af1dedb6859de1436e98719 \
19                        sha1    56006d7f38a6ce5d90f84a894d3721c7c574b1c5 \
20                        rmd160  aa703d90fb23926469691773366e4628036e2068
21
22python.versions         25 26 27
23python.default_version  27
24
25patchfiles              patch-setup.py.diff
26
27if {${subport} != ${name}} {
28
29# Find a compiler that supports OpenMP
30if {${configure.compiler} == "clang"} {
31   configure.compiler llvm-gcc-4.2
32}
33
34if {${configure.compiler} == "gcc-4.0"} {
35   configure.compiler gcc-4.2
36   if {![file executable ${configure.cc}]} {
37       depends_build-append port:apple-gcc42
38       configure.compiler apple-gcc-4.2
39       # base (as of 2.0.3) doesn't set cxx for apple-gcc-4.2
40       configure.cxx ${prefix}/bin/g++-apple-4.2
41   }
42}
43
44build.env-append        CFITSIO_EXT_PREFIX=${prefix} \
45                        CC=${configure.cc} CXX=${configure.cxx} CPP=${configure.cpp} \
46                        LDSHARED="${configure.cc} -L${prefix}/lib -bundle -undefined dynamic_lookup"
47
48depends_lib-append      port:py${python.version}-numpy \
49                        port:py${python.version}-pyfits \
50                        port:py${python.version}-matplotlib \
51                        port:healpix
52
53}