[92973] trunk/dports/lang/chapel/Portfile
takeshi at macports.org
takeshi at macports.org
Sat May 12 07:04:28 PDT 2012
Revision: 92973
https://trac.macports.org/changeset/92973
Author: takeshi at macports.org
Date: 2012-05-12 07:04:27 -0700 (Sat, 12 May 2012)
Log Message:
-----------
chapel: revamped for 1.5.0
Modified Paths:
--------------
trunk/dports/lang/chapel/Portfile
Modified: trunk/dports/lang/chapel/Portfile
===================================================================
--- trunk/dports/lang/chapel/Portfile 2012-05-12 14:03:58 UTC (rev 92972)
+++ trunk/dports/lang/chapel/Portfile 2012-05-12 14:04:27 UTC (rev 92973)
@@ -4,10 +4,11 @@
PortSystem 1.0
name chapel
-version 1.3.0
-revision 2
+set vers 1.5
+version ${vers}.0
categories lang parallel science
platforms darwin
+supported_archs i386 x86_64
maintainers takeshi openmaintainer
description parallel programming language
long_description \
@@ -18,15 +19,15 @@
homepage http://chapel.cray.com/
master_sites sourceforge
-checksums md5 f98186898161ce61e7518b83938b9e96 \
- sha1 4ee8cfe3bb2c32ba1ecbd133987503ed1d2d4e97 \
- rmd160 94e0bbd99b291b681adddbd574529eaed952ffda
+checksums md5 38368f62afb2cad0327af26eabe06866 \
+ sha1 26d2a56ba80ae4db0abeeddffc132fc61439a649 \
+ rmd160 85e49034e7ac1e795c54bbee9a070183ce09dd1e
-worksrcdir ${distname}/${name}
+worksrcdir ${name}-${vers}
use_configure no
use_parallel_build no
-
+
# chapel does not build with clang.
if {${configure.compiler} == "clang"} {
configure.compiler llvm-gcc-4.2
@@ -38,23 +39,31 @@
} else {
set archflags "${configure.cc_archflags}"
}
+
build.env CHPL_HOST_COMPILER=gnu \
CHPL_TARGET_COMPILER=gnu \
LDFLAGS="${archflags}"
-post-configure {
- reinplace "s|CXX = g++|CXX = ${configure.cxx}|" ${worksrcpath}/make/compiler/Makefile.gnu
- reinplace "s|CC = gcc|CC = ${configure.cc}|" ${worksrcpath}/make/compiler/Makefile.gnu
- reinplace "s|-O3|${configure.optflags} ${archflags}|" ${worksrcpath}/make/compiler/Makefile.gnu
- reinplace "s|\$(ARCH)|${archflags}|g" ${worksrcpath}/make/compiler/Makefile.gnu
-}
+build.args CXX=${configure.cxx} \
+ CC=${configure.cc} \
+ OPT_CFLAGS="${configure.optflags} ${archflags}"
+
destroot {
xinstall -m 755 ${worksrcpath}/bin/darwin/chpl ${destroot}${prefix}/bin
xinstall -m 644 ${worksrcpath}/man/man1/chpl.1 ${destroot}${prefix}/share/man/man1
xinstall -d ${destroot}${prefix}/lib/${name}
foreach d "lib examples make modules util runtime" {
- file copy ${worksrcpath}/${d} ${destroot}${prefix}/lib/${name}
+ file copy ${worksrcpath}/${d} ${destroot}${prefix}/lib/${name}
}
+ xinstall -d ${destroot}${prefix}/lib/${name}/third-party
+ foreach d "dlmalloc gasnet gmp nanox qthread tcmalloc" {
+ xinstall -d ${destroot}${prefix}/lib/${name}/third-party/$d
+ xinstall -m 644 ${worksrcpath}/third-party/${d}/Makefile.include \
+ ${destroot}${prefix}/lib/${name}/third-party/$d
+ }
+ xinstall -d ${destroot}${prefix}/lib/${name}/third-party/utf8-decoder
+ xinstall -m 644 ${worksrcpath}/third-party/utf8-decoder/utf8-decoder.h \
+ ${destroot}${prefix}/lib/${name}/third-party/utf8-decoder
}
variant universal {}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120512/06975efe/attachment.html>
More information about the macports-changes
mailing list