#-*- 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 0839c6cab5fd8b629cc8e5e298193fa56078bccb
github.tarball_from archive
version             1.8.1-202600601
revision            0
checksums           rmd160  a29320a0a5bd9f0da8f2c25487bb7e2a6ebfecef \
                    sha256  60a6a395bdd7615230a5dfa5db03b3f832c63248d7d198ccd48c170c93cde4db \
                    size    10744424

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
