aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authorjohans <johans@FreeBSD.org>2011-04-23 23:47:51 +0800
committerjohans <johans@FreeBSD.org>2011-04-23 23:47:51 +0800
commit2145fdcd3f10bac597c61bf3fc1197144ceb22af (patch)
treedd7985b9ca5953b07f9ec3f28d0dfb51549674fa /games
parentaec2c632b0f6c473fe1a4e25104a3679d2f5977d (diff)
downloadfreebsd-ports-gnome-2145fdcd3f10bac597c61bf3fc1197144ceb22af.tar.gz
freebsd-ports-gnome-2145fdcd3f10bac597c61bf3fc1197144ceb22af.tar.zst
freebsd-ports-gnome-2145fdcd3f10bac597c61bf3fc1197144ceb22af.zip
Add xboard OPTIONS to install optional chess engine backends.
PR: ports/156592 Submitted by: Kalten <kalten@gmx.at>
Diffstat (limited to 'games')
-rw-r--r--games/xboard/Makefile27
1 files changed, 26 insertions, 1 deletions
diff --git a/games/xboard/Makefile b/games/xboard/Makefile
index e22095cdcf6e..1c404a43dead 100644
--- a/games/xboard/Makefile
+++ b/games/xboard/Makefile
@@ -14,7 +14,12 @@ MASTER_SITE_SUBDIR= xboard
MAINTAINER= johans@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 @@ CONFIGURE_ARGS+= "--with-Xaw3d"
LIB_DEPENDS+= Xaw3d.${XAWVER}:${PORTSDIR}/x11-toolkits/Xaw3d
.endif
+.ifdef WITH_CRAFTY
+RUN_DEPENDS+= crafty:${PORTSDIR}/games/crafty
+.endif
+
+.ifdef WITH_FAIRYMAX
+RUN_DEPENDS+= fairymax:${PORTSDIR}/games/fairymax
+.endif
+
+.ifdef WITH_GNUCHESS
+RUN_DEPENDS+= gnuchess:${PORTSDIR}/games/gnuchess
+.endif
+
+.ifdef WITH_KNIGHTCAP
+RUN_DEPENDS+= KnightCap:${PORTSDIR}/games/KnightCap
+.endif
+
+.ifdef WITH_PHALANX
+RUN_DEPENDS+= phalanx:${PORTSDIR}/games/phalanx
+.endif
+
.include <bsd.port.pre.mk>
.if ${ARCH} == "sparc64"