Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Jun 2019 19:38:38 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r503850 - in head/games: . pachi-game-engine pachi-game-engine/files
Message-ID:  <201906091938.x59JccRl063558@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Sun Jun  9 19:38:37 2019
New Revision: 503850
URL: https://svnweb.freebsd.org/changeset/ports/503850

Log:
  New port: games/pachi-game-engine: Fairly strong Go/Baduk/Weiqi playing program
  
  Not related to games/pachi.

Added:
  head/games/pachi-game-engine/
  head/games/pachi-game-engine/Makefile   (contents, props changed)
  head/games/pachi-game-engine/distinfo   (contents, props changed)
  head/games/pachi-game-engine/files/
  head/games/pachi-game-engine/files/patch-Makefile   (contents, props changed)
  head/games/pachi-game-engine/files/pkg-deinstall.in   (contents, props changed)
  head/games/pachi-game-engine/files/pkg-install.in   (contents, props changed)
  head/games/pachi-game-engine/pkg-descr   (contents, props changed)
Modified:
  head/games/Makefile

Modified: head/games/Makefile
==============================================================================
--- head/games/Makefile	Sun Jun  9 18:36:21 2019	(r503849)
+++ head/games/Makefile	Sun Jun  9 19:38:37 2019	(r503850)
@@ -711,6 +711,7 @@
     SUBDIR += p5-Games-GuessWord
     SUBDIR += p5-Games-Tournament-RoundRobin
     SUBDIR += pachi
+    SUBDIR += pachi-game-engine
     SUBDIR += pacmanarena
     SUBDIR += palapeli
     SUBDIR += palomino

Added: head/games/pachi-game-engine/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/pachi-game-engine/Makefile	Sun Jun  9 19:38:37 2019	(r503850)
@@ -0,0 +1,29 @@
+# $FreeBSD$
+
+PORTNAME=	pachi
+DISTVERSIONPREFIX=	${PORTNAME}-
+DISTVERSION=	12.40
+CATEGORIES=	games
+PKGNAMESUFFIX=	-game-engine
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Fairly strong Go/Baduk/Weiqi playing program
+
+LICENSE=	GPLv2
+LICENSE_FILE=	${WRKSRC}/COPYING
+
+BUILD_DEPENDS=	bash:shells/bash
+LIB_DEPENDS=	libboost_system.so:devel/boost-libs \
+		libcaffe.so:graphics/caffe \
+		libglog.so:devel/glog
+
+USES=		gmake localbase shebangfix
+SHEBANG_FILES=	genbuild spudfrog
+USE_GITHUB=	yes
+GH_ACCOUNT=	pasky
+
+BINARY_ALIAS=	make=${GMAKE}
+
+PLIST_FILES=	bin/${PORTNAME}
+
+.include <bsd.port.mk>

Added: head/games/pachi-game-engine/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/pachi-game-engine/distinfo	Sun Jun  9 19:38:37 2019	(r503850)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1560106531
+SHA256 (pasky-pachi-pachi-12.40_GH0.tar.gz) = f523d23aa855f78a171df334b9712bca540d3ef4ef69b7306b84e4c35446d097
+SIZE (pasky-pachi-pachi-12.40_GH0.tar.gz) = 3248693

Added: head/games/pachi-game-engine/files/patch-Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/pachi-game-engine/files/patch-Makefile	Sun Jun  9 19:38:37 2019	(r503850)
@@ -0,0 +1,43 @@
+--- Makefile.orig	2019-03-31 19:01:16 UTC
++++ Makefile
+@@ -105,8 +105,8 @@ DATADIR ?= $(PREFIX)/share/pachi
+ # unless PROFILING=gprof.)
+ OPT ?= -O3
+ COMMON_FLAGS := -Wall -ggdb3 $(OPT) -D_GNU_SOURCE
+-CFLAGS       := -std=gnu99 -pthread -Wsign-compare -Wno-format-zero-length
+-CXXFLAGS     := -std=c++11
++CFLAGS       += -std=gnu99 -pthread -Wsign-compare -Wno-format-zero-length
++CXXFLAGS     += -std=c++11
+ 
+ 
+ ##############################################################################
+@@ -290,7 +290,7 @@ spudfrog: FORCE
+ 	@CC="$(CC)" CFLAGS="$(CFLAGS)" ./spudfrog
+ 
+ # Build info
+-build.h: .git/HEAD .git/index Makefile
++build.h: Makefile
+ 	+@make spudfrog
+ 	@echo "[make] build.h"
+ 	@CC="$(CC)" CFLAGS="$(CFLAGS)" ./genbuild > $@
+@@ -324,15 +324,15 @@ distribute: FORCE
+ 
+ # install-recursive?
+ install: distribute
+-	$(INSTALL) -d $(BINDIR)
+-	$(INSTALL) distribute/pachi $(BINDIR)/
++	$(INSTALL) -d $(DESTDIR)/$(BINDIR)
++	$(INSTALL) distribute/pachi $(DESTDIR)/$(BINDIR)/
+ 
+ install-data:
+-	$(INSTALL) -d $(DATADIR)
++	$(INSTALL) -d $(DESTDIR)/$(DATADIR)
+ 	@for file in $(DATAFILES); do                               \
+ 		if [ -f $$file ]; then                              \
+-                        echo $(INSTALL) $$file $(DATADIR)/;         \
+-			$(INSTALL) $$file $(DATADIR)/;              \
++                        echo $(INSTALL) $$file $(DESTDIR)/$(DATADIR)/;         \
++			$(INSTALL) $$file $(DESTDIR)/$(DATADIR)/;              \
+ 		else                                                \
+ 			echo "WARNING: $$file datafile is missing"; \
+                 fi                                                  \

Added: head/games/pachi-game-engine/files/pkg-deinstall.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/pachi-game-engine/files/pkg-deinstall.in	Sun Jun  9 19:38:37 2019	(r503850)
@@ -0,0 +1,18 @@
+#!/bin/sh
+#
+# $FreeBSD: head/games/pachi/files/pkg-deinstall.in 454856 2017-11-24 23:17:50Z dbaio $
+
+[ "$2" != "POST-DEINSTALL" ] && exit 0
+
+# remove scorefile if it's empty
+[ "`md5 -q '%%SCOREFILE%%'`" = 7ba69f4ec41007c035beb73aa29d6b32 ] && rm -f "%%SCOREFILE%%" 2>/dev/null
+rmdir "%%SCOREDIR%%" 2>/dev/null
+
+if [ -e "%%SCOREDIR%%" ]; then
+	echo
+	echo "To completely remove the port, please remove the following"
+	echo "directory manually, if it's no longer needed:"
+	echo
+	echo "    %%SCOREDIR%%"
+	echo
+fi

Added: head/games/pachi-game-engine/files/pkg-install.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/pachi-game-engine/files/pkg-install.in	Sun Jun  9 19:38:37 2019	(r503850)
@@ -0,0 +1,13 @@
+#!/bin/sh
+#
+# $FreeBSD: head/games/pachi/files/pkg-install.in 353752 2014-05-12 00:27:51Z amdmi3 $
+
+[ "$2" != "POST-INSTALL" ] && exit 0
+[ -e "%%SCOREFILE%%" ] && exit 0
+
+mkdir -p "%%SCOREDIR%%"
+
+# Empty scorefile contains 170 zero bytes
+dd if=/dev/zero of="%%SCOREFILE%%" bs=170 count=1 2>/dev/null
+chgrp -R games "%%SCOREDIR%%"
+chmod g+w "%%SCOREFILE%%"

Added: head/games/pachi-game-engine/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/pachi-game-engine/pkg-descr	Sun Jun  9 19:38:37 2019	(r503850)
@@ -0,0 +1,10 @@
+Pachi can refer to: a simple modular framework for programs playing the game
+of Go/Weiqi/Baduk, and a reasonably strong engine built within this framework.
+
+The default engine plays by Chinese rules and should be about 7d KGS strength on
+9x9. On 19x19, it can hold a KGS 2d rank on modest hardware (Raspberry Pi, dcnn)
+or faster machine (e.g. six-way Intel i7) without dcnn. When using a large
+cluster (64 machines, 20 cores each), it maintains KGS 4d and has won e.g. a
+7-stone handicap game against Zhou Junxun 9p.
+
+WWW: https://pachi.or.cz/



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