freebsd-ports/games/fairymax/files/patch-Makefile
Johan van Selst 03d99884cd New port games/fairymax
fairy-Max is a version of micro-Max  that reads the piece description
from a file fmax.ini, so that arbitrary fairy pieces can be implemen-
ted. This version supports up to 15 piece types, and board sizes upto
12x8 board. A Linux port exists in the format of a debian package.

You can use it e.g. with games/xboard/:
e.g.: xboard -boardSize Middling -variant courier -fcp fairymax

GIT: http://hgm.nubati.net/cgi-bin/gitweb.cgi?p=fairymax.git
WWW: http://home.hccnet.nl/h.g.muller/fairy.html

PR:		ports/156535
Submitted by:	Kalten <kalten@gmx.at>
2011-05-04 20:18:47 +00:00

31 lines
991 B
Text

--- Makefile.orig 2010-12-08 10:03:32.000000000 +0100
+++ Makefile 2011-04-23 17:09:50.000000000 +0200
@@ -1,21 +1,22 @@
srcdir = .
-CC=gcc
-CFLAGS += -O2
-
+CC?=gcc
+CFLAGS +=
+INI_FILE_fmax?="/usr/share/games/fairymax/fmax.ini"
+INI_FILE_qmax?="/usr/share/games/fairymax/qmax.ini"
ALL= fairymax shamax maxqi fairymax.6.gz
all: ${ALL}
fairymax: fairymax.c
- $(CC) $(CFLAGS) -DINI_FILE=\"/usr/share/games/fairymax/fmax.ini\" fairymax.c -o fairymax
+ $(CC) $(CFLAGS) -DINI_FILE=\"${INI_FILE_fmax}\" fairymax.c -o fairymax
shamax: fairymax.c
- $(CC) $(CFLAGS) -DINI_FILE=\"/usr/share/games/fairymax/fmax.ini\" -DSHATRANJ fairymax.c -o shamax
+ $(CC) $(CFLAGS) -DINI_FILE=\"${INI_FILE_fmax}\" -DSHATRANJ fairymax.c -o shamax
maxqi: maxqi.c
- $(CC) $(CFLAGS) -DINI_FILE=\"/usr/share/games/fairymax/qmax.ini\" maxqi.c -o maxqi
+ $(CC) $(CFLAGS) -DINI_FILE=\"${INI_FILE_qmax}\" maxqi.c -o maxqi
install: ${ALL} ${srcdir}/data/*
cp -u ${srcdir}/fairymax $(DESTDIR)/usr/games