Bug 261091 - misc/lastools: Fix cmake build for laslib-config.cmake
Summary: misc/lastools: Fix cmake build for laslib-config.cmake
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Yuri Victorovich
URL: https://github.com/LAStools/LAStools/...
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-10 16:01 UTC by Rainer Hurling
Modified: 2022-01-10 18:08 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (yuri)


Attachments
fix for liblas-config.cmake build and install (1.52 KB, patch)
2022-01-10 16:01 UTC, Rainer Hurling
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rainer Hurling freebsd_committer freebsd_triage 2022-01-10 16:01:52 UTC
Created attachment 230882 [details]
fix for liblas-config.cmake build and install

After the commit of v2.0.0, the author of LAStools gave me the crucial tip why liblas-config.cmake could not be created and installed [1]. The file is only generated when cmake builds in the sources ... :(

[1] https://github.com/LAStools/LAStools/issues/108

The attached patch therefore switches cmake to insource and removes the no longer necessary patch under the post-configure target. The file must still be renamed from LASlib-config.cmake to laslib-config.cmake before staging.

While here, add an entry CONFLICTS_INSTALL=liblas, because devel/liblas also installs executables 'las2txt, las2las, txt2las, and lasinfo' under bin/ .
Comment 1 Yuri Victorovich freebsd_committer freebsd_triage 2022-01-10 18:08:18 UTC
Committed, thanks!
Comment 2 commit-hook freebsd_committer freebsd_triage 2022-01-10 18:08:29 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=e5cc987c91e9bbb5ac6d7f5751830ca2971d11e9

commit e5cc987c91e9bbb5ac6d7f5751830ca2971d11e9
Author:     Rainer Hurling <rhurlin@FreeBSD.org>
AuthorDate: 2022-01-10 18:07:27 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-01-10 18:08:14 +0000

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

    PR:             261091

 misc/lastools/Makefile  | 9 ++++++---
 misc/lastools/pkg-plist | 1 +
 2 files changed, 7 insertions(+), 3 deletions(-)