aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Beverage <jasonbeverage@gmail.com>2018-08-01 13:40:32 -0400
committerRobert Schumacher <roschuma@microsoft.com>2018-08-01 10:40:32 -0700
commit5a04ee0290ec963efde5bb604d96d1aac6d69b17 (patch)
tree29f49e96f101a7f6e27dc796fb685a2fc17c2e57
parentcaa9f2e3d5f3ea73e72bcf078b180337fa6602d3 (diff)
downloadvcpkg-5a04ee0290ec963efde5bb604d96d1aac6d69b17.tar.gz
vcpkg-5a04ee0290ec963efde5bb604d96d1aac6d69b17.zip
Add laszip (#3978)
* Added laszip package * Added laszip dependency to pdal * Cleanup laszip port file * [laszip] Use LASZIP_BUILD_STATIC * [pdal] Bump version to include new dependency laszip
-rw-r--r--ports/laszip/CONTROL3
-rw-r--r--ports/laszip/portfile.cmake28
-rw-r--r--ports/pdal/CONTROL4
3 files changed, 33 insertions, 2 deletions
diff --git a/ports/laszip/CONTROL b/ports/laszip/CONTROL
new file mode 100644
index 000000000..5f6bac68b
--- /dev/null
+++ b/ports/laszip/CONTROL
@@ -0,0 +1,3 @@
+Source: laszip
+Version: 3.2.2-1
+Description: LASzip - free and lossless LiDAR compression
diff --git a/ports/laszip/portfile.cmake b/ports/laszip/portfile.cmake
new file mode 100644
index 000000000..92edbafb7
--- /dev/null
+++ b/ports/laszip/portfile.cmake
@@ -0,0 +1,28 @@
+include(vcpkg_common_functions)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO LASzip/LASzip
+ REF 3.2.2
+ SHA512 c4dac1fd525b1889fa8cc77f168bc3c83053619402ec13ac0ae58665cfd4440b9135ce30c4ade925a0ac9db7e3f717344859e511b2207841c84dc2453c6cf7f7
+ HEAD_REF master
+)
+
+string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" LASZIP_BUILD_STATIC)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+ OPTIONS
+ -DLASZIP_BUILD_STATIC=${LASZIP_BUILD_STATIC}
+)
+
+vcpkg_install_cmake()
+
+# Handle copyright
+file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/laszip RENAME copyright)
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
+# Remove laszip_api3 dll since it doesn't export functions properly during build.
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/bin/laszip_api3.dll)
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin/laszip_api3.dll)
diff --git a/ports/pdal/CONTROL b/ports/pdal/CONTROL
index 1065a5c2d..ebb658c90 100644
--- a/ports/pdal/CONTROL
+++ b/ports/pdal/CONTROL
@@ -1,4 +1,4 @@
Source: pdal
-Version: 1.7.1-2
+Version: 1.7.1-3
Description: PDAL - Point Data Abstraction Library is a library for manipulating point cloud data.
-Build-Depends: gdal, geos, jsoncpp, libgeotiff
+Build-Depends: gdal, geos, jsoncpp, libgeotiff, laszip