source: trunk/dports/lang/berkeley_upc/Portfile

Last change on this file was 153928, checked in by takeshi@…, 9 months ago

berkeley_upc: update to 2.22.3

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.1 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 153928 2016-10-16 09:17:49Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           mpi 1.0
6
7name                berkeley_upc
8version             2.22.3
9categories          lang science parallel
10maintainers         takeshi
11description         Unified Parallel C runtime
12license             BSD LGPL GPL-3
13long_description    \
14    This is the runtime component of the Berkeley UPC compiler. \
15    It also contains the 'upcc' front end to the UPC compilation system.
16homepage            http://upc.lbl.gov/
17platforms           darwin
18master_sites        ${homepage}download/release/
19
20checksums           rmd160  36bf86a35a8e20c19bae6225cadbc885db0016db \
21                    sha256  013a47a7f94a2435845338a9a06043cc58662f61faff005514902cf38dedee83
22
23compilers.choose    cc cxx
24mpi.setup
25
26depends_lib         port:upc \
27                    bin:perl:perl5
28
29use_parallel_build  yes
30universal_variant   no
31
32post-patch {
33    reinplace "s|/usr/local/upc/bin/upc|${prefix}/lib/upc/bin/upc|" ${worksrcpath}/multiconf.conf.in
34    reinplace "s|\$opt{'gccupc'}|1|g" ${worksrcpath}/multiconf.conf.in
35}
36
37configure.env       MPI_CFLAGS="-O3" \
38                    GCCUPC_TRANS=${prefix}/lib/upc/bin/upc
39
40configure.args-append \
41                    --prefix=${prefix}/lib/${name} \
42                    --mandir=${prefix}/share/man \
43                    --disable-elan \
44                    --disable-gm \
45                    --disable-lapi \
46                    --disable-vapi \
47                    --disable-ibv \
48                    --disable-shmem \
49                    --disable-portals \
50                    --disable-dcmf \
51                    --disable-sci \
52                    --disable-mpi \
53                    --enable-udp \
54                    --enable-smp \
55                    --disable-pshm \
56                    --enable-sptr-packed \
57                    --disable-aligned-segments \
58                    --with-multiconf=dbg_gccupc,opt_gccupc
59
60pre-configure {
61    if {[mpi_variant_isset]} {
62        configure.args-delete   --disable-mpi
63        configure.args-append   --enable-mpi
64        configure.env-append    MPI_CC=${mpi.cc}
65    }
66}
67
68post-configure {
69    reinplace "s|-L\$(top_builddir) -lgasnet_tools-seq|\$(top_builddir)/libgasnet_tools-seq.a|" ${worksrcpath}/dbg_gupc/gasnet/other/amudp/Makefile
70    reinplace "s|-L. -lamudp|./libamudp.a|g" ${worksrcpath}/dbg_gupc/gasnet/other/amudp/Makefile
71}
72
73post-destroot {
74    xinstall -m 755 -d ${destroot}${prefix}/share/${name}
75    file copy ${worksrcpath}/upc-examples ${destroot}${prefix}/share/${name}/
76    file copy ${worksrcpath}/upc-tests ${destroot}${prefix}/share/${name}/
77    file delete -force ${destroot}${prefix}/lib/${name}/man
78    ln -s ${prefix}/lib/${name}/bin/upcc ${destroot}${prefix}/bin/upcc
79    foreach f "upc_trace upcdecl upcrun" {
80        ln -s ${prefix}/lib/${name}/opt_gupc/bin/${f} ${destroot}${prefix}/bin/${f}
81    }
82}
83
84notes               "Choose openmpi or mpich to use MPI"
85
86livecheck.type      regex
87livecheck.url       ${homepage}
88livecheck.regex     {Berkeley UPC version ([0-9]+\.[0-9]+\.[0-9]+)}
Note: See TracBrowser for help on using the repository browser.