blob: db60c3ddc8e4ae7a24976518e45b54eb1b35920d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class Pktools(CMakePackage):
"""Processing Kernel for geospatial data"""
homepage = "http://pktools.nongnu.org/html/index.html"
url = "http://download.savannah.gnu.org/releases/pktools/pktools-2.6.7.tar.gz"
version('2.6.7.1', sha256='519b6a500ce3c5ef3793c1cda1f5377f13b7d7591b5ccc376b2bd1de4bd4f7e5')
version('2.6.7', sha256='f566647e93037cc01cebfe17ea554d798177fe5081887c70223dcca817f4fe7f')
variant('fann', default=True, description='Build with libfann to enable related programs')
variant('liblas', default=False, description='Build with libLAS support')
depends_on('gdal')
depends_on('gsl')
depends_on('armadillo')
depends_on('nlopt')
depends_on('boost')
depends_on('fann', when='+fann')
depends_on('liblas', when='+liblas')
def cmake_args(self):
args = []
args.append('-DCMAKE_CXX_STANDARD=11')
args.append('-DPKTOOLS_WITH_UTILITIES=ON')
if '+fann' in self.spec:
args.append('-DBUILD_WITH_FANN=ON')
else:
args.append('-DBUILD_WITH_FANN=OFF')
if '+liblas' in self.spec:
args.append('-DBUILD_WITH_LIBLAS=ON')
else:
args.append('-DBUILD_WITH_LIBLAS=OFF')
return args
|