[Bug 261091] misc/lastools: Fix cmake build for laslib-config.cmake

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 10 Jan 2022 16:01:52 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=261091

            Bug ID: 261091
           Summary: misc/lastools: Fix cmake build for laslib-config.cmake
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: yuri@freebsd.org
          Reporter: rhurlin@FreeBSD.org
          Assignee: yuri@freebsd.org
             Flags: maintainer-feedback?(yuri@freebsd.org)

Created attachment 230882
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=230882&action=edit
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/ .

-- 
You are receiving this mail because:
You are the assignee for the bug.