summaryrefslogtreecommitdiff
path: root/games/sudoku-cli/patches
diff options
context:
space:
mode:
authorheinz <heinz>2007-05-19 01:10:17 +0000
committerheinz <heinz>2007-05-19 01:10:17 +0000
commit4a662bbac50e825079785011f359a38726ae91c0 (patch)
treed7758a4e9c0e9362f02fd7ba644942bbdda323b6 /games/sudoku-cli/patches
parent3d0ceae9c38d1345cded0d3d46ebc918a9821c7a (diff)
downloadpkgsrc-4a662bbac50e825079785011f359a38726ae91c0.tar.gz
Initial import of sudoku-cli 1.0.1.
This is a commandline version of the sudoku board game. The sudoku board game is played on a 9x9 grid, divided into rows, columns, and 9 blocks of 3x3 squares. The objective is to fill the empty squares with the digits 1-9, so that each row, column, and block contains each of the digits 1-9 (and hence, it is not possible for any digit to appear twice in the same row, column or block).
Diffstat (limited to 'games/sudoku-cli/patches')
-rw-r--r--games/sudoku-cli/patches/patch-aa46
-rw-r--r--games/sudoku-cli/patches/patch-ab13
2 files changed, 59 insertions, 0 deletions
diff --git a/games/sudoku-cli/patches/patch-aa b/games/sudoku-cli/patches/patch-aa
new file mode 100644
index 00000000000..518fe743df5
--- /dev/null
+++ b/games/sudoku-cli/patches/patch-aa
@@ -0,0 +1,46 @@
+$NetBSD: patch-aa,v 1.1.1.1 2007/05/19 01:10:17 heinz Exp $
+
+--- Makefile.orig 2005-07-25 03:13:53.000000000 +0200
++++ Makefile
+@@ -7,6 +7,16 @@
+ OWN=-o bin
+ GRP=-g operator
+
++INSTALL_BIN?=install -s $(OWN) $(GRP) -m 755
++INSTALL_DATADIR?=install -d $(OWN) $(GRP) -m 755
++INSTALL_DATA?=install $(OWN) $(GRP) -m 644
++INSTALL_MAN?=install $(OWN) $(GRP) -m 644
++BINDIR?=/usr/bin
++SUDOKUNAME?=sudoku
++LIBDIR?=/usr/lib/sudoku
++MAN6DIR?=/usr/man/man6
++SHAREMAN6DIR?=/usr/share/man/man6
++
+ # Minix requires compilation flags for a clean compile
+ sudoku: sudoku.c
+ if [ -x /usr/bin/uname -a `/usr/bin/uname` = Minix ] ; then \
+@@ -19,16 +29,16 @@ clean:
+ # Simple support for alternate systems
+ install: sudoku sudoku.6
+ if [ -x /usr/bin/uname -a `/usr/bin/uname` = Minix ] ; then \
+- install -s -S 8kw $(OWN) $(GRP) -m 755 sudoku /usr/bin/sudoku ; \
++ install -s -S 8kw $(OWN) $(GRP) -m 755 sudoku /usr/bin/${SUDOKUNAME} ; \
+ else \
+- install -s $(OWN) $(GRP) -m 755 sudoku /usr/bin/sudoku ; \
++ ${INSTALL_BIN} sudoku ${DESTDIR}${BINDIR}/${SUDOKUNAME} ; \
+ fi
+- install -d $(OWN) $(GRP) -m 755 /usr/lib/sudoku
+- install $(OWN) $(GRP) -m 644 template /usr/lib/sudoku/template
+- if [ -d /usr/man/man6 ] ; then \
+- install $(OWN) $(GRP) -m 644 sudoku.6 /usr/man/man6/sudoku.6 ; \
+- elif [ -d /usr/share/man/man6 ] ; then \
+- install $(OWN) $(GRP) -m 644 sudoku.6 /usr/share/man/man6/sudoku.6 ; \
++ ${INSTALL_DATADIR} ${DESTDIR}${LIBDIR}
++ ${INSTALL_DATA} template ${DESTDIR}${LIBDIR}/template
++ if [ -d ${DESTDIR}${MAN6DIR} ] ; then \
++ ${INSTALL_MAN} sudoku.6 ${DESTDIR}${MAN6DIR}/${SUDOKUNAME}.6 ; \
++ elif [ -d ${DESTDIR}${SHAREMAN6DIR} ] ; then \
++ ${INSTALL_MAN} sudoku.6 ${DESTDIR}${SHAREMAN6DIR}/${SUDOKUNAME}.6 ; \
+ else \
+ echo Warning: Manual page not installed ; \
+ fi
diff --git a/games/sudoku-cli/patches/patch-ab b/games/sudoku-cli/patches/patch-ab
new file mode 100644
index 00000000000..2aea9744853
--- /dev/null
+++ b/games/sudoku-cli/patches/patch-ab
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1.1.1 2007/05/19 01:10:17 heinz Exp $
+
+--- sudoku.c.orig 2005-07-25 03:13:53.000000000 +0200
++++ sudoku.c
+@@ -1837,7 +1837,7 @@ save_board( void )
+
+ /* Read character input (raw processing mode) */
+ i = strlen( userfile );
+- while( '\r' != ( ch = getkey( ) ) )
++ while( '\n' != ( ch = getkey( ) ) )
+ {
+ if( 0x08 == ch || VKEY_LEFT == ch ) /* destructive backspace */
+ {