blob: b5c807f0c79dfc5a2b8f56086dfbe4b011e3c5d4 (
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
|
# This file is part of MXE.
# See index.html for further information.
PKG := pcl
$(PKG)_IGNORE :=
$(PKG)_VERSION := 1.6.0
$(PKG)_CHECKSUM := 6e45e45dc711821236a79c6a777d045c0a2baf93
$(PKG)_SUBDIR := pcl-pcl-$($(PKG)_VERSION)
$(PKG)_FILE := pcl-$($(PKG)_VERSION).tar.gz
$(PKG)_URL := https://github.com/PointCloudLibrary/pcl/archive/$($(PKG)_FILE)
$(PKG)_DEPS := gcc libgomp boost eigen flann vtk
define $(PKG)_UPDATE
$(WGET) -q -O- "http://www.pointclouds.org/downloads/" | \
grep '<a href=.*tar' | \
$(SED) -n 's,.*PCL-\([0-9][^>]*\)-Source.*,\1,p' | \
head -1
endef
# There is a strange problem where including <cfloat> leads to an error
# in some of the #include_next magic with float.h.
# We work around this by avoiding an #include_next in MinGW's float.h
# (by defining __FLOAT_H) and then manually defining the MIN/MAX macros
# that PCL wants to use.
define $(PKG)_BUILD
cd '$(1)' && \
CXXFLAGS="-D__FLOAT_H -DFLT_MAX=__FLT_MAX__ -DFLT_MIN=__FLT_MIN__ -DDBL_MAX=__DBL_MAX__ -DDBL_MIN=__DBL_MIN__" \
cmake . \
-DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \
-DVTK_DIR='$(PREFIX)/$(TARGET)/lib/vtk-5.8' \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_RELEASE_POSTFIX='' \
-DBoost_THREADAPI=win32 \
-DPCL_SHARED_LIBS=OFF \
-DBUILD_TESTS=OFF \
-DBUILD_apps=OFF \
-DBUILD_examples=OFF \
-DBUILD_global_tests=OFF \
-DBUILD_tools=OFF
$(MAKE) -C '$(1)' -j '$(JOBS)' VERBOSE=1 || $(MAKE) -C '$(1)' -j 1 VERBOSE=1
$(MAKE) -C '$(1)' -j 1 install VERBOSE=1
endef
$(PKG)_BUILD_x86_64-w64-mingw32 =
|