Ticket #23449: Portfile

File Portfile, 1.6 KB (added by adfernandes (Andrew Fernandes), 14 years ago)
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
2# $Id: $
3
4PortSystem      1.0
5PortGroup       python26 1.0
6
7name            py26-mpi4py
8version         1.2
9categories      python
10description     MPI for Python - Python bindings for MPI
11long_description \
12    MPI for Python (mpi4py) provides bindings of the Message Passing Interface \
13    (MPI) standard for the Python programming language, allowing any Python \
14    program to exploit multiple processors. This package is constructed on top of \
15    the MPI-1/MPI-2 specification and provides an object oriented interface which \
16    closely follows MPI-2 C++ bindings. It supports point-to-point (sends, \
17    receives) and collective (broadcasts, scatters, gathers) communications of \
18    any picklable Python object as well as optimized communications of Python \
19    object exposing the single-segment buffer interface (NumPy arrays, builtin \
20    bytes/string/array objects).
21
22
23maintainers     adfernandes openmaintainer
24
25homepage        http://code.google.com/p/mpi4py/
26master_sites    googlecode:mpi4py
27distname        mpi4py-${version}
28checksums       sha1    6dcef2758abce46c8e0b55a531d7164b8fed8931
29
30platforms       darwin
31
32if { ${os.major} < 9 } {
33    default_variants +openmpi
34}
35
36if {  ${os.major} < 9 &&  ![variant_isset openmpi] } {
37    error "Mac OS 10.4 and earlier require the openmpi variant"
38}
39
40variant openmpi description {builds with the openmpi port} {
41    depends_lib-append  port:openmpi
42    build.target        build "--mpicc=${prefix}/bin/openmpicc"
43}