mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-26 00:55:14 +00:00
5898d7df5c
- Add state support - Convert LIB_DEPENDS to new style, adjust USE_QT4 components, etc. Approved by: portmgr (blanket approval)
54 lines
1.8 KiB
Makefile
54 lines
1.8 KiB
Makefile
# Created by: gahr
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= meshlab
|
|
DISTVERSION= 1.3.2
|
|
PORTREVISION= 2
|
|
CATEGORIES= cad
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL}/gahr/ \
|
|
http://people.freebsd.org/~gahr/distfiles/
|
|
|
|
MAINTAINER= gahr@FreeBSD.org
|
|
COMMENT= 3D triangular meshes processing and editing tool
|
|
|
|
EXTRACT_DEPENDS=7z:${PORTSDIR}/archivers/p7zip
|
|
LIB_DEPENDS= libQtSolutions_SOAP-head.so:${PORTSDIR}/devel/qt4-qtsolutions-soap
|
|
|
|
USES= dos2unix qmake
|
|
USE_GL= glew glu
|
|
USE_QT4= moc_build rcc_build uic_build corelib gui xml \
|
|
xmlpatterns opengl network script
|
|
DOS2UNIX_FILES= external/structuresynth/ssynth/SyntopiaCore/GLEngine/Object3D.h \
|
|
meshlabplugins/edit_arc3D/fillImage.cpp
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/${PORTNAME}/src
|
|
|
|
post-patch:
|
|
${MV} "${WRKSRC}/distrib/shaders/electronic microscope.gdp" \
|
|
${WRKSRC}/distrib/shaders/electronic_microscope.gdp
|
|
${MV} "${WRKSRC}/distrib/shaders/shadersrm/old/Depth of Field.rfx" \
|
|
${WRKSRC}/distrib/shaders/shadersrm/old/Depth_of_Field.rfx
|
|
${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' \
|
|
${WRKSRC}/common/pluginmanager.cpp
|
|
|
|
.if defined(MAINTAINER_MODE)
|
|
${FIND} ${WRKSRC}/../../ -name "*.pro" | ${XARGS} \
|
|
${REINPLACE_CMD} -e '/^CONFIG +=/s|$$| debug|'
|
|
.endif
|
|
|
|
pre-configure:
|
|
cd ${WRKSRC}/external && ${QMAKE} ${QMAKE_ARGS} -recursive external.pro
|
|
|
|
pre-build:
|
|
cd ${WRKSRC}/external && ${MAKE}
|
|
|
|
do-install:
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/lib/meshlab/plugins
|
|
cd ${WRKSRC}/distrib/plugins && ${COPYTREE_SHARE} \*.so ${STAGEDIR}${PREFIX}/lib/meshlab/plugins
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/lib/meshlab/shaders
|
|
cd ${WRKSRC}/distrib/shaders && ${COPYTREE_SHARE} \* ${STAGEDIR}${PREFIX}/lib/meshlab/shaders
|
|
${INSTALL_PROGRAM} ${WRKSRC}/distrib/meshlab ${STAGEDIR}${PREFIX}/lib/meshlab
|
|
${LN} -sf ${PREFIX}/lib/meshlab/meshlab ${STAGEDIR}${PREFIX}/bin
|
|
|
|
.include <bsd.port.mk>
|