# -*- 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 # $Id$ PortSystem 1.0 name upc version 4.9.0.1 categories lang parallel science maintainers takeshi openmaintainer description Unified Parallel C license GPL-3 long_description \ The GCC UPC toolset provides a compilation and execution environment \ for programs written in the UPC (Unified Parallel C) language. homepage http://www.gccupc.org/ platforms darwin master_sites http://www.gccupc.org/downloads/upc/rls/${name}-${version}/ distname ${name}-${version}.src use_bzip2 yes checksums md5 3e7f4e22dfbc20818e1e58d5105bd4a6 \ sha1 43d324c7abdb225f2240fc0f2f5ab1ad91ad1b33 \ rmd160 1a13f8c86972417aa78ce9ac90d0dfcce0055172 depends_lib port:gmp port:mpfr port:libiconv port:libmpc depends_build port:gdb worksrcdir build post-extract { file mkdir ${worksrcpath} } if {[info exists build_arch] && ${os.platform} eq "darwin"} { configure.cc_archflags configure.cxx_archflags configure.objc_archflags configure.pre_args-append --build=${build_arch}-apple-darwin${os.major} } pre-configure { if {${os.platform} eq "darwin" && ${os.arch} eq "powerpc"} { ui_error "PowerPC is not supported" } } configure.cmd ../${name}-${version}/configure configure.args --bindir=${prefix}/lib/${name}/bin \ --libdir=${prefix}/lib/${name} \ --libexecdir=${prefix}/libexec/${name} \ --datarootdir=${prefix}/share/${name} \ --with-local-prefix=${prefix} \ --with-system-zlib \ --disable-nls \ --without-gnu-ld \ --disable-multilib \ --with-gmp=${prefix} \ --with-mpfr=${prefix} \ --with-mpc=${prefix} \ --with-upc-backtrace-gdb=ggdb \ --enable-languages=upc if {${os.platform} eq "darwin" && ${build_arch} eq "x86_64"} { configure.args-append --build=${build_arch}-apple-${os.platform}${os.major} } use_parallel_build yes universal_variant no post-destroot { xinstall -d ${destroot}${prefix}/share/man/man1 xinstall -m 644 ${destroot}${prefix}/share/${name}/man/man1/g${name}.1 \ ${destroot}${prefix}/share/man/man1/ xinstall -m 644 ${destroot}${prefix}/share/${name}/info/g${name}.info \ ${destroot}${prefix}/share/info/ xinstall -m 644 ${destroot}${prefix}/share/${name}/info/libg${name}.info \ ${destroot}${prefix}/share/info/ file delete -force ${destroot}${prefix}/include system "cd ${destroot}${prefix}/bin; \ ln -s ${prefix}/lib/${name}/bin/g${name} g${name}; \ ln -s ${prefix}/lib/${name}/bin/g${name} ${name}; \ cd ${destroot}${prefix}/share/man/man1; \ ln -s ${prefix}/share/man/man1/g${name}.1 ${name}.1; \ cd ${destroot}${prefix}/share/info; \ ln -s ${prefix}/share/info/g${name}.info ${name}.info" file delete -force ${destroot}${prefix}/share/${name} } livecheck.type regex livecheck.url ${homepage} livecheck.regex {

([0-9]+.[0-9]+.[0-9]+.[0-9]+)

}