From owner-svn-ports-head@FreeBSD.ORG Wed Jun 11 07:06:02 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DC877744; Wed, 11 Jun 2014 07:06:02 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id BDFB1214D; Wed, 11 Jun 2014 07:06:02 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s5B762VS094669; Wed, 11 Jun 2014 07:06:02 GMT (envelope-from gahr@svn.freebsd.org) Received: (from gahr@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s5B7623q094661; Wed, 11 Jun 2014 07:06:02 GMT (envelope-from gahr@svn.freebsd.org) Message-Id: <201406110706.s5B7623q094661@svn.freebsd.org> From: Pietro Cerutti Date: Wed, 11 Jun 2014 07:06:02 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r357425 - in head/cad/meshlab: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jun 2014 07:06:03 -0000 Author: gahr Date: Wed Jun 11 07:06:01 2014 New Revision: 357425 URL: http://svnweb.freebsd.org/changeset/ports/357425 QAT: https://qat.redports.org/buildarchive/r357425/ Log: - Unbreak Added: head/cad/meshlab/files/patch-external-structuresynth-ssynth-SyntopiaCore-GLEngine-Raytracer_VoxelStepper.cpp (contents, props changed) head/cad/meshlab/files/patch-vcglib-vcg-space_deprecated_point.h (contents, props changed) Modified: head/cad/meshlab/Makefile head/cad/meshlab/files/patch-vcglib-vcg-math_base.h Modified: head/cad/meshlab/Makefile ============================================================================== --- head/cad/meshlab/Makefile Wed Jun 11 07:02:04 2014 (r357424) +++ head/cad/meshlab/Makefile Wed Jun 11 07:06:01 2014 (r357425) @@ -11,16 +11,16 @@ MASTER_SITES= ${MASTER_SITE_LOCAL}/gahr/ MAINTAINER= gahr@FreeBSD.org COMMENT= 3D triangular meshes processing and editing tool -BROKEN= Fails to configure - -EXTRACT_DEPENDS=7z:${PORTSDIR}/archivers/p7zip +LIB_DEPENDS= libQtSolutions_SOAP-head.so:${PORTSDIR}/devel/qt4-qtsolutions-soap LIB_DEPENDS= libQtSolutions_SOAP-head.so:${PORTSDIR}/devel/qt4-qtsolutions-soap -USES= dos2unix qmake +USES= dos2unix qmake compiler:c++11-lib +USE_CXXSTD= c++11 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 \ + external/structuresynth/ssynth/SyntopiaCore/GLEngine/Raytracer/VoxelStepper.cpp \ meshlabplugins/edit_arc3D/fillImage.cpp WRKSRC= ${WRKDIR}/${DISTNAME}/${PORTNAME}/src @@ -38,11 +38,13 @@ post-patch: ${REINPLACE_CMD} -e '/^CONFIG +=/s|$$| debug|' .endif -pre-configure: +do-configure: cd ${WRKSRC}/external && ${QMAKE} ${QMAKE_ARGS} -recursive external.pro + cd ${WRKSRC} && ${QMAKE} -spec ${QMAKESPEC} -recursive meshlab_full.pro -pre-build: +do-build: cd ${WRKSRC}/external && ${MAKE} + cd ${WRKSRC} && ${MAKE} do-install: ${MKDIR} ${STAGEDIR}${PREFIX}/lib/meshlab/plugins Added: head/cad/meshlab/files/patch-external-structuresynth-ssynth-SyntopiaCore-GLEngine-Raytracer_VoxelStepper.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/cad/meshlab/files/patch-external-structuresynth-ssynth-SyntopiaCore-GLEngine-Raytracer_VoxelStepper.cpp Wed Jun 11 07:06:01 2014 (r357425) @@ -0,0 +1,11 @@ +--- external/structuresynth/ssynth/SyntopiaCore/GLEngine/Raytracer/VoxelStepper.cpp.orig 2014-05-19 17:17:49.000000000 +0200 ++++ external/structuresynth/ssynth/SyntopiaCore/GLEngine/Raytracer/VoxelStepper.cpp 2014-05-19 17:19:07.000000000 +0200 +@@ -122,7 +122,7 @@ + currentT = p; + + // We do not intersect grid. +- if (!found) return false; ++ if (!found) return nullptr; + } + + stepX = (dir.x() > 0) ? 1 : -1; Modified: head/cad/meshlab/files/patch-vcglib-vcg-math_base.h ============================================================================== --- head/cad/meshlab/files/patch-vcglib-vcg-math_base.h Wed Jun 11 07:02:04 2014 (r357424) +++ head/cad/meshlab/files/patch-vcglib-vcg-math_base.h Wed Jun 11 07:06:01 2014 (r357425) @@ -4,7 +4,7 @@ /// static_assert: implemented as a macro for "assert", but it is separated for clarity. /// Should be used for checking integrity constraints that can be tested at complile time, /// as the ones involving templated constants in templated classes. -+#ifndef static_assert ++#if 0 #define static_assert assert +#endif Added: head/cad/meshlab/files/patch-vcglib-vcg-space_deprecated_point.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/cad/meshlab/files/patch-vcglib-vcg-space_deprecated_point.h Wed Jun 11 07:06:01 2014 (r357425) @@ -0,0 +1,30 @@ +--- ../../vcglib/vcg/space/deprecated_point.h.orig 2012-07-31 08:25:21.000000000 +0200 ++++ ../../vcglib/vcg/space/deprecated_point.h 2014-06-10 17:19:15.000000000 +0200 +@@ -59,6 +59,10 @@ + #include + #include + ++#if defined(__FreeBSD__) && __FreeBSD_version < 1000000 ++#define static_assert(cond,msg) typedef char static_assertion_##__FILE__##__LINE__[(cond)?1:-1] ++#endif ++ + namespace vcg { + + namespace ndim{ +@@ -164,14 +168,14 @@ + } + inline const S &X() const { return _v[0]; } + inline const S &Y() const { return _v[1]; } +- inline const S &Z() const { static_assert(N>2); return _v[2]; } ++ inline const S &Z() const { static_assert(N>2, "No Z coordinate in R² space"); return _v[2]; } + /// W is in any case the last coordinate. + /// (in a 2D point, W() == Y(). In a 3D point, W()==Z() + /// in a 4D point, W() is a separate component) + inline const S &W() const { return _v[N-1]; } + inline S &X() { return _v[0]; } + inline S &Y() { return _v[1]; } +- inline S &Z() { static_assert(N>2); return _v[2]; } ++ inline S &Z() { static_assert(N>2, "No Z coordinate in R² space"); return _v[2]; } + inline S &W() { return _v[N-1]; } + inline const S * V() const + {