<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/0659a06e07f4e5f74a26822b018319fa6a868f0b">https://github.com/macports/macports-ports/commit/0659a06e07f4e5f74a26822b018319fa6a868f0b</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 0659a06e07f4e5f74a26822b018319fa6a868f0b
</span>Author: Nicklas Larsson <n_larsson@yahoo.com>
AuthorDate: Tue Jun 25 15:32:53 2024 +0200
<span style='display:block; white-space:pre;color:#404040;'> gdal-libkml: new gdal LIBKML driver port
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> replaces gdal +libkml variant
</span>---
gis/gdal/Portfile | 38 ++++++++++++++++++++++++++++++--------
1 file changed, 30 insertions(+), 8 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 48e7faf288f..b8f6947e9bb 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;'>@@ -268,7 +268,6 @@ configure.args-append \
</span> -DGDAL_USE_JXL=OFF \
-DGDAL_USE_JXL_THREADS=OFF \
-DGDAL_USE_LIBAEC=ON \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- -DGDAL_USE_LIBKML=OFF \
</span> -DGDAL_USE_LIBLZMA=OFF \
-DGDAL_USE_MRSID=OFF \
-DGDAL_USE_MYSQL=OFF \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -326,9 +325,13 @@ if {$subport eq $name} {
</span> -DGDAL_REGISTER_DRIVER_PDF_FOR_LATER_PLUGIN=ON \
-DGDAL_DRIVER_PDF_PLUGIN_INSTALLATION_MESSAGE="Install the PDF driver with 'sudo port gdal-pdf'." \
-DGDAL_USE_POPPLER=ON \
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DOGR_REGISTER_DRIVER_LIBKML_FOR_LATER_PLUGIN=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DOGR_DRIVER_LIBKML_PLUGIN_INSTALLATION_MESSAGE="Install the LIBKML driver with 'sudo port gdal-libkml'." \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DGDAL_USE_LIBKML=OFF
</span>
depends_build-append \
path:lib/pkgconfig/poppler.pc:poppler \
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:libkml
</span>
if {[variant_isset kea] && ![variant_isset hdf5]} {
ui_msg "NOTE: KEA driver support depends on HDF5, +hdf5 variant is added."
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -453,13 +456,8 @@ if {$subport eq $name} {
</span> }
variant libkml description {Enable libkml} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- pre-configure {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set boost_includedir [exec ${prefix}/bin/pkg-config --variable=boost_includedir libkml]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.cxxflags-append -I${boost_includedir}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- depends_lib-append port:libkml
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.args-replace -DGDAL_USE_LIBKML=OFF -DGDAL_USE_LIBKML=ON
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.args-append -DOGR_ENABLE_DRIVER_LIBKML=ON
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_error "The '+libkml' variant is removed. It is replaced by 'grass-libkml' subport."
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return -code error "unsupported variant"
</span> }
variant lto description {Enable Link Time Optimization} {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -759,3 +757,27 @@ subport gdal-pdf {
</span> livecheck.type none
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+subport gdal-libkml {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ description GDAL - LIBKML driver
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ long_description {*}${description}.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib port:libkml \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:gdal
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ pre-configure {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set boost_includedir [exec ${prefix}/bin/pkg-config --variable=boost_includedir libkml]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.cxxflags-append -I${boost_includedir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set_gdal_variants
</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;'>+ configure.args-replace -DGDAL_USE_LIBKML=OFF -DGDAL_USE_LIBKML=ON
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DOGR_ENABLE_DRIVER_LIBKML=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DOGR_ENABLE_DRIVER_LIBKML_PLUGIN=ON
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ post-destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system -W ${destroot} "find . ! -name 'ogr_LIBKML.dylib' \\( -type f -or -type l \\) -exec rm -f {} +"
</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;'>+ livecheck.type none
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span></pre><pre style='margin:0'>
</pre>