[123766] trunk/dports/science/nco/Portfile
takeshi at macports.org
takeshi at macports.org
Wed Aug 13 19:20:27 PDT 2014
Revision: 123766
https://trac.macports.org/changeset/123766
Author: takeshi at macports.org
Date: 2014-08-13 19:20:27 -0700 (Wed, 13 Aug 2014)
Log Message:
-----------
nco: use compilers PortGroup to choose cc. gcc4x may be used to enable OpenMP. Broken DAP is fixed by r123764 of netcdf
Revision Links:
--------------
https://trac.macports.org/changeset/123764
Modified Paths:
--------------
trunk/dports/science/nco/Portfile
Modified: trunk/dports/science/nco/Portfile
===================================================================
--- trunk/dports/science/nco/Portfile 2014-08-14 02:09:41 UTC (rev 123765)
+++ trunk/dports/science/nco/Portfile 2014-08-14 02:20:27 UTC (rev 123766)
@@ -2,10 +2,11 @@
# $Id$
PortSystem 1.0
+PortGroup compilers 1.0
name nco
version 4.4.4
-revision 1
+revision 2
platforms darwin
maintainers takeshi
license GPL-3
@@ -15,6 +16,9 @@
http://dust.ess.uci.edu/${name}/src/ \
http://nco.sourceforge.net/src/
+compilers.choose cc
+compilers.setup
+
checksums md5 c5ef59514d2a53c877535b5dfcc594b1 \
sha1 086a87aca7fae6222778bb5ebd384ebfc0ebbf2b \
rmd160 e6713a84e39cb67282feefc5f02f66f8ce465497
@@ -54,8 +58,14 @@
--mandir=${prefix}/share/man \
--enable-udunits2 \
--enable-dap-netcdf \
- --enable-netcdf4
+ --enable-netcdf4 \
+ --disable-openmp
+if [gcc_variant_isset] {
+ configure.args-delete --disable-openmp
+ configure.args-append --enable-openmp
+}
+
#if {![variant_isset openmpi]&&![variant_isset mpich]} {
# post-configure {
# foreach d {nco nco++ nco_c++} {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140813/a0be0240/attachment.html>
More information about the macports-changes
mailing list