Changeset 81280
- Timestamp:
- 07/28/11 14:50:17 (4 years ago)
- File:
-
- 1 edited
-
trunk/dports/lang/chapel/Portfile (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/lang/chapel/Portfile
r81041 r81280 6 6 name chapel 7 7 version 1.3.0 8 revision 1 8 9 categories lang parallel science 9 10 platforms darwin 10 maintainers takeshi 11 maintainers takeshi openmaintainer 11 12 description parallel programming language 12 13 long_description \ … … 23 24 24 25 worksrcdir ${distname}/${name} 26 25 27 use_configure no 26 28 use_parallel_build no 29 30 # chapel builds with llvm-gcc by removing -use-gold-plugin 31 # in ${worksrcpath}/make/compiler/Makefile.llvm-gcc and 32 # chpl can be made to work by setting CHPL_TARGET_COMPILER 33 # but gives warnings on linking different triples. 34 # 35 # chapel does not build with clang. 36 if {![string match *-gcc-* ${configure.compiler}]} { 37 pre-configure { 38 ui_error "${name} requires configure.compiler=*-gcc-*." 39 return -code error 40 } 41 } 42 configure.compiler gcc-4.2 43 44 configure.optflags -O3 45 if {[variant_isset universal]} { 46 set archflags "${configure.universal_ldflags}" 47 } else { 48 set archflags "${configure.cc_archflags}" 49 } 50 build.env CHPL_HOST_COMPILER=gnu \ 51 CHPL_TARGET_COMPILER=gnu \ 52 LDFLAGS="${archflags}" 53 post-configure { 54 reinplace "s|CXX = g++|CXX = ${configure.cxx}|" ${worksrcpath}/make/compiler/Makefile.gnu 55 reinplace "s|CC = gcc|CC = ${configure.cc}|" ${worksrcpath}/make/compiler/Makefile.gnu 56 reinplace "s|-O3|${configure.optflags} ${archflags}|" ${worksrcpath}/make/compiler/Makefile.gnu 57 reinplace "s|\$(ARCH)|${archflags}|g" ${worksrcpath}/make/compiler/Makefile.gnu 58 } 27 59 28 60 destroot { … … 35 67 } 36 68 69 variant universal {} 70 37 71 notes \ 38 72 " set CHPL_HOME to ${prefix}/lib/${name}\n\
Note: See TracChangeset
for help on using the changeset viewer.

