Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Dec 2013 16:05:54 +0000 (UTC)
From:      Mathieu Arnold <mat@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org
Subject:   svn commit: r337369 - in branches/2014Q1/games/gma: . files
Message-ID:  <201312241605.rBOG5s7j062664@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mat
Date: Tue Dec 24 16:05:54 2013
New Revision: 337369
URL: http://svnweb.freebsd.org/changeset/ports/337369

Log:
  MFH: r337358
  
  - Fix build with clang
  - Add LICENSE
  - Switch to PLIST_FILES
  
  PR:		ports/184905
  Submitted by:	KATO Tsuguru <tkato432@yahoo.com>
  Approved by:	portmgr (implicit)

Added:
  branches/2014Q1/games/gma/files/patch-apprentice.cc
     - copied unchanged from r337358, head/games/gma/files/patch-apprentice.cc
Deleted:
  branches/2014Q1/games/gma/files/patch-aa
  branches/2014Q1/games/gma/files/patch-configure
  branches/2014Q1/games/gma/pkg-plist
Modified:
  branches/2014Q1/games/gma/Makefile   (contents, props changed)
  branches/2014Q1/games/gma/files/patch-moves.h   (contents, props changed)
  branches/2014Q1/games/gma/files/patch-scores.h   (contents, props changed)
  branches/2014Q1/games/gma/pkg-descr   (contents, props changed)
Directory Properties:
  branches/2014Q1/   (props changed)

Modified: branches/2014Q1/games/gma/Makefile
==============================================================================
--- branches/2014Q1/games/gma/Makefile	Tue Dec 24 16:04:53 2013	(r337368)
+++ branches/2014Q1/games/gma/Makefile	Tue Dec 24 16:05:54 2013	(r337369)
@@ -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 <bsd.port.mk>

Copied: branches/2014Q1/games/gma/files/patch-apprentice.cc (from r337358, head/games/gma/files/patch-apprentice.cc)
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ branches/2014Q1/games/gma/files/patch-apprentice.cc	Tue Dec 24 16:05:54 2013	(r337369, copy of r337358, head/games/gma/files/patch-apprentice.cc)
@@ -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: branches/2014Q1/games/gma/files/patch-moves.h
==============================================================================
--- branches/2014Q1/games/gma/files/patch-moves.h	Tue Dec 24 16:04:53 2013	(r337368)
+++ branches/2014Q1/games/gma/files/patch-moves.h	Tue Dec 24 16:05:54 2013	(r337369)
@@ -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 <stl.h>
-+#include <map.h>
++#include <map>
++
++using std::map;
  
  class Moves:map<Pattern,int>
  {

Modified: branches/2014Q1/games/gma/files/patch-scores.h
==============================================================================
--- branches/2014Q1/games/gma/files/patch-scores.h	Tue Dec 24 16:04:53 2013	(r337368)
+++ branches/2014Q1/games/gma/files/patch-scores.h	Tue Dec 24 16:05:54 2013	(r337369)
@@ -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 <stl.h>
-+#include <map.h>
++#include <map>
  #include <string>
  #include "pattern.h"
-+
-+using namespace std;
  
++using std::map;
++
  class Scores
  {
+ public:

Modified: branches/2014Q1/games/gma/pkg-descr
==============================================================================
--- branches/2014Q1/games/gma/pkg-descr	Tue Dec 24 16:04:53 2013	(r337368)
+++ branches/2014Q1/games/gma/pkg-descr	Tue Dec 24 16:05:54 2013	(r337369)
@@ -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/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312241605.rBOG5s7j062664>