You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
gdal-libkml: new gdal LIBKML driver port
replaces gdal +libkml variant
This commit is contained in:
committed by
Perry E. Metzger
parent
606f55392f
commit
0659a06e07
+30
-8
@@ -268,7 +268,6 @@ configure.args-append \
|
||||
-DGDAL_USE_JXL=OFF \
|
||||
-DGDAL_USE_JXL_THREADS=OFF \
|
||||
-DGDAL_USE_LIBAEC=ON \
|
||||
-DGDAL_USE_LIBKML=OFF \
|
||||
-DGDAL_USE_LIBLZMA=OFF \
|
||||
-DGDAL_USE_MRSID=OFF \
|
||||
-DGDAL_USE_MYSQL=OFF \
|
||||
@@ -326,9 +325,13 @@ if {$subport eq $name} {
|
||||
-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 \
|
||||
-DOGR_REGISTER_DRIVER_LIBKML_FOR_LATER_PLUGIN=ON \
|
||||
-DOGR_DRIVER_LIBKML_PLUGIN_INSTALLATION_MESSAGE="Install the LIBKML driver with 'sudo port gdal-libkml'." \
|
||||
-DGDAL_USE_LIBKML=OFF
|
||||
|
||||
depends_build-append \
|
||||
path:lib/pkgconfig/poppler.pc:poppler \
|
||||
port:libkml
|
||||
|
||||
if {[variant_isset kea] && ![variant_isset hdf5]} {
|
||||
ui_msg "NOTE: KEA driver support depends on HDF5, +hdf5 variant is added."
|
||||
@@ -453,13 +456,8 @@ if {$subport eq $name} {
|
||||
}
|
||||
|
||||
variant libkml description {Enable libkml} {
|
||||
pre-configure {
|
||||
set boost_includedir [exec ${prefix}/bin/pkg-config --variable=boost_includedir libkml]
|
||||
configure.cxxflags-append -I${boost_includedir}
|
||||
}
|
||||
depends_lib-append port:libkml
|
||||
configure.args-replace -DGDAL_USE_LIBKML=OFF -DGDAL_USE_LIBKML=ON
|
||||
configure.args-append -DOGR_ENABLE_DRIVER_LIBKML=ON
|
||||
ui_error "The '+libkml' variant is removed. It is replaced by 'grass-libkml' subport."
|
||||
return -code error "unsupported variant"
|
||||
}
|
||||
|
||||
variant lto description {Enable Link Time Optimization} {
|
||||
@@ -759,3 +757,27 @@ subport gdal-pdf {
|
||||
livecheck.type none
|
||||
}
|
||||
|
||||
subport gdal-libkml {
|
||||
description GDAL - LIBKML driver
|
||||
long_description {*}${description}.
|
||||
|
||||
depends_lib port:libkml \
|
||||
port:gdal
|
||||
|
||||
pre-configure {
|
||||
set boost_includedir [exec ${prefix}/bin/pkg-config --variable=boost_includedir libkml]
|
||||
configure.cxxflags-append -I${boost_includedir}
|
||||
set_gdal_variants
|
||||
}
|
||||
|
||||
configure.args-replace -DGDAL_USE_LIBKML=OFF -DGDAL_USE_LIBKML=ON
|
||||
configure.args-append \
|
||||
-DOGR_ENABLE_DRIVER_LIBKML=ON \
|
||||
-DOGR_ENABLE_DRIVER_LIBKML_PLUGIN=ON
|
||||
|
||||
post-destroot {
|
||||
system -W ${destroot} "find . ! -name 'ogr_LIBKML.dylib' \\( -type f -or -type l \\) -exec rm -f {} +"
|
||||
}
|
||||
|
||||
livecheck.type none
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user