[143861] trunk/dports/science/gmt5/Portfile
khindenburg at macports.org
khindenburg at macports.org
Wed Dec 23 07:01:22 PST 2015
Revision: 143861
https://trac.macports.org/changeset/143861
Author: khindenburg at macports.org
Date: 2015-12-23 07:01:22 -0800 (Wed, 23 Dec 2015)
Log Message:
-----------
gmt5: update to 5.2.1; add openmp variant; maintainer #49714
Modified Paths:
--------------
trunk/dports/science/gmt5/Portfile
Modified: trunk/dports/science/gmt5/Portfile
===================================================================
--- trunk/dports/science/gmt5/Portfile 2015-12-23 14:30:29 UTC (rev 143860)
+++ trunk/dports/science/gmt5/Portfile 2015-12-23 15:01:22 UTC (rev 143861)
@@ -5,8 +5,7 @@
PortGroup cmake 1.0
name gmt5
-version 5.1.2
-revision 1
+version 5.2.1
categories science
platforms darwin
maintainers eprofs.de:florian \
@@ -28,11 +27,11 @@
ftp://gd.tuwien.ac.at/pub/gmt \
ftp://ftp.scc.u-tokai.ac.jp/pub/gmt \
ftp://gmt.mirror.ac.za/pub/gmt
-use_bzip2 yes
+use_xz yes
distname gmt-${version}
distfiles ${distname}-src${extract.suffix}
-checksums rmd160 85a12fed90b1019333e7530b62e147def30752a5 \
- sha256 59d0cca9dda5301110e47b18a401f35584e37c409e482b2bdac14f847e570da9
+checksums rmd160 f6ae3a2c0e5e0d6d56bfee38de005fb12a032bf1 \
+ sha256 01c199525bdfa78ad388959e739f34eca8effb8d82475c8786a066e04b5e19af
depends_lib port:dcw-gmt \
port:ghostscript \
@@ -50,7 +49,11 @@
if {[variant_isset debug]} {
configure.optflags -O0
} else {
- configure.optflags -O3
+ # optflags deliberately unset:
+ configure.optflags
+ # Set CMAKE_BUILD_TYPE=RelWithDebInfo to get reliable backtraces:
+ configure.args-delete -DCMAKE_BUILD_TYPE=Release
+ configure.args-append -DCMAKE_BUILD_TYPE=RelWithDebInfo
}
configure.cflags-append -fstrict-aliasing
@@ -60,6 +63,7 @@
-DFFTW3_ROOT=off \
-DGDAL_ROOT=off \
-DPCRE_ROOT=off \
+ -DGMT_OPENMP=off \
-DGMT_INSTALL_MODULE_LINKS=off \
-DGMT_INSTALL_TRADITIONAL_FOLDERNAMES=off \
-DLICENSE_RESTRICTED=GPL
@@ -82,6 +86,19 @@
configure.args-append -DPCRE_ROOT=${prefix}
}
+variant openmp description {Enable experimental OpenMP parallel acceleration} {
+ configure.args-delete -DGMT_OPENMP=off
+ configure.args-append -DGMT_OPENMP=on
+
+ # FIXME: llvm-gcc42 is broken, https://trac.macports.org/ticket/40713
+ # Only clang really needs to be blacklisted
+ compiler.blacklist *gcc-4.2 *clang*
+ compiler.fallback macports-gcc-5 macports-gcc-4.9 macports-gcc-4.8 macports-gcc-4.7 macports-gcc-4.6 macports-gcc-4.5 macports-gcc-4.4 macports-gcc-4.3
+
+ # Needed for compiling with GCC and Accelerate Framework on OSX:
+ configure.cflags-append -flax-vector-conversions
+}
+
variant lgpl conflicts nonfree description {disallow use of GPL code, license will be LGPL} {
license-delete GPL-3
license-append LGPL-3
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151223/0388b216/attachment.html>
More information about the macports-changes
mailing list