View | Details | Raw Unified | Return to bug 19409
Collapse All | Expand All

(-)KnightCap/Makefile (-5 / +5 lines)
Lines 6-25 Link Here
6
#
6
#
7
7
8
PORTNAME=	knightcap
8
PORTNAME=	knightcap
9
PORTVERSION=	3.5
9
PORTVERSION=	3.6
10
CATEGORIES=	games
10
CATEGORIES=	games
11
MASTER_SITES=	ftp://samba.anu.edu.au/pub/KnightCap/
11
MASTER_SITES=	ftp://samba.anu.edu.au/pub/KnightCap/ \
12
		ftp://ftp.bmtmicro.com/pub/linux/tucows/files/x11/entertain/ \
13
		ftp://ftp.cadvision.com/pub/linuxberg/files/x11/entertain/
12
DISTNAME=	KnightCap-${PORTVERSION}
14
DISTNAME=	KnightCap-${PORTVERSION}
13
15
14
MAINTAINER=	ports@FreeBSD.org
16
MAINTAINER=	bugg@bugg.strangled.net
15
17
16
LIB_DEPENDS=	GL.14:${PORTSDIR}/graphics/Mesa3\
18
LIB_DEPENDS=	GL.14:${PORTSDIR}/graphics/Mesa3\
17
		GLU.14:${PORTSDIR}/graphics/Mesa3 \
19
		GLU.14:${PORTSDIR}/graphics/Mesa3 \
18
		glut.3:${PORTSDIR}/graphics/Mesa3
20
		glut.3:${PORTSDIR}/graphics/Mesa3
19
21
20
FETCH_BEFORE_ARGS=	-P
21
ALL_TARGET=	KnightCap
22
ALL_TARGET=	KnightCap
22
USE_X_PREFIX=	yes
23
WRKSRC=		${WRKDIR}/Export
23
WRKSRC=		${WRKDIR}/Export
24
24
25
do-install:
25
do-install:
(-)KnightCap/files/md5 (-1 / +1 lines)
Line 1 Link Here
1
MD5 (KnightCap-3.5.tar.gz) = 4c188f4a8e0e153ca7d6e84257cb1ae1
1
MD5 (KnightCap-3.6.tar.gz) = b3e912cc6d4ef68f8063c45620526d1a
(-)KnightCap/files/md5.old (+1 lines)
Line 0 Link Here
1
MD5 (KnightCap-3.5.tar.gz) = 4c188f4a8e0e153ca7d6e84257cb1ae1
(-)KnightCap/patches/patch-aa (-29 / +35 lines)
Lines 1-37 Link Here
1
--- Makefile.orig	Wed Mar 11 15:51:57 1998
1
--- Makefile.orig	Tue Jun 20 21:19:26 2000
2
+++ Makefile	Sun Sep 27 11:09:04 1998
2
+++ Makefile	Tue Jun 20 21:19:30 2000
3
@@ -2,11 +2,11 @@
3
@@ -5,8 +5,8 @@
4
 
4
 CC = gcc
5
 # what C compiler? It better be Ansi-C. Use gcc if you have it.
6
 # you may find that KnightCap is very slow if you don't use gcc
7
-CC = gcc
8
+#CC = gcc
9
 
5
 
10
 # What compiler switches do you want? These ones work well with gcc
6
 # What compiler switches do you want? These ones work well with gcc
11
 #OPT = -O2 -fshort-enums -Wall
7
-#OPT = -O2 -fshort-enums -Wall
12
-OPT = -g -fshort-enums -Wall
8
-OPT = -g -fshort-enums -Wall
13
+OPT = -O2 -fshort-enums -Wall -DPI=M_PI
9
+#OPT = -O3 -fomit-frame-pointer -fshort-enums -Wall -DCPU=686
10
+# OPT = -g -fshort-enums -Wall
14
 
11
 
15
 # If you don't have gcc then perhaps try this instead. You only need
12
 # If you don't have gcc then perhaps try this instead. You only need
16
 # the null definition for inline if your C compiler doesn't know about
13
 # the null definition for inline if your C compiler doesn't know about
17
@@ -21,13 +21,13 @@
14
@@ -27,25 +27,22 @@
18
 # display (or you don't have OpenGL and Glut libraries)
15
 GLUT_LIBS = -L$(GLUT)/lib/glut -lglut
19
 # If you do have these libs then make sure the first three
16
 MESA_LIBS = -L$(MESA)/lib -lMesaGLU -lMesaGL -lm
20
 # lines point at the right places
17
 XLIBS = -L$(X11)/lib -lXmu -lXt -lXext -lX11 -lXi
21
-MESA = /usr/local/Mesa-2.1
22
-GLUT = /usr/local/Mesa-2.1/glut-3.2
23
-X11 = /usr/X11R6
24
-GLUT_LIBS = -L$(GLUT)/lib/glut -lglut
25
-MESA_LIBS = -L$(MESA)/lib -lMesaGLU -lMesaGL -lm
26
-XLIBS = -L$(X11)/lib -lXmu -lXt -lXext -lX11 -lXi
27
-DISPLAYFLAGS = -I$(MESA)/include -I$(GLUT) -DRENDERED_DISPLAY=1
18
-DISPLAYFLAGS = -I$(MESA)/include -I$(GLUT) -DRENDERED_DISPLAY=1
28
+GLUT_LIBS = -L$(X11BASE)/lib -lglut
19
+DISPLAYFLAGS = -I/usr/X11R6/include -I$(MESA)/include -I$(GLUT) -DRENDERED_DISPLAY=1
29
+MESA_LIBS = -L$(X11BASE)/lib -lMesaGLU -lMesaGL -lm
30
+XLIBS = -L$(X11BASE)/lib -lXmu -lXt -lXext -lX11 -lXi
31
+.if $(PORTOBJFORMAT) == "elf"
32
+XLIBS+=	-Wl,-rpath,$(X11BASE)/lib
33
+.endif
34
+DISPLAYFLAGS = -I$(X11BASE)/include -DRENDERED_DISPLAY=1
35
 
20
 
36
 # comment out the following line if you don't want KnightCap's
21
-# comment out the following line if you don't want KnightCap's
37
 # evaluation function learning turned on. 
22
-# evaluation function learning turned on. 
23
-LEARNFLAGS = -DLEARN_EVAL=1
24
 
25
 # you shouldn't need to edit anything below this line. Unless
26
 # something goes wrong.
27
 
28
 INCLUDE = $(DISPLAYFLAGS)
29
-CFLAGS = $(OPT) $(INCLUDE) $(LEARNFLAGS)
30
+CFLAGS = $(OPT) $(INCLUDE) #-DLEARN_EVAL=1
31
 
32
-LIBS = $(GLUT_LIBS) $(MESA_LIBS) $(XLIBS) 
33
+LIBS = $(GLUT_LIBS) $(MESA_LIBS) $(XLIBS) -lm
34
 
35
 TARGET = KnightCap
36
 
37
 OBJS = knightcap.o trackball.o move.o util.o generate.o eval.o movement.o \
38
 	ordering.o hash.o board.o log.o prog.o timer.o ics.o display.o \
39
-	testsuite.o brain.o td.o tactics.o 
40
+	testsuite.o brain.o td.o tactics.o epd.o epdglue.o 
41
 
42
 $(TARGET):  $(OBJS) 
43
 	-mv $@ $@.old
(-)KnightCap/patches/patch-ac (-11 lines)
Lines 1-11 Link Here
1
--- knightcap.h	Wed Mar 11 21:51:58 1998
2
+++ /home/andy/tmp/wrk/knightcap.h	Mon Aug  3 12:56:45 1998
3
@@ -27,7 +27,7 @@
4
 #define NO_STALEMATE_LEARN 1 
5
 
6
 #define STORE_ONLY_NEGATIVE 0
7
-#define USE_APPLET 1
8
+#define USE_APPLET 0
9
 
10
 #define __COEFFS_PER_STAGE__ (__TOTAL_COEFFS__/(MATING+1))
11
 #define USE_HASH_TABLES 1
(-)KnightCap/pkg/DESCR (+2 lines)
Lines 20-22 Link Here
20
   to a 2100 player in just 300 games. See
20
   to a 2100 player in just 300 games. See
21
   http://keating.anu.edu.au/~jon/papers/knightcap.ps.gz for more info on
21
   http://keating.anu.edu.au/~jon/papers/knightcap.ps.gz for more info on
22
   its learning algorithm.
22
   its learning algorithm.
23
24
WWW: http://samba.anu.edu.au/KnightCap/

Return to bug 19409