aboutsummaryrefslogtreecommitdiffstats
path: root/testing/openvdb/APKBUILD
blob: 94ec9a54359cf8a3be551293a60685cb1341031d (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
43
# Contributor: Leon Marz <lmarz@cs.uni-frankfurt.de>
# Maintainer: Leon Marz <lmarz@cs.uni-frankfurt.de>
pkgname=openvdb
pkgver=8.0.1
pkgrel=1
pkgdesc="Sparse volume data structure and tools"
url="https://www.openvdb.org/"
arch="x86_64" # tests fail on all other arches
license="MPL-2.0"
makedepends="cmake openexr-dev libtbb-dev zlib-dev boost-dev python3-dev gtest-dev"
subpackages="$pkgname-static $pkgname-dev py3-$pkgname:python"
source="$pkgname-$pkgver.tar.gz::https://github.com/AcademySoftwareFoundation/openvdb/archive/v$pkgver.tar.gz"

build() {
	cmake -B build \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_SHARED_LIBS=True \
		-DCMAKE_BUILD_TYPE=None \
		-DOPENVDB_BUILD_PYTHON_MODULE=ON \
		-DOPENVDB_BUILD_UNITTESTS=ON \
		-DOPENVDB_ENABLE_RPATH=OFF \
		-DUSE_BLOSC=OFF \
		-DUSE_EXR=ON

	cmake --build build
}

check() {
	cd build
	CTEST_OUTPUT_ON_FAILURE=1 ctest
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

python() {
	pkgdesc="$pkgdesc (Python bindings)"
	amove /usr/lib/python3*
}

sha512sums="6a5a8b637429295efa72494aef82ff92dd83092591b713f56930ccf4aab3a33806d1263bfd090c27239eab97b4fdc053288dc545e631f8a7d4ca180a32331be2  openvdb-8.0.1.tar.gz"