Ticket #47806: Portfile.2

File Portfile.2, 1.6 KB (added by fanfarillo.gcc@…, 9 years ago)
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$
3
4PortSystem          1.0
5# TODO: use cmake portgroup?
6
7name                opencoarrays
8# TODO: upstream must officially release version 1.0
9version             1.0
10categories          lang
11platforms           darwin
12maintainers         gmail.com:fanfarillo.gcc
13license             BSD
14
15description         Library for multi-image coarray Fortran suppport.
16
17long_description    OpenCoarrays is an open-source software project for developing, \
18                    porting and tuning transport layers that support coarray \
19                    Fortran compilers.
20
21homepage            http://opencoarrays.org
22# TODO: use official download URL (if that's github: use github 1.0 portgroup)
23master_sites        http://www.ce.uniroma2.it
24
25checksums           rmd160  f3d342d31beb79315bdf46d9ec51c05ccb122f32 \
26                    sha256  23f235d47232825b9c5d7a03b7968af5637c0a586b391c70d57813e3e1896240
27
28# TODO: use path:-style dep to support mpich-devel-gcc5 (blocked by #48086)
29# TODO: add gcc5 and gcc6 variants, gcc5 default until gcc6 is stable
30depends_lib         port:gcc5 \
31                    port:mpich-gcc5
32
33use_configure       no
34
35# TODO: universal variant?
36
37set configure.cc mpicc-mpich-gcc5
38set configure.cxx mpicxx-mpich-gcc5
39set configure.cpp mpic++-mpich-gcc5
40
41# TODO: supply -arch flags to MPICC?
42build.args-append   CC="${configure.cc} [get_canonical_archflags cc]" \
43                    CXX=${configure.cxx} \
44                    CPP=${configure.cpp}
45
46# TODO: install documentation
47destroot {
48        xinstall -m 755 ${worksrcpath}/mpi/libcaf_mpi.a ${destroot}${prefix}/lib
49}