From owner-svn-ports-head@FreeBSD.ORG Tue Dec 24 15:04:06 2013 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 2F05ACBA; Tue, 24 Dec 2013 15:04:06 +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 1A5A51741; Tue, 24 Dec 2013 15:04:06 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rBOF45ps034973; Tue, 24 Dec 2013 15:04:05 GMT (envelope-from pawel@svn.freebsd.org) Received: (from pawel@localhost) by svn.freebsd.org (8.14.7/8.14.7/Submit) id rBOF45UV034966; Tue, 24 Dec 2013 15:04:05 GMT (envelope-from pawel@svn.freebsd.org) Message-Id: <201312241504.rBOF45UV034966@svn.freebsd.org> From: Pawel Pekala Date: Tue, 24 Dec 2013 15:04:05 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r337358 - in head/games/gma: . 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: Tue, 24 Dec 2013 15:04:06 -0000 Author: pawel Date: Tue Dec 24 15:04:04 2013 New Revision: 337358 URL: http://svnweb.freebsd.org/changeset/ports/337358 Log: - Fix build with clang - Add LICENSE - Switch to PLIST_FILES PR: ports/184905 Submitted by: KATO Tsuguru Added: head/games/gma/files/patch-apprentice.cc (contents, props changed) Deleted: head/games/gma/files/patch-aa head/games/gma/files/patch-configure head/games/gma/pkg-plist Modified: head/games/gma/Makefile (contents, props changed) head/games/gma/files/patch-moves.h (contents, props changed) head/games/gma/files/patch-scores.h (contents, props changed) head/games/gma/pkg-descr (contents, props changed) Modified: head/games/gma/Makefile ============================================================================== --- head/games/gma/Makefile Tue Dec 24 14:42:35 2013 (r337357) +++ head/games/gma/Makefile Tue Dec 24 15:04:04 2013 (r337358) @@ -9,6 +9,15 @@ MASTER_SITES= http://www.student.nada.kt MAINTAINER= ports@FreeBSD.org COMMENT= Go-moku game which learns playing the game from studying its opponent +LICENSE= GPLv2 # (or later) + GNU_CONFIGURE= yes +PLIST_FILES= bin/apprentice.gmaplayer bin/gma-console + +post-patch: + @${REINPLACE_CMD} -e \ + 's|stl\.h|map| ; \ + s|^CXXFLAGS|#CXXFLAGS|' ${WRKSRC}/configure + .include Added: head/games/gma/files/patch-apprentice.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/gma/files/patch-apprentice.cc Tue Dec 24 15:04:04 2013 (r337358) @@ -0,0 +1,11 @@ +--- src/apprentice.cc.orig ++++ src/apprentice.cc +@@ -32,6 +32,8 @@ + #include "moves.h" + #include "gma.h" + ++using std::string; ++ + #define BOARD_SIZE 50 + #define MAX_DEPTH 2 + Modified: head/games/gma/files/patch-moves.h ============================================================================== --- head/games/gma/files/patch-moves.h Tue Dec 24 14:42:35 2013 (r337357) +++ head/games/gma/files/patch-moves.h Tue Dec 24 15:04:04 2013 (r337358) @@ -1,11 +1,13 @@ ---- src/moves.h.orig Sun May 18 19:18:04 2003 -+++ src/moves.h Sun May 18 19:18:19 2003 -@@ -24,7 +24,7 @@ +--- src/moves.h.orig ++++ src/moves.h +@@ -24,7 +24,9 @@ #include "pattern.h" -#include -+#include ++#include ++ ++using std::map; class Moves:map { Modified: head/games/gma/files/patch-scores.h ============================================================================== --- head/games/gma/files/patch-scores.h Tue Dec 24 14:42:35 2013 (r337357) +++ head/games/gma/files/patch-scores.h Tue Dec 24 15:04:04 2013 (r337358) @@ -1,15 +1,16 @@ --- src/scores.h.orig Mon Apr 17 02:52:22 2000 +++ src/scores.h Sun May 18 19:19:41 2003 -@@ -22,9 +22,11 @@ +@@ -22,10 +22,12 @@ #ifndef SCORES_H #define SCORES_H -#include -+#include ++#include #include #include "pattern.h" -+ -+using namespace std; ++using std::map; ++ class Scores { + public: Modified: head/games/gma/pkg-descr ============================================================================== --- head/games/gma/pkg-descr Tue Dec 24 14:42:35 2013 (r337357) +++ head/games/gma/pkg-descr Tue Dec 24 15:04:04 2013 (r337358) @@ -1,8 +1,9 @@ -GMA or "The Go-Moku Apprentice" is a computerized go-moku player that learns -playing the game entirely from its opponent. It was written for fun by -Johan Walles (d92-jwa@nada.kth.se) in October 1998. +GMA or "The Go-Moku Apprentice" is a computerized go-moku player that +learns playing the game entirely from its opponent. It was written for +fun by Johan Walles (d92-jwa@nada.kth.se) in October 1998. -The goal of Go-Moku is to get five (or more) marks in a row (horisontally, -vertically or diagonally). You get to put one mark each time it is your turn. +The goal of Go-Moku is to get five (or more) marks in a row +(horizontally, vertically or diagonally). You get to put one mark each +time it is your turn. WWW: http://www.student.nada.kth.se/~d92-jwa/code/