ports/156592: games/xboard: add knobs for chess engines
Kalten
kalten at gmx.at
Sat Apr 23 03:40:08 UTC 2011
>Number: 156592
>Category: ports
>Synopsis: games/xboard: add knobs for chess engines
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sat Apr 23 03:40:07 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Kalten
>Release: 8.2-RELEASE
>Organization:
>Environment:
FreeBSD freeHugin.Walhalla.Leben 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Thu Feb 17 02:41:51 UTC 2011 root at mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
I want to suggest to add knobs to games/xboard for some chess engines (see patch).
At some (e.g. KnightCap) one does not even find out that they could be used, when searching in the ports with `make search key=xboard'.
By sure it would be convenient.
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
--- Makefile.orig 2011-04-09 00:54:47.000000000 +0200
+++ Makefile 2011-04-23 02:08:57.000000000 +0200
@@ -14,7 +14,12 @@
MAINTAINER= johans at FreeBSD.org
COMMENT= X frontend for Crafty, GNUChess, Chess Servers, or e-mail chess
-OPTIONS= XAW3D "Use Xaw3d widgets (instead of Xaw)" On
+OPTIONS= XAW3D "Use Xaw3d widgets (instead of Xaw)" On \
+ CRAFTY "Install crafty engine" Off \
+ FAIRYMAX "Install fairymax engine" Off \
+ GNUCHESS "Install GnuChess engine" Off \
+ KNIGHTCAP "Install KnightCap engine" Off \
+ PHALANX "Install phalanx engine" Off
USE_XORG= xt xpm xaw
GNU_CONFIGURE= yes
@@ -32,6 +37,26 @@
LIB_DEPENDS+= Xaw3d.${XAWVER}:${PORTSDIR}/x11-toolkits/Xaw3d
.endif
+.if defined(WITH_CRAFTY)
+RUN_DEPENDS+= crafty:${PORTSDIR}/games/crafty
+.endif
+
+.if defined(WITH_FAIRYMAX)
+RUN_DEPENDS+= fairymax:${PORTSDIR}/games/fairymax
+.endif
+
+.if defined(WITH_GNUCHESS)
+RUN_DEPENDS+= gnuchess:${PORTSDIR}/games/gnuchess
+.endif
+
+.if defined(WITH_KNIGHTCAP)
+RUN_DEPENDS+= KnightCap:${PORTSDIR}/games/KnightCap
+.endif
+
+.if defined(WITH_PHALANX)
+RUN_DEPENDS+= phalanx:${PORTSDIR}/games/phalanx
+.endif
+
.include <bsd.port.pre.mk>
.if ${ARCH} == "sparc64"
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list