aboutsummaryrefslogtreecommitdiff
path: root/ports/pdal
diff options
context:
space:
mode:
Diffstat (limited to 'ports/pdal')
-rw-r--r--ports/pdal/CONTROL2
-rw-r--r--ports/pdal/libpq.patch33
-rw-r--r--ports/pdal/portfile.cmake1
3 files changed, 35 insertions, 1 deletions
diff --git a/ports/pdal/CONTROL b/ports/pdal/CONTROL
index d3e48fa42..d105decf5 100644
--- a/ports/pdal/CONTROL
+++ b/ports/pdal/CONTROL
@@ -1,4 +1,4 @@
Source: pdal
-Version: 1.7.1-7
+Version: 1.7.1-8
Description: PDAL - Point Data Abstraction Library is a library for manipulating point cloud data.
Build-Depends: gdal, geos, jsoncpp, libgeotiff, laszip, boost-system, boost-filesystem
diff --git a/ports/pdal/libpq.patch b/ports/pdal/libpq.patch
new file mode 100644
index 000000000..3aac2188c
--- /dev/null
+++ b/ports/pdal/libpq.patch
@@ -0,0 +1,33 @@
+diff --git a/cmake/postgres.cmake b/cmake/postgres.cmake
+index 0dad71069..32fdae2f8 100644
+--- a/cmake/postgres.cmake
++++ b/cmake/postgres.cmake
+@@ -7,3 +7,27 @@ find_package(PostgreSQL REQUIRED)
+ mark_as_advanced(CLEAR POSTGRESQL_INCLUDE_DIR)
+ mark_as_advanced(CLEAR POSTGRESQL_LIBRARIES)
+ include_directories(${POSTGRESQL_INCLUDE_DIR})
++
++include(SelectLibraryConfigurations)
++
++find_library(PostgreSQLCommon_LIBRARY_DEBUG
++NAMES libpgcommond pgcommond pgcommon libpgcommon
++NAMES_PER_DIR
++)
++find_library(PostgreSQLCommon_LIBRARY_RELEASE
++NAMES pgcommon libpgcommon
++NAMES_PER_DIR
++)
++select_library_configurations(PostgreSQLCommon)
++
++find_library(PostgreSQLPort_LIBRARY_DEBUG
++NAMES pgportd libpgportd pgport libpgport
++NAMES_PER_DIR
++)
++find_library(PostgreSQLPort_LIBRARY_RELEASE
++NAMES pgport libpgport
++NAMES_PER_DIR
++)
++select_library_configurations(PostgreSQLPort)
++
++list(APPEND POSTGRESQL_LIBRARIES ${PostgreSQLPort_LIBRARIES} ${PostgreSQLCommon_LIBRARIES})
+\ No newline at end of file
diff --git a/ports/pdal/portfile.cmake b/ports/pdal/portfile.cmake
index d9b8a0a69..ef792f3a0 100644
--- a/ports/pdal/portfile.cmake
+++ b/ports/pdal/portfile.cmake
@@ -15,6 +15,7 @@ vcpkg_extract_source_archive_ex(
0003-fix-copy-vendor.patch
PDALConfig.patch
fix-dependency.patch
+ libpq.patch
)
file(REMOVE "${SOURCE_PATH}/pdal/gitsha.cpp")