FreeBSD Bugzilla – Attachment 9485 Details for
Bug 19409
Assume maintainership for games/KnightCap and update to 3.6
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 5.05 KB, created by
bugg
on 2000-06-21 02:50:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
bugg
Created:
2000-06-21 02:50:00 UTC
Size:
5.05 KB
patch
obsolete
>diff -ruN KnightCap.old/Makefile KnightCap/Makefile >--- KnightCap.old/Makefile Fri Apr 14 08:25:49 2000 >+++ KnightCap/Makefile Tue Jun 20 21:40:32 2000 >@@ -6,20 +6,20 @@ > # > > PORTNAME= knightcap >-PORTVERSION= 3.5 >+PORTVERSION= 3.6 > CATEGORIES= games >-MASTER_SITES= ftp://samba.anu.edu.au/pub/KnightCap/ >+MASTER_SITES= ftp://samba.anu.edu.au/pub/KnightCap/ \ >+ ftp://ftp.bmtmicro.com/pub/linux/tucows/files/x11/entertain/ \ >+ ftp://ftp.cadvision.com/pub/linuxberg/files/x11/entertain/ > DISTNAME= KnightCap-${PORTVERSION} > >-MAINTAINER= ports@FreeBSD.org >+MAINTAINER= bugg@bugg.strangled.net > > LIB_DEPENDS= GL.14:${PORTSDIR}/graphics/Mesa3\ > GLU.14:${PORTSDIR}/graphics/Mesa3 \ > glut.3:${PORTSDIR}/graphics/Mesa3 > >-FETCH_BEFORE_ARGS= -P > ALL_TARGET= KnightCap >-USE_X_PREFIX= yes > WRKSRC= ${WRKDIR}/Export > > do-install: >diff -ruN KnightCap.old/files/md5 KnightCap/files/md5 >--- KnightCap.old/files/md5 Fri May 15 08:14:22 1998 >+++ KnightCap/files/md5 Tue Jun 20 21:02:14 2000 >@@ -1 +1 @@ >-MD5 (KnightCap-3.5.tar.gz) = 4c188f4a8e0e153ca7d6e84257cb1ae1 >+MD5 (KnightCap-3.6.tar.gz) = b3e912cc6d4ef68f8063c45620526d1a >diff -ruN KnightCap.old/files/md5.old KnightCap/files/md5.old >--- KnightCap.old/files/md5.old Wed Dec 31 19:00:00 1969 >+++ KnightCap/files/md5.old Wed Apr 26 14:32:33 2000 >@@ -0,0 +1 @@ >+MD5 (KnightCap-3.5.tar.gz) = 4c188f4a8e0e153ca7d6e84257cb1ae1 >diff -ruN KnightCap.old/patches/patch-aa KnightCap/patches/patch-aa >--- KnightCap.old/patches/patch-aa Sun Sep 27 22:02:29 1998 >+++ KnightCap/patches/patch-aa Tue Jun 20 21:19:43 2000 >@@ -1,37 +1,43 @@ >---- Makefile.orig Wed Mar 11 15:51:57 1998 >-+++ Makefile Sun Sep 27 11:09:04 1998 >-@@ -2,11 +2,11 @@ >- >- # what C compiler? It better be Ansi-C. Use gcc if you have it. >- # you may find that KnightCap is very slow if you don't use gcc >--CC = gcc >-+#CC = gcc >+--- Makefile.orig Tue Jun 20 21:19:26 2000 >++++ Makefile Tue Jun 20 21:19:30 2000 >+@@ -5,8 +5,8 @@ >+ CC = gcc > > # What compiler switches do you want? These ones work well with gcc >- #OPT = -O2 -fshort-enums -Wall >+-#OPT = -O2 -fshort-enums -Wall > -OPT = -g -fshort-enums -Wall >-+OPT = -O2 -fshort-enums -Wall -DPI=M_PI >++#OPT = -O3 -fomit-frame-pointer -fshort-enums -Wall -DCPU=686 >++# OPT = -g -fshort-enums -Wall > > # If you don't have gcc then perhaps try this instead. You only need > # the null definition for inline if your C compiler doesn't know about >-@@ -21,13 +21,13 @@ >- # display (or you don't have OpenGL and Glut libraries) >- # If you do have these libs then make sure the first three >- # lines point at the right places >--MESA = /usr/local/Mesa-2.1 >--GLUT = /usr/local/Mesa-2.1/glut-3.2 >--X11 = /usr/X11R6 >--GLUT_LIBS = -L$(GLUT)/lib/glut -lglut >--MESA_LIBS = -L$(MESA)/lib -lMesaGLU -lMesaGL -lm >--XLIBS = -L$(X11)/lib -lXmu -lXt -lXext -lX11 -lXi >+@@ -27,25 +27,22 @@ >+ GLUT_LIBS = -L$(GLUT)/lib/glut -lglut >+ MESA_LIBS = -L$(MESA)/lib -lMesaGLU -lMesaGL -lm >+ XLIBS = -L$(X11)/lib -lXmu -lXt -lXext -lX11 -lXi > -DISPLAYFLAGS = -I$(MESA)/include -I$(GLUT) -DRENDERED_DISPLAY=1 >-+GLUT_LIBS = -L$(X11BASE)/lib -lglut >-+MESA_LIBS = -L$(X11BASE)/lib -lMesaGLU -lMesaGL -lm >-+XLIBS = -L$(X11BASE)/lib -lXmu -lXt -lXext -lX11 -lXi >-+.if $(PORTOBJFORMAT) == "elf" >-+XLIBS+= -Wl,-rpath,$(X11BASE)/lib >-+.endif >-+DISPLAYFLAGS = -I$(X11BASE)/include -DRENDERED_DISPLAY=1 >++DISPLAYFLAGS = -I/usr/X11R6/include -I$(MESA)/include -I$(GLUT) -DRENDERED_DISPLAY=1 > >- # comment out the following line if you don't want KnightCap's >- # evaluation function learning turned on. >+-# comment out the following line if you don't want KnightCap's >+-# evaluation function learning turned on. >+-LEARNFLAGS = -DLEARN_EVAL=1 >+ >+ # you shouldn't need to edit anything below this line. Unless >+ # something goes wrong. >+ >+ INCLUDE = $(DISPLAYFLAGS) >+-CFLAGS = $(OPT) $(INCLUDE) $(LEARNFLAGS) >++CFLAGS = $(OPT) $(INCLUDE) #-DLEARN_EVAL=1 >+ >+-LIBS = $(GLUT_LIBS) $(MESA_LIBS) $(XLIBS) >++LIBS = $(GLUT_LIBS) $(MESA_LIBS) $(XLIBS) -lm >+ >+ TARGET = KnightCap >+ >+ OBJS = knightcap.o trackball.o move.o util.o generate.o eval.o movement.o \ >+ ordering.o hash.o board.o log.o prog.o timer.o ics.o display.o \ >+- testsuite.o brain.o td.o tactics.o >++ testsuite.o brain.o td.o tactics.o epd.o epdglue.o >+ >+ $(TARGET): $(OBJS) >+ -mv $@ $@.old >diff -ruN KnightCap.old/patches/patch-ac KnightCap/patches/patch-ac >--- KnightCap.old/patches/patch-ac Tue Aug 4 13:10:12 1998 >+++ KnightCap/patches/patch-ac Wed Dec 31 19:00:00 1969 >@@ -1,11 +0,0 @@ >---- knightcap.h Wed Mar 11 21:51:58 1998 >-+++ /home/andy/tmp/wrk/knightcap.h Mon Aug 3 12:56:45 1998 >-@@ -27,7 +27,7 @@ >- #define NO_STALEMATE_LEARN 1 >- >- #define STORE_ONLY_NEGATIVE 0 >--#define USE_APPLET 1 >-+#define USE_APPLET 0 >- >- #define __COEFFS_PER_STAGE__ (__TOTAL_COEFFS__/(MATING+1)) >- #define USE_HASH_TABLES 1 >diff -ruN KnightCap.old/pkg/DESCR KnightCap/pkg/DESCR >--- KnightCap.old/pkg/DESCR Wed Jul 29 19:40:40 1998 >+++ KnightCap/pkg/DESCR Tue Jun 20 21:34:36 2000 >@@ -20,3 +20,5 @@ > to a 2100 player in just 300 games. See > http://keating.anu.edu.au/~jon/papers/knightcap.ps.gz for more info on > its learning algorithm. >+ >+WWW: http://samba.anu.edu.au/KnightCap/
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 19409
: 9485