diff --git a/games/sjeng/Makefile b/games/sjeng/Makefile index ab7daf55d951..23e2bab9c5ff 100644 --- a/games/sjeng/Makefile +++ b/games/sjeng/Makefile @@ -1,24 +1,24 @@ # Created by: Alejandro Pulver # $FreeBSD$ PORTNAME= sjeng PORTVERSION= 11.2 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= games MASTER_SITES= http://sjeng.org/ftp/ DISTNAME= Sjeng-Free-${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= Chess engine supporting chess variations LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libgdbm.so:databases/gdbm -USES= localbase +USES= localbase dos2unix GNU_CONFIGURE= yes PLIST_FILES= bin/sjeng .include diff --git a/games/sjeng/files/patch-extvars.h b/games/sjeng/files/patch-extvars.h new file mode 100644 index 000000000000..96ada25453fc --- /dev/null +++ b/games/sjeng/files/patch-extvars.h @@ -0,0 +1,17 @@ +--- extvars.h.orig 2001-12-27 22:19:58 UTC ++++ extvars.h +@@ -129,10 +129,10 @@ extern int numb_moves; + + extern int phase; + +-FILE *lrn_standard; +-FILE *lrn_zh; +-FILE *lrn_suicide; +-FILE *lrn_losers; ++extern FILE *lrn_standard; ++extern FILE *lrn_zh; ++extern FILE *lrn_suicide; ++extern FILE *lrn_losers; + extern int bestmovenum; + + extern int ugly_ep_hack; diff --git a/games/sjeng/files/patch-sjeng.c b/games/sjeng/files/patch-sjeng.c new file mode 100644 index 000000000000..099157df28da --- /dev/null +++ b/games/sjeng/files/patch-sjeng.c @@ -0,0 +1,11 @@ +--- sjeng.c.orig 2001-12-27 22:20:38 UTC ++++ sjeng.c +@@ -36,7 +36,7 @@ char divider[50] = "---------------------------------- + move_s dummy = {0,0,0,0,0}; + + int board[144], moved[144], ep_square, white_to_move, comp_color, wking_loc, +- bking_loc, white_castled, black_castled, result, ply, pv_length[PV_BUFF], ++ bking_loc, white_castled, black_castled, result, pv_length[PV_BUFF], + pieces[62], squares[144], num_pieces, i_depth, fifty, piece_count; + + long int nodes, raw_nodes, qnodes, killer_scores[PV_BUFF],