Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Dec 2013 15:04:05 +0000 (UTC)
From:      Pawel Pekala <pawel@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r337358 - in head/games/gma: . files
Message-ID:  <201312241504.rBOF45UV034966@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <tkato432@yahoo.com>

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 <bsd.port.mk>

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 <stl.h>
-+#include <map.h>
++#include <map>
++
++using std::map;
  
  class Moves:map<Pattern,int>
  {

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 <stl.h>
-+#include <map.h>
++#include <map>
  #include <string>
  #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/



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