Add xscrabble port.
This commit is contained in:
parent
74acfe0d64
commit
bd783701f9
27
games/xscrabble/Makefile
Normal file
27
games/xscrabble/Makefile
Normal 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>
|
1
games/xscrabble/files/md5
Normal file
1
games/xscrabble/files/md5
Normal file
@ -0,0 +1 @@
|
||||
MD5 (xscrabble.tar.gz) = 50608420d9d01a9acbec6ec816800ced
|
13
games/xscrabble/patches/patch-aa
Normal file
13
games/xscrabble/patches/patch-aa
Normal 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
|
15
games/xscrabble/patches/patch-ab
Normal file
15
games/xscrabble/patches/patch-ab
Normal 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
|
13
games/xscrabble/patches/patch-ac
Normal file
13
games/xscrabble/patches/patch-ac
Normal 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
|
21
games/xscrabble/patches/patch-ad
Normal file
21
games/xscrabble/patches/patch-ad
Normal 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))
|
||||
|
1
games/xscrabble/pkg/COMMENT
Normal file
1
games/xscrabble/pkg/COMMENT
Normal file
@ -0,0 +1 @@
|
||||
X version of the popular board game
|
20
games/xscrabble/pkg/DESCR
Normal file
20
games/xscrabble/pkg/DESCR
Normal 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)
|
||||
|
7
games/xscrabble/pkg/PLIST
Normal file
7
games/xscrabble/pkg/PLIST
Normal 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
|
Loading…
Reference in New Issue
Block a user