From owner-svn-ports-head@FreeBSD.ORG Sat Jan 25 16:53:54 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 CC8533A9; Sat, 25 Jan 2014 16:53:54 +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 B84281092; Sat, 25 Jan 2014 16:53:54 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id s0PGrsHi001410; Sat, 25 Jan 2014 16:53:54 GMT (envelope-from miwi@svn.freebsd.org) Received: (from miwi@localhost) by svn.freebsd.org (8.14.7/8.14.7/Submit) id s0PGrsa7001408; Sat, 25 Jan 2014 16:53:54 GMT (envelope-from miwi@svn.freebsd.org) Message-Id: <201401251653.s0PGrsa7001408@svn.freebsd.org> From: Martin Wilke Date: Sat, 25 Jan 2014 16:53:54 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r341056 - in head/games/bastet: . 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: Sat, 25 Jan 2014 16:53:55 -0000 Author: miwi Date: Sat Jan 25 16:53:54 2014 New Revision: 341056 URL: http://svnweb.freebsd.org/changeset/ports/341056 QAT: https://qat.redports.org/buildarchive/r341056/ Log: - Fix build - Stage support PR: 184894 Submitted by: ports fury Added: head/games/bastet/files/ head/games/bastet/files/patch-BastetBlockChooser.hpp (contents, props changed) Modified: head/games/bastet/Makefile Modified: head/games/bastet/Makefile ============================================================================== --- head/games/bastet/Makefile Sat Jan 25 16:51:55 2014 (r341055) +++ head/games/bastet/Makefile Sat Jan 25 16:53:54 2014 (r341056) @@ -9,36 +9,45 @@ MASTER_SITES= http://fph.altervista.org/ EXTRACT_SUFX= .tgz MAINTAINER= ports@FreeBSD.org -COMMENT= An ncurses Tetris clone which is harder than every other Tetris +COMMENT= Ncurses Tetris clone which is harder than every other Tetris LICENSE= GPLv3 # (or later) LIB_DEPENDS= libboost_program_options.so:${PORTSDIR}/devel/boost-libs -USES= ncurses -USE_GMAKE= yes +USES= gmake ncurses CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib -MAN6= bastet.6 -PLIST_FILES= bin/bastet +PLIST_FILES= bin/bastet man/man6/bastet.6.gz -NO_STAGE= yes .include -.if ${ARCH} != "i386" +.if ${OSVERSION} < 1000024 +.if exists(/usr/bin/clang) +CC= clang +CXX= clang++ +CPP= clang-cpp +.else +.if ${ARCH} == "i386" +CXXFLAGS+= -fexceptions +.else USE_GCC= yes .endif +.endif +.endif post-patch: @${REINPLACE_CMD} -e \ 's|^CXXFLAGS+=-D|CXXFLAGS+=$$(CPPFLAGS) -D| ; \ - s|$$(CXX) -MM|$$(CXX) $$(CPPFLAGS) -MM| ; \ + s|$$(CXX) -MM|$$(CXX) $$(CXXFLAGS) -MM| ; \ s| -ggdb | |' ${WRKSRC}/Makefile do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/bastet ${PREFIX}/bin - ${INSTALL_MAN} ${WRKSRC}/bastet.6 ${MAN6PREFIX}/man/man6 + (cd ${WRKSRC} && ${INSTALL_PROGRAM} bastet \ + ${STAGEDIR}${PREFIX}/bin) + (cd ${WRKSRC} && ${INSTALL_MAN} bastet.6 \ + ${STAGEDIR}${MAN6PREFIX}/man/man6) .include Added: head/games/bastet/files/patch-BastetBlockChooser.hpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/bastet/files/patch-BastetBlockChooser.hpp Sat Jan 25 16:53:54 2014 (r341056) @@ -0,0 +1,47 @@ +--- BastetBlockChooser.hpp.orig 2009-03-21 06:49:31.000000000 +0900 ++++ BastetBlockChooser.hpp 2013-11-29 22:35:48.000000000 +0900 +@@ -23,19 +23,32 @@ + + #include "Well.hpp" + ++#if !defined(_LIBCPP_VERSION) + #include ++#else ++#include ++#endif + #include + #include + ++#if !defined(_LIBCPP_VERSION) + //boilerplate to use boost::hash as std::tr1::hash + namespace std{namespace tr1{ ++#else ++//boilerplate to use boost::hash as std::hash ++namespace std{ ++#endif + template<> struct hash{ + size_t operator()(const Bastet::BlockPosition &fb) const{ + static boost::hash h; + return h(fb); + } + }; ++#if !defined(_LIBCPP_VERSION) + }} ++#else ++ } ++#endif + + namespace Bastet{ + +@@ -83,7 +96,11 @@ + public: + Searcher(BlockType b, const Well *well, Vertex v, WellVisitor *visitor); + private: ++#if !defined(_LIBCPP_VERSION) + std::tr1::unordered_set _visited; ++#else ++ std::unordered_set _visited; ++#endif + //std::set _visited; ^^ the above is more efficient, we need to do many inserts + BlockType _block; + const Well *_well;