From owner-svn-ports-head@FreeBSD.ORG Thu Feb 13 16:57:35 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 88841551; Thu, 13 Feb 2014 16:57:35 +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)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 73CEE18FF; Thu, 13 Feb 2014 16:57:35 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s1DGvZRW059019; Thu, 13 Feb 2014 16:57:35 GMT (envelope-from gahr@svn.freebsd.org) Received: (from gahr@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s1DGvYRn059015; Thu, 13 Feb 2014 16:57:34 GMT (envelope-from gahr@svn.freebsd.org) Message-Id: <201402131657.s1DGvYRn059015@svn.freebsd.org> From: Pietro Cerutti Date: Thu, 13 Feb 2014 16:57:34 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r344131 - in head/math/carve: . 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.17 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: Thu, 13 Feb 2014 16:57:35 -0000 Author: gahr Date: Thu Feb 13 16:57:34 2014 New Revision: 344131 URL: http://svnweb.freebsd.org/changeset/ports/344131 QAT: https://qat.redports.org/buildarchive/r344131/ Log: - STAGE-clean - Fix build Modified: head/math/carve/Makefile head/math/carve/files/patch-common_scene.cpp head/math/carve/pkg-plist Modified: head/math/carve/Makefile ============================================================================== --- head/math/carve/Makefile Thu Feb 13 16:43:29 2014 (r344130) +++ head/math/carve/Makefile Thu Feb 13 16:57:34 2014 (r344131) @@ -11,20 +11,22 @@ EXTRACT_SUFX= .tgz MAINTAINER= gahr@FreeBSD.org COMMENT= A fast, robust constructive solid geometry library +LICENSE= GPLv2 + LIB_DEPENDS= libboost_filesystem.so:${PORTSDIR}/devel/boost-libs -OPTIONS_DEFINE= GUI +OPTIONS_DEFINE= DOCS GUI -USES= cmake:outsource +USES= cmake:outsource compiler:c++11-lib USE_GL= glut USE_LDCONFIG= yes -LICENSE= GPLv2 +PORTDOCS= * CFLAGS+= -I${LOCALBASE}/include +CXXFLAGS+= -std=c++11 LDFLAGS+= -L${LOCALBASE}/lib -NO_STAGE= yes .include .if ${PORT_OPTIONS:MGUI} @@ -37,11 +39,15 @@ PLIST_SUB+= GUI="@comment " CMAKE_ARGS+= -DCARVE_WITH_GUI:BOOL=false .endif +post-patch: + ${FIND} ${WRKSRC} -name "*.cpp" -o -name "*.h" -o -name "*.hpp" | ${XARGS} \ + ${REINPLACE_CMD} -e 's|::tr1||g' + ${REINPLACE_CMD} -e '/gtest/s|^|#|; /tests/s|^|#|' ${WRKSRC}/CMakeLists.txt + ${REINPLACE_CMD} -e 's|__is_heap|is_heap|' ${WRKSRC}/lib/triangulator.cpp + post-install: - ${LN} -sf libcarve.so.${PORTVERSION} ${PREFIX}/lib/libcarve.so.${PORTVERSION:R:R} -.if !defined(NOPORTDOCS) - ${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/doc/carve.pdf ${DOCSDIR} -.endif + ${LN} -sf libcarve.so.${PORTVERSION} ${STAGEDIR}${PREFIX}/lib/libcarve.so.${PORTVERSION:R:R} + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/doc/carve.pdf ${STAGEDIR}${DOCSDIR} .include Modified: head/math/carve/files/patch-common_scene.cpp ============================================================================== --- head/math/carve/files/patch-common_scene.cpp Thu Feb 13 16:43:29 2014 (r344130) +++ head/math/carve/files/patch-common_scene.cpp Thu Feb 13 16:57:34 2014 (r344131) @@ -1,5 +1,14 @@ ---- common/scene.cpp.orig 2011-12-01 12:05:53.000000000 +0100 -+++ common/scene.cpp 2011-12-01 12:05:22.000000000 +0100 +--- common/scene.cpp.orig 2011-08-26 22:17:26.000000000 +0200 ++++ common/scene.cpp 2014-02-13 15:16:11.000000000 +0100 +@@ -31,7 +31,7 @@ + static int lastbutton = 0; + + static Scene *g_scene = NULL; +-static int g_mainWindow = NULL; ++static int g_mainWindow = 0; + static GLUI *g_rightPanel = NULL; + static double near_plane = 0.2; + static double far_plane = 200; @@ -412,7 +412,7 @@ GLUI_Master.set_glutKeyboardFunc(s_key); GLUI_Master.set_glutSpecialFunc(NULL); Modified: head/math/carve/pkg-plist ============================================================================== --- head/math/carve/pkg-plist Thu Feb 13 16:43:29 2014 (r344130) +++ head/math/carve/pkg-plist Thu Feb 13 16:57:34 2014 (r344131) @@ -74,8 +74,6 @@ include/carve/vertex_decl.hpp include/carve/vertex_impl.hpp include/carve/win32.h include/carve/xcode_config.h -%%PORTDOCS%%%%DOCSDIR%%/carve.pdf -%%PORTDOCS%%@dirrm %%DOCSDIR%% @dirrm include/carve/external @dirrm include/carve/collection/unordered @dirrm include/carve/collection