summaryrefslogtreecommitdiff
path: root/games/xscrabble
diff options
context:
space:
mode:
authordmcmahill <dmcmahill@pkgsrc.org>1999-08-26 00:22:53 +0000
committerdmcmahill <dmcmahill@pkgsrc.org>1999-08-26 00:22:53 +0000
commiteb32b207678ef675e6c1df285f3b3d75da56dbe6 (patch)
treeafbcf57a2b609931490dabfa632508b9a0a51571 /games/xscrabble
parent4da7b7996afea760e56f35a646b4b6a6b6840ef8 (diff)
downloadpkgsrc-eb32b207678ef675e6c1df285f3b3d75da56dbe6.tar.gz
add xscrabble-1.0 to collection.
X version of the popular board game, for 1 to 4 players.
Diffstat (limited to 'games/xscrabble')
-rw-r--r--games/xscrabble/Makefile36
-rw-r--r--games/xscrabble/files/md53
-rw-r--r--games/xscrabble/patches/patch-aa11
-rw-r--r--games/xscrabble/patches/patch-ab13
-rw-r--r--games/xscrabble/pkg/COMMENT1
-rw-r--r--games/xscrabble/pkg/DESCR6
-rw-r--r--games/xscrabble/pkg/PLIST10
7 files changed, 80 insertions, 0 deletions
diff --git a/games/xscrabble/Makefile b/games/xscrabble/Makefile
new file mode 100644
index 00000000000..25d0e3fa95b
--- /dev/null
+++ b/games/xscrabble/Makefile
@@ -0,0 +1,36 @@
+# $NetBSD: Makefile,v 1.1.1.1 1999/08/26 00:22:53 dmcmahill Exp $
+#
+
+DISTNAME= xscrabble
+PKGNAME= xscrabble-1.0
+CATEGORIES= games x11
+MASTER_SITES= http://www.belgarath.demon.co.uk/programs/
+
+MAINTAINER= dmcmahill@netbsd.org
+HOMEPAGE= http://www.belgarath.demon.co.uk/programs/
+
+WRKSRC= ${WRKDIR}/xscrabble
+USE_X11BASE= yes
+USE_IMAKE= yes
+
+post-patch:
+ ${SED} 's!/usr/local/lib!${PREFIX}/share/games/xscrabble!g' \
+ ${WRKSRC}/XScrabble.ad > ${WRKSRC}/XScrabble
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/src/xscrabble ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/src/xscrab ${PREFIX}/bin
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/games
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/games/xscrabble
+ ${INSTALL_DATA} ${WRKSRC}/OSPD3.gz ${PREFIX}/share/games/xscrabble
+ ${INSTALL_DATA} ${WRKSRC}/scrabble_permutations ${PREFIX}/share/games/xscrabble
+ ${INSTALL_DATA} ${WRKSRC}/xscrabble.scores ${PREFIX}/share/games/xscrabble/xscrabble.scores.dist
+ chown ${BINOWN}:games ${PREFIX}/share/games/xscrabble/xscrabble.scores.dist
+ chmod 0664 ${PREFIX}/share/games/xscrabble/xscrabble.scores.dist
+ ${INSTALL_DATA} ${WRKSRC}/XScrabble ${PREFIX}/lib/X11/app-defaults
+ @if [ ! -f /var/games/xscrabble.scores ]; then \
+ ${CP} -p ${PREFIX}/share/games/xscrabble/xscrabble.scores.dist \
+ /var/games/xscrabble.scores ; \
+ fi
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/games/xscrabble/files/md5 b/games/xscrabble/files/md5
new file mode 100644
index 00000000000..5b335e2050d
--- /dev/null
+++ b/games/xscrabble/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1.1.1 1999/08/26 00:22:54 dmcmahill Exp $
+
+MD5 (xscrabble.tar.gz) = 50608420d9d01a9acbec6ec816800ced
diff --git a/games/xscrabble/patches/patch-aa b/games/xscrabble/patches/patch-aa
new file mode 100644
index 00000000000..8b681023e0c
--- /dev/null
+++ b/games/xscrabble/patches/patch-aa
@@ -0,0 +1,11 @@
+$NetBSD: patch-aa,v 1.1.1.1 1999/08/26 00:22:56 dmcmahill Exp $
+
+--- XScrabble.ad.orig Sun Jul 11 23:26:50 1999
++++ XScrabble.ad Sun Jul 11 23:27:12 1999
+@@ -4,5 +4,5 @@
+ XScrabble.dictfile: /usr/local/lib/OSPD3
+ XScrabble.permfile: /usr/local/lib/scrabble_permutations
+-XScrabble.scorefile: /usr/local/lib/xscrabble.scores
++XScrabble.scorefile: /var/games/xscrabble.scores
+
+ ! version string, to make sure correct resource file is loaded
diff --git a/games/xscrabble/patches/patch-ab b/games/xscrabble/patches/patch-ab
new file mode 100644
index 00000000000..e2b44752f8d
--- /dev/null
+++ b/games/xscrabble/patches/patch-ab
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1.1.1 1999/08/26 00:22:56 dmcmahill Exp $
+
+--- src/Imakefile.orig Mon Jul 12 22:39:52 1999
++++ src/Imakefile Mon Jul 12 22:40:24 1999
+@@ -29,6 +29,6 @@
+ SLIBS =
+
+- INCLUDES = -I.. -I/home/mchapman/include
+-SYS_LIBRARIES = -lXpm -L../Xc -lXc -L/home/mchapman/lib
++ INCLUDES = -I..
++SYS_LIBRARIES = -lXpm -L../Xc -lXc
+
+ CCOPTIONS =
diff --git a/games/xscrabble/pkg/COMMENT b/games/xscrabble/pkg/COMMENT
new file mode 100644
index 00000000000..5b90827c840
--- /dev/null
+++ b/games/xscrabble/pkg/COMMENT
@@ -0,0 +1 @@
+ X version of the popular board game, for 1 to 4 players.
diff --git a/games/xscrabble/pkg/DESCR b/games/xscrabble/pkg/DESCR
new file mode 100644
index 00000000000..6fe6940a5ca
--- /dev/null
+++ b/games/xscrabble/pkg/DESCR
@@ -0,0 +1,6 @@
+This is a full multiplayer (1-4) implementation of the classic board
+game, with computer players, and over 118,000 word dictionary (the
+Official Scrabble Players Dictionary, edition 3, as used in
+U.S. tournaments). This was a joint project, with Matthew Badham, who
+implemented the back end routines. There is a high score table, a best
+single goes list, a handy setup window, and load/save facilities.
diff --git a/games/xscrabble/pkg/PLIST b/games/xscrabble/pkg/PLIST
new file mode 100644
index 00000000000..4d7aa84f77b
--- /dev/null
+++ b/games/xscrabble/pkg/PLIST
@@ -0,0 +1,10 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 1999/08/26 00:22:56 dmcmahill Exp $
+bin/xscrabble
+bin/xscrab
+lib/X11/app-defaults/XScrabble
+share/games/xscrabble/OSPD3.gz
+share/games/xscrabble/scrabble_permutations
+share/games/xscrabble/xscrabble.scores.dist
+@exec if [ ! -f /var/games/xscrabble.scores ]; then cp -p %D/share/games/xscrabble/xscrabble.scores.dist /var/games/xscrabble.scores; fi
+@unexec echo "Warning: If you will *NOT* use this package anymore, please remove /var/games/xscrabble.scores manually."
+@dirrm share/games/xscrabble