#-*- 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
PortGroup           boost   1.0

github.setup        libLAS libLAS 33097f17e27b853ac7b9651025a70354ffb10cfc
github.tarball_from archive
version             1.8.1-20260413
revision            0
checksums           rmd160  b26fa1afd5e1e3496a7bc785d95a622bb379dd4e \
                    sha256  e18caf31efc7d1838961616d6f570b64d5318b5182af2915458c2fbdff57a768 \
                    size    10744324

name                liblas
license             BSD
categories          gis
maintainers         nomaintainer
description         LAS 1.0/1.1/1.2 ASPRS LiDAR data translation toolset

long_description \
    libLAS is a C/C++ library for reading and writing the very common LAS \
    LiDAR format. The ASPRS LAS format is a sequential binary format used to \
    store data from LiDAR sensors and by LiDAR processing software for data \
    interchange and archival.

homepage            https://liblas.org/

compiler.cxx_standard \
                    2014

patchfiles          patch-apps_CMakeLists.txt.diff

configure.args-append \
                    -DPROJ4_INCLUDE_DIR=${prefix}/lib/proj9 \
                    -DPROJ4_LIBRARY=${prefix}/lib/proj9 \
                    -DWITH_GDAL=ON \
                    -DWITH_GEOTIFF=ON \
                    -DWITH_LASZIP=OFF

configure.env-append \
                    GDAL_HOME=${prefix}

boost.version       1.81
depends_lib-append  port:gdal \
                    port:libgeotiff \
                    port:proj \
                    port:tiff \
                    path:include/turbojpeg.h:libjpeg-turbo \
                    port:zlib \
                    port:laszip
