openbsd-ports/geo/pdal/Makefile
2019-08-28 06:53:02 +00:00

48 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.14 2019/08/28 06:53:02 landry Exp $
COMMENT = translator library for point cloud formats
DISTNAME = PDAL-2.0.1-src
PKGNAME = ${DISTNAME:L:C/-src//}
SHARED_LIBS = pdal_base 2.0 # 6.1
SHARED_LIBS += pdal_util 0.2 # 6.1
CATEGORIES = geo devel textproc
HOMEPAGE = https://pdal.io/
MASTER_SITES = https://github.com/PDAL/PDAL/releases/download/2.0.1/
MAINTAINER = Landry Breuil <landry@openbsd.org>
# BSD
PERMIT_PACKAGE = Yes
MODULES = devel/cmake lang/python
# uses std=c++0x
COMPILER = base-clang ports-gcc
MODPY_VERSION = ${MODPY_DEFAULT_VERSION_3}
BUILD_DEPENDS = math/py-numpy,${MODPY_FLAVOR}
LIB_DEPENDS = ${MODPY_LIB_DEPENDS} \
geo/gdal \
databases/postgresql \
net/curl
WANTLIB += c crypto curl gdal geotiff m pq pthread ${MODPY_WANTLIB}
WANTLIB += ssl xml2 z zstd
WANTLIB += ${COMPILER_LIBCXX}
CONFIGURE_ARGS = \
-DPDAL_PLUGIN_INSTALL_PATH=${LOCALBASE}/share/pdal/plugins \
-DBUILD_PLUGIN_PYTHON=ON
#post-extract:
# rm ${WRKSRC}/cmake/execinfo.cmake
# needs load extension
# -DBUILD_PLUGIN_SQLITE=ON
.include <bsd.port.mk>