summaryrefslogtreecommitdiffstats
path: root/src/pcl.mk
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2017-10-11 00:48:12 (GMT)
committerTony Theodore <tonyt@logyst.com>2017-10-11 00:48:12 (GMT)
commit9c20b912adfadd5962a42ce8947a00ff16ca6d00 (patch)
tree72355388db533f7ce125bd4787a817651d4ed238 /src/pcl.mk
parentf118332737b69447856302738dc1cd8932bb152b (diff)
downloadmxe-9c20b912adfadd5962a42ce8947a00ff16ca6d00.zip
mxe-9c20b912adfadd5962a42ce8947a00ff16ca6d00.tar.gz
mxe-9c20b912adfadd5962a42ce8947a00ff16ca6d00.tar.bz2
pcl: enable shared and use new style options
Replaces #1885
Diffstat (limited to 'src/pcl.mk')
-rw-r--r--src/pcl.mk15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/pcl.mk b/src/pcl.mk
index 54a6748..0c99e40 100644
--- a/src/pcl.mk
+++ b/src/pcl.mk
@@ -25,14 +25,13 @@ endef
# that PCL wants to use.
define $(PKG)_BUILD
- mkdir '$(1).build'
- cd '$(1).build' && \
+ find '$(SOURCE_DIR)' -type f -name CMakeLists.txt -exec $(SED) -i -e 's/Rpcrt4/rpcrt4/g' {} \;
+ cd '$(BUILD_DIR)' && \
CXXFLAGS="-D__FLOAT_H -DFLT_MAX=__FLT_MAX__ -DFLT_MIN=__FLT_MIN__ -DDBL_MAX=__DBL_MAX__ -DDBL_MIN=__DBL_MIN__ -DDBL_EPSILON=__DBL_EPSILON__" \
- '$(TARGET)-cmake' '$(1)' \
- -DVTK_DIR='$(PREFIX)/$(TARGET)/lib/vtk-5.8' \
+ '$(TARGET)-cmake' '$(SOURCE_DIR)' \
-DCMAKE_RELEASE_POSTFIX='' \
-DBoost_THREADAPI=win32 \
- -DPCL_SHARED_LIBS=OFF \
+ -DPCL_SHARED_LIBS=$(CMAKE_SHARED_BOOL) \
-DBUILD_TESTS=OFF \
-DBUILD_apps=OFF \
-DBUILD_examples=OFF \
@@ -47,8 +46,6 @@ define $(PKG)_BUILD
-DHAVE_SSE3_EXTENSIONS_EXITCODE=0 \
-DHAVE_SSE2_EXTENSIONS_EXITCODE=0 \
-DHAVE_SSE_EXTENSIONS_EXITCODE=0
- $(MAKE) -C '$(1).build' -j '$(JOBS)' VERBOSE=1 || $(MAKE) -C '$(1).build' -j 1 VERBOSE=1
- $(MAKE) -C '$(1).build' -j 1 install VERBOSE=1
+ $(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)' VERBOSE=1 || $(MAKE) -C '$(BUILD_DIR)' -j 1 VERBOSE=1
+ $(MAKE) -C '$(BUILD_DIR)' -j 1 install VERBOSE=1
endef
-
-$(PKG)_BUILD_SHARED =