diff options
author | Yuri Victorovich <yuri@FreeBSD.org> | 2018-04-14 14:52:04 +0000 |
---|---|---|
committer | Yuri Victorovich <yuri@FreeBSD.org> | 2018-04-14 14:52:04 +0000 |
commit | 7e74b12f4ff583c2737fd42a6b36bdd488bd215b (patch) | |
tree | bbd09eda26fb0408749422a66889e72ea80821db /graphics/cloudcompare/Makefile | |
parent | 976792c819d34d74b18a720774f1e87981c39803 (diff) | |
download | ports-7e74b12f4ff583c2737fd42a6b36bdd488bd215b.tar.gz ports-7e74b12f4ff583c2737fd42a6b36bdd488bd215b.zip |
New port: graphics/cloudcompare: 3D point cloud processing software
Doesn't build on 12 with PLUGINS=on due to the math/vtk6 failure:
https://gitlab.kitware.com/vtk/vtk/issues/17285
It builds with PLUGINS=off.
Compared to the original submission, sevaral changes have been made:
* Added the PLUGINS option
* Fixed the GAMEPAD option
* etc.
PR: 226239
Submitted by: Neel Chauhan <neel@neelc.org>
Notes
Notes:
svn path=/head/; revision=467320
Diffstat (limited to 'graphics/cloudcompare/Makefile')
-rw-r--r-- | graphics/cloudcompare/Makefile | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/graphics/cloudcompare/Makefile b/graphics/cloudcompare/Makefile new file mode 100644 index 000000000000..166f1ad57043 --- /dev/null +++ b/graphics/cloudcompare/Makefile @@ -0,0 +1,82 @@ +# $FreeBSD$ + +PORTNAME= cloudcompare +DISTVERSIONPREFIX= v +DISTVERSION= 2.9.1-288 +DISTVERSIONSUFFIX= -gb4d51361 +CATEGORIES= graphics + +MAINTAINER= neel@neelc.org +COMMENT= 3D point cloud processing software + +LICENSE= GPLv2+ LGPL20+ +LICENSE_COMB= multi + +BROKEN_FreeBSD_10= error: "SSE instruction set not enabled" + +USES= cmake:outsource localbase:ldflags +USE_GITHUB= yes +GH_ACCOUNT= CloudCompare +GH_PROJECT= ${GH_ACCOUNT} +GH_TAGNAME= 5d41227deb30c445ccbaa2d789a4363b57948a5d +USE_QT5= concurrent core gui opengl printsupport widgets buildtools_build qmake_build +USE_LDCONFIG= yes + +OPTIONS_DEFINE= DXFLIB GAMEPAD GDAL PDAL SHAPELIB PLUGINS +OPTIONS_DEFAULT= DXFLIB GAMEPAD GDAL PDAL SHAPELIB PLUGINS +OPTIONS_SUB= yes + +DXFLIB_DESC= Enable AutoCAD DXF file support +GAMEPAD_DESC= Enable Qt gamepad support +GDAL_DESC= Enable raster file support +PDAL_DESC= Enable point cloud data support +SHAPELIB_DESC= Enable shape file support + +DXFLIB_CMAKE_BOOL= OPTION_USE_DXF_LIB + +GAMEPAD_USE= QT5=gamepad +GAMEPAD_CMAKE_BOOL= OPTION_SUPPORT_GAMEPADS + +GDAL_CMAKE_BOOL= OPTION_USE_GDAL +GDAL_CMAKE_ON= -DGDAL_INCLUDE_DIR=${PREFIX}/include \ + -DGDAL_LIBRARY=${PREFIX}/lib/libgdal.so +GDAL_LIB_DEPENDS= libgdal.so:graphics/gdal + +PDAL_CMAKE_BOOL= OPTION_PDAL_LAS +PDAL_CMAKE_ON= -DJSON_ROOT_DIR=${PREFIX}/include/jsoncpp +PDAL_LIB_DEPENDS= libpdal_base.so:math/pdal + +SHAPELIB_CMAKE_BOOL= OPTION_USE_SHAPE_LIB +SHAPELIB_LIB_DEPENDS= libshp.so:devel/shapelib + +PLUGINS_USES= eigen:3 jpeg python:2.7 +PLUGINS_CMAKE_BOOL= INSTALL_QANIMATION_PLUGIN INSTALL_QBLUR_PLUGIN INSTALL_QBROOM_PLUGIN INSTALL_QCOMPASS_PLUGIN \ + INSTALL_QCSF_PLUGIN INSTALL_QCSV_MATRIX_IO_PLUGIN INSTALL_QDUMMY_PLUGIN INSTALL_QEDL_PLUGIN INSTALL_QFACETS_PLUGIN \ + INSTALL_QHPR_PLUGIN INSTALL_QM3C2_PLUGIN \ + INSTALL_QPCL_PLUGIN INSTALL_QPCV_PLUGIN INSTALL_QPHOTOSCAN_IO_PLUGIN INSTALL_QRANSAC_SD_PLUGIN \ + INSTALL_QSRA_PLUGIN INSTALL_QSSAO_PLUGIN # plugins requiring rare external libs are left out, TODO maybe add some of them? +PLUGINS_CMAKE_ON= -DEIGEN_ROOT_DIR:BOOL=${LOCALBASE}/include/eigen3 +PLUGINS_CXXFLAGS= -Wno-narrowing +PLUGINS_CXXFLAGS+= -DEIGEN_DONT_PARALLELIZE # OpenMP is broken in cmake, see bug#223678 +PLUGINS_USE= XORG=ice,sm,x11,xext,xt GL=gl,glu +PLUGINS_LIB_DEPENDS= libboost_system.so:devel/boost-libs \ + libexpat.so:textproc/expat2 \ + libflann_cpp_s.so:math/flann \ + libfreetype.so:print/freetype2 \ + libpcl_people.so:graphics/pcl-pointclouds \ + libpng16.so:graphics/png \ + libtiff.so:graphics/tiff \ + libvtkDomainsChemistry-6.2.so:math/vtk6 +PLUGINS_IMPLIES= SHAPELIB + +post-patch: + @${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},1' ${WRKSRC}/snap/gui/ccViewer.desktop ${WRKSRC}/snap/gui/cloudcompare.desktop + +post-install: + @${MKDIR} ${STAGEDIR}${PREFIX}/share/pixmaps + ${INSTALL_DATA} ${WRKSRC}/snap/gui/ccViewer.desktop ${STAGEDIR}${PREFIX}/share/applications + ${INSTALL_DATA} ${WRKSRC}/snap/gui/ccViewer.png ${STAGEDIR}${PREFIX}/share/pixmaps + ${INSTALL_DATA} ${WRKSRC}/snap/gui/cloudcompare.desktop ${STAGEDIR}${PREFIX}/share/applications + ${INSTALL_DATA} ${WRKSRC}/snap/gui/cloudcompare.png ${STAGEDIR}${PREFIX}/share/pixmaps + +.include <bsd.port.mk> |