# -*- 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
github.setup PDAL PDAL 2.0.1
maintainers {vince @Veence} openmaintainer
description PDAL - Point Cloud Manipulation Library
long_description PDAL is a C++ BSD library for translating and\
manipulating point cloud data. It is very much\
like the GDAL library which handles raster and\
homepage https://www.pdal.io
distname PDAL-${version}-src
checksums rmd160 32172cd60cf1a1a172494ae6e31d1a71b5bfdc84 \
sha256 20d1b9580c553b5e48caaf22a09d1c4f5c99b64156a2174e7ed5e464acbaa063 \
depends_lib-append port:geos \
set python_suffixes {27 35 36 37}
foreach suffix ${python_suffixes} {
lappend python_variants python${suffix}
foreach suffix ${python_suffixes} {
set pyversion [string index ${suffix} 0].[string index ${suffix} 1]
set index [lsearch -exact ${python_variants} ${vrt}]
set conf [lreplace ${python_variants} ${index} ${index}]
set pyfw ${frameworks_dir}/Python.framework/Versions/${pyversion}
variant ${vrt} description "Use Python ${pyversion}" conflicts {*}${conf} "
depends_lib-append port:${vrt} \
-DBUILD_PLUGIN_PYTHON=ON \
-DPYTHON_EXECUTABLE=${prefix}/bin/python${pyversion} \
-DPYTHON_INCLUDE_DIR=${pyfw}/Headers \
-DPYTHON_LIBRARY=${pyfw}/lib/libpython${pyversion}.dylib