blob: 0318a9b7a6d4c46ec1058a12426e716a8377cf41 (
plain)
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
# Contributor: Bradley J Chambers <brad.chambers@gmail.com>
# Maintainer: Bradley J Chambers <brad.chambers@gmail.com>
pkgname=pdal
pkgver=1.7.2
pkgrel=3
pkgdesc="PDAL is a C++ BSD library for translating and manipulating point cloud data."
url="https://github.com/pdal/pdal"
arch="x86 x86_64"
license="BSD"
depends="nitro python py-numpy>=1.14.3-r1"
makedepends="
cmake
eigen-dev
hexer-dev
nitro-dev
gdal-dev
geos-dev
laz-perf-dev
libgeotiff-dev
libxml2-dev
python-dev
py-numpy-dev
jsoncpp-dev
hdf5-dev
proj4-dev
cpd-dev
fgt-dev
sqlite-dev
postgresql-dev
curl-dev
laszip-dev
libspatialite-dev
linux-headers
libexecinfo-dev
pcl-dev
boost-dev
"
install=""
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::http://download.osgeo.org/$pkgname/PDAL-$pkgver-src.tar.gz"
builddir="$srcdir/PDAL-$pkgver-src"
build() {
cd "$builddir"
mkdir build && cd build
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_PLUGIN_PYTHON=ON \
-DBUILD_PLUGIN_CPD=ON \
-DBUILD_PLUGIN_GREYHOUND=ON \
-DBUILD_PLUGIN_HEXBIN=ON \
-DBUILD_PLUGIN_NITF=ON \
-DBUILD_PLUGIN_ICEBRIDGE=ON \
-DBUILD_PLUGIN_PGPOINTCLOUD=ON \
-DBUILD_PGPOINTCLOUD_TESTS=OFF \
-DBUILD_PLUGIN_SQLITE=ON \
-DBUILD_PLUGIN_PCL=ON \
-DWITH_LASZIP=ON \
-DWITH_LAZPERF=ON \
-DWITH_TESTS=ON
make
}
package() {
cd "$builddir"/build
make DESTDIR="$pkgdir" install
}
dev() {
default_dev
mv "$subpkgdir"/usr/lib/* "$pkgdir"/usr/lib/
rm -r "$subpkgdir"/usr/lib
}
check() {
cd "$builddir"/build
make test
}
sha512sums="0996b32176f158517db89109afab2ff41c8eaaa0991d3486f036bdf9de91d8829d879f06b8ffd36ada5db2f272bcd69a9043dd683c7dc0e169a074de1896b90b pdal-1.7.2.tar.gz"
|