forked from macports/macports-ports
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |