source: trunk/dports/lang/upc/Portfile

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

upc: update to 5.2.0.1

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.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 151099 2016-08-07 11:21:44Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup select 1.0
6PortGroup compiler_blacklist_versions 1.0
7
8name                upc
9version             5.2.0.1
10categories          lang parallel science
11maintainers         takeshi openmaintainer
12description         Unified Parallel C
13license             GPL-3
14long_description    \
15    The GCC UPC toolset provides a compilation and execution environment \
16    for programs written in the UPC (Unified Parallel C) language.
17homepage            http://www.gccupc.org/
18platforms           darwin
19master_sites        http://www.gccupc.org/downloads/upc/rls/${name}-${version}/
20distname            ${name}-${version}.src
21use_bzip2           yes
22checksums           rmd160  d35ec1e77517f7e5edef7ae8b6880bfa1a206eb8 \
23                    sha256  45805995497cf7f52902d234f02bcd773e421a77b8b515026825aac46f64c6ad
24
25depends_lib         port:gmp port:mpfr port:libiconv port:libmpc \
26                    path:lib/pkgconfig/isl.pc:isl \
27                    port:ld64 \
28                    path:lib/libgcc/libgcc_s.1.dylib:libgcc
29depends_build       port:gdb
30
31depends_skip_archcheck-append gcc_select ld64 cctools
32license_noconflict  gmp mpfr ppl libmpc
33worksrcdir          ${name}-${version}
34
35platform darwin {
36    configure.pre_args-append --build=${build_arch}-apple-darwin${os.major}
37}
38
39if {[info exists build_arch] && ${os.platform} eq "darwin"} {
40    configure.cc_archflags
41    configure.cxx_archflags
42    configure.objc_archflags
43    configure.pre_args-append --build=${build_arch}-apple-darwin${os.major}
44}
45
46pre-configure {
47    if {${os.platform} eq "darwin" && ${os.arch} eq "powerpc"} {
48        ui_error "PowerPC is not supported"
49    }
50}
51
52# http://trac.macports.org/ticket/29067
53compiler.blacklist-append gcc-4.0
54#
55# http://trac.macports.org/ticket/29104
56compiler.blacklist-append {llvm-gcc-4.2 < 2336.1}
57
58# https://trac.macports.org/ticket/47996
59compiler.blacklist-append {clang < 300}
60
61configure.dir       ${workpath}/build
62configure.cmd       ${worksrcpath}/configure
63configure.args      --bindir=${prefix}/lib/${name}/bin \
64                    --libdir=${prefix}/lib/${name} \
65                    --libexecdir=${prefix}/libexec/${name} \
66                    --datarootdir=${prefix}/share/${name} \
67                    --with-local-prefix=${prefix} \
68                    --with-system-zlib \
69                    --disable-nls \
70                    --without-gnu-ld \
71                    --with-gmp=${prefix} \
72                    --with-mpfr=${prefix} \
73                    --with-mpc=${prefix} \
74                    --with-isl=${prefix} \
75                    --disable-bootstrap \
76                    --disable-multilib \
77                    --enable-lto \
78                    --with-upc-backtrace-gdb=ggdb \
79                    --enable-languages=c \
80                    --with-as=${prefix}/bin/as \
81                    --with-ls=${prefix}/bin/ld \
82                    --with-ar=${prefix}/bin/ar \
83                    --with-bugurl=https://trac.macports.org/newticket
84
85configure.env-append \
86                    AR_FOR_TARGET=${prefix}/bin/ar \
87                    AS_FOR_TARGET=${prefix}/bin/as \
88                    LD_FOR_TARGET=${prefix}/bin/ld \
89                    NM_FOR_TARGET=${prefix}/bin/nm \
90                    OBJDUMP_FOR_TARGET=${prefix}/bin/objdump \
91                    RANLIB_FOR_TARGET=${prefix}/bin/ranlib \
92                    STRIP_FOR_TARGET=${prefix}/bin/strip \
93                    OTOOL=${prefix}/bin/otool \
94                    OTOOL64=${prefix}/bin/otool
95
96if {${os.platform} eq "darwin" && ${build_arch} eq "x86_64"} {
97    configure.args-append   --build=${build_arch}-apple-${os.platform}${os.major}
98}
99use_parallel_build  yes
100universal_variant   no
101
102build.dir           ${configure.dir}
103
104post-destroot {
105    file delete -force ${destroot}${prefix}/include
106    file delete -force ${destroot}${prefix}/share/${name}
107    ln -s ${prefix}/lib/${name}/bin/gupc ${destroot}${prefix}/bin/
108}
109
110livecheck.type      regex
111livecheck.url       ${homepage}
112livecheck.regex     {<h3>([0-9]+.[0-9]+.[0-9]+.[0-9]+)</h3>}
Note: See TracBrowser for help on using the repository browser.