source: trunk/dports/lang/berkeley_upc/Portfile @ 92015

Last change on this file since 92015 was 92015, checked in by takeshi@…, 5 years ago

berkeley_upc: fixed missing dependencies

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