From owner-freebsd-ports Tue Jun 20 18:50: 7 2000 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id A7BE437B9EE for ; Tue, 20 Jun 2000 18:50:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id SAA56020; Tue, 20 Jun 2000 18:50:00 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from bugg.strangled.net (c705742-a.htfdw1.ct.home.com [24.2.137.94]) by hub.freebsd.org (Postfix) with ESMTP id E4B9037B9AC for ; Tue, 20 Jun 2000 18:46:42 -0700 (PDT) (envelope-from bugg@bugg.strangled.net) Received: (from bugg@localhost) by bugg.strangled.net (8.9.3/8.9.3) id VAA40825; Tue, 20 Jun 2000 21:46:41 -0400 (EDT) (envelope-from bugg) Message-Id: <200006210146.VAA40825@bugg.strangled.net> Date: Tue, 20 Jun 2000 21:46:41 -0400 (EDT) From: bugg@bugg.strangled.net Reply-To: bugg@bugg.strangled.net To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/19409: Assume maintainership for games/KnightCap and update to 3.6 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 19409 >Category: ports >Synopsis: Assume maintainership for games/KnightCap and update to 3.6 >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Jun 20 18:50:00 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Dan Papasian >Release: FreeBSD 4.0-CURRENT i386 >Organization: none >Environment: N/A >Description: Assume maintainership of games/KnightCap and update to version 3.6 >How-To-Repeat: N/A >Fix: Apply this patch: 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/ >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message