Add xscrabble port.

This commit is contained in:
angelos 1997-12-03 02:15:43 +00:00
parent 74acfe0d64
commit bd783701f9
9 changed files with 118 additions and 0 deletions

27
games/xscrabble/Makefile Normal file
View File

@ -0,0 +1,27 @@
# OpenBSD makefile for: xscrabble
# Version required: 1.0
# Date created: December 1, 1997
# Whom: Angelos D. Keromytis
#
# $OpenBSD: Makefile,v 1.1.1.1 1997/12/03 02:15:43 angelos Exp $
#
DISTNAME= xscrabble
PKGNAME= xscrabble-1.0
CATEGORIES= games
MASTER_SITES= http://www.belgarath.demon.co.uk/programs/
MAINTAINER= angelos@openbsd.org
LIB_DEPENDS= Xpm\\.4\\.:${PORTSDIR}/graphics/xpm
USE_IMAKE= yes
NO_INSTALL_MANPAGES= yes
post-patch:
@/usr/bin/perl -pi.bak -e "s|\@XSCRABBLEDIR\@|${PREFIX}/lib/X11/xscrabble|;" \
${WRKSRC}/Imakefile
@/usr/bin/perl -pi.bak -e "s|\@XSCRABBLEDIR\@|${PREFIX}/lib/X11/xscrabble|;" \
${WRKSRC}/XScrabble.ad
.include <bsd.port.mk>

View File

@ -0,0 +1 @@
MD5 (xscrabble.tar.gz) = 50608420d9d01a9acbec6ec816800ced

View File

@ -0,0 +1,13 @@
--- Imakefile.orig Tue Mar 11 06:56:29 1997
+++ Imakefile Sun Jul 27 10:43:53 1997
@@ -9,3 +9,10 @@
MakeLintLibSubdirs($(SUBDIRS))
MakeLintSubdirs($(SUBDIRS),install.ln,install.ln)
+InstallNamedNonExec(XScrabble.ad,XScrabble,$(LIBDIR)/app-defaults)
+InstallNonExecFile(OSPD3.gz,@XSCRABBLEDIR@)
+InstallNonExecFile(scrabble_permutations,@XSCRABBLEDIR@)
+InstallNonExecFile(xscrabble.scores,@XSCRABBLEDIR@)
+
+install::
+ @chmod a+rw @XSCRABBLEDIR@/xscrabble.scores

View File

@ -0,0 +1,15 @@
--- XScrabble.ad.orig Tue Mar 11 06:57:16 1997
+++ XScrabble.ad Sun Jul 27 09:53:56 1997
@@ -1,9 +1,9 @@
! *** XScrabble resource file ***
! edit the following three pathnames as required:
-XScrabble.dictfile: /usr/local/lib/OSPD3
-XScrabble.permfile: /usr/local/lib/scrabble_permutations
-XScrabble.scorefile: /usr/local/lib/xscrabble.scores
+XScrabble.dictfile: @XSCRABBLEDIR@/OSPD3
+XScrabble.permfile: @XSCRABBLEDIR@/scrabble_permutations
+XScrabble.scorefile: @XSCRABBLEDIR@/xscrabble.scores
! version string, to make sure correct resource file is loaded
XScrabble*version: 100

View File

@ -0,0 +1,13 @@
--- Xc/Imakefile.orig Fri Nov 10 18:53:09 1995
+++ Xc/Imakefile Sun Jul 27 10:23:24 1997
@@ -22,10 +22,8 @@
#endif
NormalLibraryTarget(Xc,$(OBJS))
-InstallLibrary(Xc,$(USRLIBDIR))
BuildIncludes($(HEADERS),Xc,..)
-InstallMultiple($(HEADERS),$(INCDIR)/Xc)
#clean::
# $(RM) -r $(TOP)/X11

View File

@ -0,0 +1,21 @@
--- src/Imakefile.orig Tue Mar 11 06:56:24 1997
+++ src/Imakefile Sun Jul 27 10:04:12 1997
@@ -28,8 +28,8 @@
PROGRAMS = xscrab xscrabble
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 =
@@ -39,4 +39,7 @@
NormalProgramTarget(xscrabble,$(SETUP_OBJS),$(DEPLIBS),$(LOCAL_LIBS),$(SLIBS))
DependTarget()
+
+InstallProgram(xscrab,$(BINDIR))
+InstallProgram(xscrabble,$(BINDIR))

View File

@ -0,0 +1 @@
X version of the popular board game

20
games/xscrabble/pkg/DESCR Normal file
View File

@ -0,0 +1,20 @@
To run:
Simpy type xscrabble. This will bring up the setup box which will allow
you to enter the names and displays and other info for the game to wish
to play. Then click on the Start Game button, (or Load Previous if you're
restarting a game). The main program, xscrab, will then be automatically
called with the appropriate options.
The game is saved after every turn (in "~/.xscrabble.save" of the
person running it) and can be restarted by running xscrabble, entering
exactly the same info, and hitting the Load Previous button.
This was a student project, and there are not likely to be any future
releases.
Have fun,
Matt Chapman.
E-mail: matt@belgarath.demon.co.uk (no longer csuoq@csv.warwick.ac.uk)

View File

@ -0,0 +1,7 @@
bin/xscrab
bin/xscrabble
lib/X11/app-defaults/XScrabble
lib/X11/xscrabble/OSPD3.gz
lib/X11/xscrabble/scrabble_permutations
lib/X11/xscrabble/xscrabble.scores
@dirrm lib/X11/xscrabble