aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>2019-07-18 14:00:25 -0700
committerPhil Christensen <philc@microsoft.com>2019-07-18 14:00:25 -0700
commitcb974b6650ad33ebe1dbb37778597eb171efa680 (patch)
tree931af36f9a9074b900da8d6b7297aa9310291455
parent122360484648985b205f1385808074e80eceacb6 (diff)
downloadvcpkg-cb974b6650ad33ebe1dbb37778597eb171efa680.tar.gz
vcpkg-cb974b6650ad33ebe1dbb37778597eb171efa680.zip
[lastools] Add new port. (#7220)
-rw-r--r--ports/lastools/CONTROL4
-rw-r--r--ports/lastools/portfile.cmake35
2 files changed, 39 insertions, 0 deletions
diff --git a/ports/lastools/CONTROL b/ports/lastools/CONTROL
new file mode 100644
index 000000000..cb908a8d4
--- /dev/null
+++ b/ports/lastools/CONTROL
@@ -0,0 +1,4 @@
+Source: lastools
+Version: 2019-07-10
+Homepage: https://github.com/LAStools/LAStools
+Description: LAStools: award-winning software for efficient LiDAR processing (with LASzip) \ No newline at end of file
diff --git a/ports/lastools/portfile.cmake b/ports/lastools/portfile.cmake
new file mode 100644
index 000000000..5f6e40397
--- /dev/null
+++ b/ports/lastools/portfile.cmake
@@ -0,0 +1,35 @@
+if (VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
+ message(FATAL_ERROR "${PORT} doesn't currently support UWP.")
+endif()
+
+include(vcpkg_common_functions)
+
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO LAStools/LAStools
+ REF f15a702530e098b46c2eb3923f89a68ffa81e668
+ SHA512 df5763b7c69721ba2a24fde2b4092e53136020b88ff4cc0d533279d709c55d7d16d8a4300f0b68829294d9311ed674af5b15306c4ded7a6310e55404737702e0
+ HEAD_REF master
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+)
+
+vcpkg_install_cmake()
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
+
+if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
+endif()
+
+vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake)
+
+# Handle copyright
+file(COPY ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
+file(RENAME ${CURRENT_PACKAGES_DIR}/share/${PORT}/LICENSE.txt ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright)
+