From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Dec 16 18:10:27 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.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 4F4458AF for ; Mon, 16 Dec 2013 18:10:27 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (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 2E63F19F3 for ; Mon, 16 Dec 2013 18:10:27 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id rBGIARhM016592 for ; Mon, 16 Dec 2013 18:10:27 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id rBGIARem016591; Mon, 16 Dec 2013 18:10:27 GMT (envelope-from gnats) Resent-Date: Mon, 16 Dec 2013 18:10:27 GMT Resent-Message-Id: <201312161810.rBGIARem016591@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, KATO Tsuguru 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 E6BE238B for ; Mon, 16 Dec 2013 18:02:18 +0000 (UTC) Received: from omta01.auone-net.jp (mail-or0-f67.auone-net.jp [106.187.230.67]) by mx1.freebsd.org (Postfix) with ESMTP id 929F0185F for ; Mon, 16 Dec 2013 18:02:18 +0000 (UTC) Received: from coppermine.my.domain (ZT030106.ppp.dion.ne.jp [59.128.30.106]) by omta01.auone-net.jp (au one net mail) with ESMTP id 93D47980179 for ; Tue, 17 Dec 2013 03:02:16 +0900 (JST) Message-Id: <20131217024801.95e01f3c8014fdfa321bcf8b@yahoo.com> Date: Tue, 17 Dec 2013 02:48:01 +0900 From: KATO Tsuguru To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/184894: games/bastet: Fix build on -current X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Dec 2013 18:10:27 -0000 >Number: 184894 >Category: ports >Synopsis: games/bastet: Fix build on -current >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Dec 16 18:10:26 UTC 2013 >Closed-Date: >Last-Modified: >Originator: KATO Tsuguru >Release: FreeBSD 8.4-RELEASE-p4 i386 >Organization: >Environment: >Description: - Fix build on -current New file: files/patch-BastetBlockChooser.hpp >How-To-Repeat: >Fix: diff -urN /usr/ports/games/bastet/Makefile games/bastet/Makefile --- /usr/ports/games/bastet/Makefile 2013-12-12 21:50:20.000000000 +0900 +++ games/bastet/Makefile 2013-12-17 00:00:00.000000000 +0900 @@ -9,36 +9,45 @@ 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 diff -urN /usr/ports/games/bastet/files/patch-BastetBlockChooser.hpp games/bastet/files/patch-BastetBlockChooser.hpp --- /usr/ports/games/bastet/files/patch-BastetBlockChooser.hpp 1970-01-01 09:00:00.000000000 +0900 +++ games/bastet/files/patch-BastetBlockChooser.hpp 2013-12-17 00:00:00.000000000 +0900 @@ -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; >Release-Note: >Audit-Trail: >Unformatted: