aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-06-07 02:24:28 -0300
committerLeo <thinkabit.ukim@gmail.com>2019-06-07 07:59:15 -0300
commit2373c7db145556dbdac5e354dec9e7c91b712045 (patch)
tree6dcbcd2cb28fe30ea3a884cf4647c8b6c699b4c2
parent8abea60276762020a7897b579f6996433f69756b (diff)
downloadaports-2373c7db145556dbdac5e354dec9e7c91b712045.tar.bz2
aports-2373c7db145556dbdac5e354dec9e7c91b712045.tar.xz
testing/pcl: modernize
-rw-r--r--testing/pcl/APKBUILD75
1 files changed, 36 insertions, 39 deletions
diff --git a/testing/pcl/APKBUILD b/testing/pcl/APKBUILD
index ace448b75a..cd29c20f23 100644
--- a/testing/pcl/APKBUILD
+++ b/testing/pcl/APKBUILD
@@ -7,19 +7,16 @@ pkgdesc="Point Cloud Library (PCL)"
url="https://github.com/PointCloudLibrary/pcl"
arch="all !x86 !s390x" # tests fails on x86 and s390x
license="BSD-3-Clause"
-depends=""
makedepends="cmake eigen-dev boost-dev flann-dev"
subpackages="$pkgname-dev"
_gtestver=1.8.0
source="$pkgname-$pkgver.tar.gz::https://github.com/PointCloudLibrary/$pkgname/archive/$pkgname-$pkgver.tar.gz
- release-$_gtestver.tar.gz::https://github.com/google/googletest/archive/release-$_gtestver.tar.gz
+ release-$_gtestver.tar.gz::https://github.com/google/googletest/archive/release-$_gtestver.tar.gz
gcc8.patch"
builddir="$srcdir/$pkgname-$pkgname-$pkgver"
build() {
- cd "$builddir"
-
- mkdir build && cd build
+ mkdir build && cd build
local disable_segtests=
case "$CARCH" in
@@ -30,46 +27,46 @@ build() {
# (https://github.com/PointCloudLibrary/pcl/blob/master/.appveyor.yml),
# and is due to a list of test failures that are documented in issues
# #1702, #1719, #1921, and #2136.
- cmake .. \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_BUILD_TYPE=Release \
- -DWITH_CUDA=OFF \
- -DWITH_DAVIDSDK=OFF \
- -DWITH_DSSDK=OFF \
- -DWITH_ENSENSO=OFF \
- -DWITH_FZAPI=OFF \
- -DWITH_LIBUSB=OFF \
- -DWITH_OPENGL=OFF \
- -DWITH_OPENNI=OFF \
- -DWITH_OPENNI2=OFF \
- -DWITH_PCAP=OFF \
- -DWITH_PNG=OFF \
- -DWITH_QHULL=OFF \
- -DWITH_QT=OFF \
- -DWITH_VTK=OFF \
- -DBUILD_global_tests=ON \
- -DBUILD_examples=OFF \
- -DBUILD_tools=ON \
- -DBUILD_apps=OFF \
- -DBUILD_tests_common=OFF \
- -DBUILD_tests_features=OFF \
- -DBUILD_tests_filters=OFF \
- -DBUILD_tests_io=OFF \
- $disable_segtests \
- -DBUILD_tests_registration=OFF \
- -DGTEST_SRC_DIR=$srcdir/googletest-release-$_gtestver/googletest \
- -DGTEST_INCLUDE_DIR=$srcdir/googletest-release-$_gtestver/googletest/include
- make
+ cmake .. \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DWITH_CUDA=OFF \
+ -DWITH_DAVIDSDK=OFF \
+ -DWITH_DSSDK=OFF \
+ -DWITH_ENSENSO=OFF \
+ -DWITH_FZAPI=OFF \
+ -DWITH_LIBUSB=OFF \
+ -DWITH_OPENGL=OFF \
+ -DWITH_OPENNI=OFF \
+ -DWITH_OPENNI2=OFF \
+ -DWITH_PCAP=OFF \
+ -DWITH_PNG=OFF \
+ -DWITH_QHULL=OFF \
+ -DWITH_QT=OFF \
+ -DWITH_VTK=OFF \
+ -DBUILD_global_tests=ON \
+ -DBUILD_examples=OFF \
+ -DBUILD_tools=ON \
+ -DBUILD_apps=OFF \
+ -DBUILD_tests_common=OFF \
+ -DBUILD_tests_features=OFF \
+ -DBUILD_tests_filters=OFF \
+ -DBUILD_tests_io=OFF \
+ $disable_segtests \
+ -DBUILD_tests_registration=OFF \
+ -DGTEST_SRC_DIR=$srcdir/googletest-release-$_gtestver/googletest \
+ -DGTEST_INCLUDE_DIR=$srcdir/googletest-release-$_gtestver/googletest/include
+ make
}
package() {
- cd "$builddir"/build
- make DESTDIR="$pkgdir" install
+ cd "$builddir"/build
+ make DESTDIR="$pkgdir" install
}
check() {
- cd "$builddir"/build
- make tests
+ cd "$builddir"/build
+ ctest -E a_octree_test # Fails on drone-ci aarch64
}
sha512sums="9e7c87fb750a176712f08d215a906012c9e8174b687bbc8c08fa65de083b4468951bd8017b10409015d5eff0fc343885d2aae5c340346118b1a251af7bdd5cd7 pcl-1.8.1.tar.gz