diff options
author | Martin Lambers <marlam@marlam.de> | 2012-12-06 12:27:37 (GMT) |
---|---|---|
committer | Martin Lambers <marlam@marlam.de> | 2012-12-07 19:32:10 (GMT) |
commit | 1d59bf7b92d6fbb57f7791466c56a07a5afbd265 (patch) | |
tree | 60110a34a9c1f75e369a98d094f08dd621680d75 /src/pcl.mk | |
parent | 27cb9ec7b6ae4b228c923b663339b06febeaf872 (diff) | |
download | mxe-1d59bf7b92d6fbb57f7791466c56a07a5afbd265.zip mxe-1d59bf7b92d6fbb57f7791466c56a07a5afbd265.tar.gz mxe-1d59bf7b92d6fbb57f7791466c56a07a5afbd265.tar.bz2 |
Add package PCL (Point Cloud Library).
Diffstat (limited to 'src/pcl.mk')
-rw-r--r-- | src/pcl.mk | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/src/pcl.mk b/src/pcl.mk new file mode 100644 index 0000000..0793202 --- /dev/null +++ b/src/pcl.mk @@ -0,0 +1,37 @@ +# This file is part of MXE. +# See index.html for further information. + +PKG := pcl +$(PKG)_IGNORE := +$(PKG)_CHECKSUM := 45a2e155d7faf5901abe609fd40d5f1659015e9e +$(PKG)_SUBDIR := PCL-$($(PKG)_VERSION)-Source +$(PKG)_FILE := PCL-$($(PKG)_VERSION)-Source.tar.bz2 +$(PKG)_URL := http://www.pointclouds.org/assets/files/$($(PKG)_VERSION)/$($(PKG)_FILE) +$(PKG)_DEPS := gcc libgomp boost eigen flann vtk + +define $(PKG)_UPDATE + /bin/false +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)' \ + -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)' install VERBOSE=1 +endef |