2020-07-18 10:18:57 +02:00
|
|
|
PORTNAME= meshlab
|
|
|
|
DISTVERSIONPREFIX= Meshlab-
|
|
|
|
DISTVERSION= 2020.05
|
2021-06-19 22:16:08 +02:00
|
|
|
PORTREVISION= 1
|
2020-07-18 10:18:57 +02:00
|
|
|
CATEGORIES= cad
|
|
|
|
|
|
|
|
MAINTAINER= lbartoletti@FreeBSD.org
|
|
|
|
COMMENT= 3D triangular meshes processing and editing tool
|
2022-09-07 23:06:12 +02:00
|
|
|
WWW= https://www.meshlab.net/
|
2020-07-18 10:18:57 +02:00
|
|
|
|
|
|
|
LICENSE= GPLv2
|
|
|
|
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/include/vcglib/img/img.h:devel/vcglib
|
|
|
|
LIB_DEPENDS= libmpirxx.so:math/mpir
|
|
|
|
|
2021-07-12 00:31:31 +02:00
|
|
|
USES= dos2unix gl qmake:outsource qt:5
|
2020-07-18 10:18:57 +02:00
|
|
|
USE_GL= gl glu glew
|
2022-09-11 12:20:14 +02:00
|
|
|
USE_QT= buildtools:build core gui network \
|
2020-07-18 10:18:57 +02:00
|
|
|
opengl script xml xmlpatterns widgets
|
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= cnr-isti-vclab
|
|
|
|
USE_LDCONFIG= yes
|
|
|
|
|
|
|
|
QMAKE_SOURCE_PATH= ${WRKSRC}/src/meshlab.pro
|
|
|
|
|
|
|
|
DOS2UNIX_GLOB= *.c *.cpp *.h
|
|
|
|
|
2022-04-27 15:22:35 +02:00
|
|
|
.if !exists(/usr/include/omp.h)
|
2021-07-12 00:31:31 +02:00
|
|
|
USES+= compiler:gcc-c++11-lib
|
|
|
|
.else
|
|
|
|
USES+= compiler:c++11-lang
|
|
|
|
.endif
|
|
|
|
|
2020-07-18 10:18:57 +02:00
|
|
|
post-patch:
|
|
|
|
${REINPLACE_CMD} 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/src/general.pri
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/lib/meshlab/plugins
|
|
|
|
cd ${BUILD_WRKSRC}/distrib/plugins && ${INSTALL_LIB} *.so ${STAGEDIR}${PREFIX}/lib/meshlab/plugins
|
|
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/lib/meshlab/shaders
|
|
|
|
cd ${WRKSRC}/distrib/shaders && ${COPYTREE_SHARE} \* ${STAGEDIR}${PREFIX}/lib/meshlab/shaders
|
|
|
|
${INSTALL_LIB} ${BUILD_WRKSRC}/distrib/lib/* ${STAGEDIR}${PREFIX}/lib
|
|
|
|
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/distrib/meshlab ${STAGEDIR}${PREFIX}/lib/meshlab
|
|
|
|
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/distrib/meshlabserver ${STAGEDIR}${PREFIX}/lib/meshlab
|
|
|
|
${RLN} ${STAGEDIR}${PREFIX}/lib/meshlab/meshlab ${STAGEDIR}${PREFIX}/bin
|
|
|
|
${RLN} ${STAGEDIR}${PREFIX}/lib/meshlab/meshlabserver ${STAGEDIR}${PREFIX}/bin
|
2021-07-12 00:31:31 +02:00
|
|
|
|
2020-07-18 10:18:57 +02:00
|
|
|
.include <bsd.port.mk>
|