<pre style='margin:0'>
Perry E. Metzger (pmetzger) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/503a9ee8fb8e506371ff73cdf8e8bd943beff89c">https://github.com/macports/macports-ports/commit/503a9ee8fb8e506371ff73cdf8e8bd943beff89c</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 503a9ee8fb8e506371ff73cdf8e8bd943beff89c
</span>Author: Nicklas Larsson <n_larsson@yahoo.com>
AuthorDate: Wed Oct 18 18:12:53 2023 +0200
<span style='display:block; white-space:pre;color:#404040;'> gdal: remove unnecessary mpi PG
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> GDAL does not build with mpi support, it only needs the path to the mpi.h file,
</span><span style='display:block; white-space:pre;color:#404040;'> in case hdf5 or netcdf is built with mpi.
</span>---
gis/gdal/Portfile | 70 +++++++++++++++++++++++--------------------------------
1 file changed, 29 insertions(+), 41 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/gis/gdal/Portfile b/gis/gdal/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 2f6a670f78a..1e7beaa8cf0 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/gis/gdal/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/gis/gdal/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -4,13 +4,10 @@ PortSystem 1.0
</span> PortGroup github 1.0
PortGroup muniversal 1.0
PortGroup cmake 1.1
<span style='display:block; white-space:pre;background:#ffe0e0;'>-PortGroup mpi 1.0
</span> PortGroup active_variants 1.1
PortGroup compiler_blacklist_versions 1.0
PortGroup legacysupport 1.0
<span style='display:block; white-space:pre;background:#ffe0e0;'>-mpi.setup
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> github.setup OSGeo gdal 3.7.2 v
revision 1
checksums rmd160 7b7ef05f3322065516335516932b5668c845c62f \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -385,45 +382,24 @@ variant hdf4 description {Enable HDF4 file format} {
</span> }
variant hdf5 description {Enable HDF5 file format} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {![catch {set result [active_variants hdf5 openmpi]}]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {$result} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {![variant_isset openmpi]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return -code error "HDF5 has openmpi enabled, please use the same variant."
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {![catch {set result [active_variants hdf5 openmpi-devel]}]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {$result} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {![variant_isset openmpi-devel]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return -code error "HDF5 has openmpi_devel enabled, please use the same variant."
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ pre-configure {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # If HDF5 is built with a mpi variant, we need to know the path to "mpi.h".
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Figure out HDF5's mpi include directory:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set mpl_include_dir ""
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {![catch {set result [active_variants hdf5 openmpi]}]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {$result} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set mpl_include_dir "-I${prefix}/include/openmpi-mp"
</span> }
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {![catch {set result [active_variants hdf5 mpi]}]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {$result} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {![variant_isset mpi]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return -code error "HDF5 has mpi enabled, please use the same variant."
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {![catch {set result [active_variants hdf5 mpich]}]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {$result} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set mpl_include_dir "-I${prefix}/include/mpich-mp"
</span> }
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {![catch {set result [active_variants hdf5 mpich-devel]}]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {$result} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {![variant_isset mpich-devel]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return -code error "HDF5 has mpich-devel enabled, please use the same variant."
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {$mpl_include_dir ne ""} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.cxxflags-append ${mpl_include_dir}
</span> }
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {[variant_isset mpich] || [variant_isset mpich-devel] || \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- [variant_isset openmpi] || [variant_isset openmpi_devel]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- mpi.enforce_variant hdf5
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> depends_lib-append port:hdf5
configure.args-replace -DGDAL_USE_HDF5=OFF -DGDAL_USE_HDF5=ON
configure.args-append -DGDAL_ENABLE_DRIVER_HDF5=ON
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -436,12 +412,24 @@ variant heif description {Enable HEIF support} {
</span> }
variant netcdf description {Enable NetCDF file format} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- if {[variant_isset mpich] || [variant_isset mpich-devel] || \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- [variant_isset openmpi] || [variant_isset openmpi_devel]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- mpi.enforce_variant netcdf
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ pre-configure {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # If NetCDF is built with a mpi variant, we need to know the path to "mpi.h".
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Figure out NetCDF's mpi include directory:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set mpl_include_dir ""
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {![catch {set result [active_variants netcdf openmpi]}]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {$result} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set mpl_include_dir "-I${prefix}/include/openmpi-mp"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {![catch {set result [active_variants netcdf mpich]}]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {$result} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set mpl_include_dir "-I${prefix}/include/mpich-mp"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {$mpl_include_dir ne ""} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.cxxflags-append ${mpl_include_dir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span> }
<span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> depends_lib-append port:netcdf
configure.args-replace -DGDAL_USE_NETCDF=OFF -DGDAL_USE_NETCDF=ON
configure.args-append -DGDAL_ENABLE_DRIVER_NETCDF=ON
</pre><pre style='margin:0'>
</pre>