Skip to content

Commit

Permalink
laz-perf: new port, version 3.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nilason committed Oct 10, 2023
1 parent 9db1296 commit 4b5178f
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
33 changes: 33 additions & 0 deletions gis/laz-perf/Portfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#-*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem 1.0
PortGroup cmake 1.1
PortGroup github 1.0

github.setup hobuinc laz-perf 3.4.0
revision 0
checksums rmd160 2b7cfc1db1fe040d66d9ef6ee9650fd15b46f94b \
sha256 2b44be8a741d5cfe87b68c384d1c31da516a0fea099544727b51fe91b260aafa \
size 4993015

license Apache-2
categories gis

maintainers {yahoo.com:n_larsson @nilason} openmaintainer

description Alternative LAZ implementation for C++ and JavaScript
long_description LAZperf is an alternative LAZ implementation. It supports\
compilation to WASM via Emscripten so that LAZ data can be\
decoded in a browser.

configure.args-append \
-DWITH_TESTS=OFF

variant tests description {Enable tests} {
patchfiles-append patch-cmake-test-cxx17.diff
depends_test-append port:gtest
configure.args-append -DINSTALL_GTEST=OFF
configure.args-replace -DWITH_TESTS=OFF -DWITH_TESTS=ON

test.run yes
}
11 changes: 11 additions & 0 deletions gis/laz-perf/files/patch-cmake-test-cxx17.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- cpp/test/CMakeLists.txt.orig
+++ cpp/test/CMakeLists.txt
@@ -9,6 +9,8 @@
target_include_directories(${_name} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/..)
target_include_directories(${_name} PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
lazperf_target_compile_settings(${_name})
+ set_property(TARGET ${_name} PROPERTY CXX_STANDARD 17)
+ set_property(TARGET ${_name} PROPERTY CXX_STANDARD_REQUIRED TRUE)
add_test(NAME ${_name} COMMAND ${PROJECT_BINARY_DIR}/cpp/test/${_name}
WORKING_DIRECTORY "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/../..")
endmacro(LAZPERF_ADD_TEST)

0 comments on commit 4b5178f

Please sign in to comment.