From owner-svn-ports-all@freebsd.org Sun Jun 9 19:38:40 2019 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 08FA815A85BF; Sun, 9 Jun 2019 19:38:40 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A142A83A79; Sun, 9 Jun 2019 19:38:39 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 77ADC780B; Sun, 9 Jun 2019 19:38:39 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x59Jcdfw063565; Sun, 9 Jun 2019 19:38:39 GMT (envelope-from yuri@FreeBSD.org) Received: (from yuri@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x59JccRl063558; Sun, 9 Jun 2019 19:38:38 GMT (envelope-from yuri@FreeBSD.org) Message-Id: <201906091938.x59JccRl063558@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: yuri set sender to yuri@FreeBSD.org using -f From: Yuri Victorovich Date: Sun, 9 Jun 2019 19:38:38 +0000 (UTC) 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 X-SVN-Group: ports-head X-SVN-Commit-Author: yuri X-SVN-Commit-Paths: in head/games: . pachi-game-engine pachi-game-engine/files X-SVN-Commit-Revision: 503850 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: A142A83A79 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.94 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.998,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.94)[-0.939,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US] X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Jun 2019 19:38:40 -0000 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 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/