source: trunk/dports/lang/chapel/Portfile

Last change on this file was 150612, checked in by takeshi@…, 14 months ago

chapel: update to 1.13.1

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.0 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 150612 2016-07-24 08:06:36Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           github 1.0
6
7github.setup        chapel-lang chapel 1.13.1
8categories          lang parallel science
9platforms           darwin
10supported_archs     i386 x86_64
11maintainers         takeshi openmaintainer
12description         parallel programming language
13long_description \
14    Chapel is a new parallel programming language \
15    being developed by Cray Inc. as part of the DARPA-led \
16    High Productivity Computing Systems program (HPCS).
17license             BSD
18homepage            http://chapel.cray.com/
19master_sites        sourceforge:project/chapel/chapel/${version}
20
21checksums           rmd160  a96987504aaa657a097c840da51526369220fb88 \
22                    sha256  9745c313548df610da2a6a3e920526baba92f11737c38fbeffd4de7bef5c011f
23
24use_configure       no
25use_parallel_build  no
26
27configure.optflags  -O3
28
29variant universal {}
30
31build.env-append    CHPL_HOST_COMPILER=clang \
32                    CHPL_TARGET_COMPILER=clang \
33                    CHPL_COMM=none \
34                    CHPL_TASKS=fifo \
35                    CHPL_MEM=cstdlib \
36                    CHPL_GMP=none \
37                    CHPL_REGEXP=none \
38                    CHPL_LLVM=none \
39                    LDFLAGS="[get_canonical_archflags ld]"
40
41build.args          CXX=${configure.cxx} \
42                    CC=${configure.cc} \
43                    OPT_CFLAGS="${configure.optflags} [get_canonical_archflags cc]"
44
45destroot {
46    xinstall -m 755 ${worksrcpath}/bin/darwin/chpl ${destroot}${prefix}/bin
47    xinstall -m 644 ${worksrcpath}/man/man1/chpl.1 ${destroot}${prefix}/share/man/man1
48    xinstall -d ${destroot}${prefix}/lib/${name}
49    foreach d "compiler lib examples make modules util runtime" {
50        file copy ${worksrcpath}/${d} ${destroot}${prefix}/lib/${name}
51    }
52    xinstall -d ${destroot}${prefix}/lib/${name}/third-party
53    foreach d "chpl-venv fltk gasnet gmp hwloc jemalloc massivethreads qthread re2" {
54        xinstall -d ${destroot}${prefix}/lib/${name}/third-party/$d
55        xinstall -m 644 ${worksrcpath}/third-party/${d}/Makefile.include \
56            ${destroot}${prefix}/lib/${name}/third-party/$d
57    }
58    xinstall -d ${destroot}${prefix}/lib/${name}/third-party/llvm
59    foreach f "Makefile.include-none Makefile.share" {
60        xinstall -m 644 ${worksrcpath}/third-party/llvm/$f \
61            ${destroot}${prefix}/lib/${name}/third-party/llvm
62    }
63    xinstall -d ${destroot}${prefix}/lib/${name}/third-party/utf8-decoder
64    xinstall -m 644 ${worksrcpath}/third-party/utf8-decoder/utf8-decoder.h \
65        ${destroot}${prefix}/lib/${name}/third-party/utf8-decoder
66    xinstall -d ${destroot}${prefix}/etc/${name}
67    foreach d "README.md emacs source-highlight vim" {
68        file copy ${worksrcpath}/highlight/${d} ${destroot}${prefix}/etc/${name}
69    }
70}
71
72variant universal {}
73
74notes "
75set environmental variables following ${prefix}/lib/${name}/util/quickstart/setchplenv.bash
76"
Note: See TracBrowser for help on using the repository browser.