misc/lastools: Fix cmake build for laslib-config.cmake

PR:		261091
This commit is contained in:
Rainer Hurling 2022-01-10 10:07:27 -08:00 committed by Yuri Victorovich
parent 885796f15a
commit e5cc987c91
2 changed files with 7 additions and 3 deletions

View File

@ -1,5 +1,6 @@
PORTNAME= LAStools
DISTVERSION= 2.0.0
PORTREVISION= 1
CATEGORIES= misc
MASTER_SITES= https://github.com/${PORTNAME}/${PORTNAME}/releases/download/v${DISTVERSION}/
DISTNAME= ${PORTNAME}
@ -11,14 +12,16 @@ COMMENT= Efficient tools for LiDAR processing
LICENSE= LGPL21
LICENSE_FILE= ${WRKSRC}/COPYING.txt
USES= cmake zip
USES= cmake:insource zip
CMAKE_ON= BUILD_SHARED_LIBS
CONFLICTS_INSTALL= liblas
EXECUTABLES= lasindex las2txt las2las txt2las lasdiff lasinfo laszip lasmerge lasprecision
post-configure: # workaround for https://github.com/LAStools/LAStools/issues/108
@${REINPLACE_CMD} -e '/laslib-config.cmake/,1d' ${BUILD_WRKSRC}/LASlib/src/cmake_install.cmake
pre-install:
${MV} ${WRKSRC}/LASlib/src/LASlib-config.cmake ${WRKSRC}/LASlib/src/laslib-config.cmake
post-install: # install executables, workaround for https://github.com/LAStools/LAStools/issues/120
.for e in ${EXECUTABLES}

View File

@ -80,5 +80,6 @@ include/LASlib/laszip_common_v3.hpp
include/LASlib/laszip_decompress_selective_v3.hpp
include/LASlib/mydefs.hpp
lib/LASlib/libLASlib.so
lib/cmake/LASlib/laslib-config.cmake
lib/cmake/LASlib/laslib-targets-%%CMAKE_BUILD_TYPE%%.cmake
lib/cmake/LASlib/laslib-targets.cmake