- update to xscrabble-2.12

- license is GPL
- reword DESCR
- add 2 dictionary FLAVORS, en and fr

ok simon@
This commit is contained in:
ajacoutot 2007-12-08 22:00:01 +00:00
parent 6b2cbddde1
commit e5522ae9c8
12 changed files with 130 additions and 112 deletions

View File

@ -1,33 +1,79 @@
# $OpenBSD: Makefile,v 1.22 2007/11/13 14:54:32 steven Exp $
# $OpenBSD: Makefile,v 1.23 2007/12/08 22:00:01 ajacoutot Exp $
COMMENT= X11 version of the popular board game
DISTNAME= xscrabble
PKGNAME= xscrabble-1.0p0
V= 2.12
DISTNAME= xscrabble-${V}
CATEGORIES= games
MASTER_SITES= http://people.freebsd.org/~mph/distfiles/
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
xscrabble_en${EXTRACT_SUFX} \
xscrabble_fr${EXTRACT_SUFX}
PERMIT_PACKAGE_CDROM= no fee
EXTRACT_SUFX= .tar.bz2
MASTER_SITES= ftp://ftp.ac-grenoble.fr/ge/educational_games/
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= no fee
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= ICE SM X11 Xau Xdmcp Xaw Xext Xmu Xp Xpm Xt c
WANTLIB= ICE SM X11 Xau Xdmcp Xaw Xext Xmu Xp Xpm Xt c z
LIB_DEPENDS= bz2.>=10::archivers/bzip2
CONFIGURE_STYLE=imake noman
USE_X11= Yes
NO_REGRESS= Yes
post-extract:
@rm -f ${WRKSRC}/Xc/*.orig
XSCRABBLEDIR= ${PREFIX}/lib/X11/xscrabble
FLAVORS= en fr
FLAVOR?= en
.if ${FLAVOR} != "en" && ${FLAVOR} != "fr"
BROKEN= you must choose (only) one language: ${FLAVORS}
.endif
.if ${FLAVOR} == "en"
DICT= OSPD3
RULES= scrabble_rules
.elif ${FLAVOR} == "fr"
DICT= ODS4
RULES= scrabble_regles
.endif
pre-configure:
@/usr/bin/perl -pi.bak -e "s|\@XSCRABBLEDIR\@|${PREFIX}/lib/X11/xscrabble|;" \
${WRKSRC}/Imakefile ${WRKSRC}/XScrabble.ad ${WRKSRC}/src/main.c
@echo '#define VERSION ${V:S/.//g}' \
>> ${WRKSRC}/src/config.h
@echo '#define DICT_FILE "${XSCRABBLEDIR}/${DICT}.gz"' \
>> ${WRKSRC}/src/config.h
@echo '#define SCORE_FILE "/var/games/xscrabble.scores"' \
>> ${WRKSRC}/src/config.h
@echo '#define RULES_FILE "${XSCRABBLEDIR}/${RULES}"' \
>> ${WRKSRC}/src/config.h
@perl -pi -e 's,!!CFLAGS!!,${CFLAGS},g' \
${WRKSRC}/Imakefile
@perl -pi -e 's,!!XSCRABBLEDIR!!,${XSCRABBLEDIR},g;' \
-e 's,!!DICT!!,${DICT},g;' \
-e 's,!!RULES!!,${RULES},g' \
${WRKSRC}/XScrabble
post-install:
do-install:
${INSTALL_DATA_DIR} ${XSCRABBLEDIR}
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/xscrabble
${INSTALL_PROGRAM} ${WRKBUILD}/src/xscrab ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKBUILD}/src/xscrabble ${PREFIX}/bin
${INSTALL_DATA} ${WRKBUILD}/XScrabble ${PREFIX}/lib/X11/app-defaults
@ln -sf ${PREFIX}/lib/X11/app-defaults/XScrabble \
${PREFIX}/lib/X11/app-defaults/XScrabble_${FLAVOR}
${INSTALL_DATA} ${WRKDIR}/xscrabble_${FLAVOR}/lib/${DICT}.gz \
${WRKDIR}/xscrabble_${FLAVOR}/lib/duplicate \
${WRKDIR}/xscrabble_${FLAVOR}/lib/${RULES} \
${XSCRABBLEDIR}
${INSTALL_DATA} /dev/null \
${PREFIX}/share/examples/xscrabble/xscrabble.scores

View File

@ -1,5 +1,15 @@
MD5 (xscrabble.tar.gz) = UGCEINnQGprL7G7IFoAM7Q==
RMD160 (xscrabble.tar.gz) = r2exmy3QIIgAU3Qo/9NTfXvwxeo=
SHA1 (xscrabble.tar.gz) = f95+3MBVBYK2jzHCNvYANOBt1hY=
SHA256 (xscrabble.tar.gz) = pDUaFj0WhkMxF9mk6pSZ59wq5N8vdyRWJRadT2Q3d1Q=
SIZE (xscrabble.tar.gz) = 496807
MD5 (xscrabble-2.12.tar.bz2) = cz6Q3vLB1gwMIj86DJCNuQ==
MD5 (xscrabble_en.tar.bz2) = L7DsLoTeL7C5HKLWkZ301Q==
MD5 (xscrabble_fr.tar.bz2) = FlahNlg9s1Fpp4WmioqEIA==
RMD160 (xscrabble-2.12.tar.bz2) = DP89NcY2ijHyNhwa0sLNerM5pXA=
RMD160 (xscrabble_en.tar.bz2) = g9QQv/z6fSTco7gAPydvGnaKUbY=
RMD160 (xscrabble_fr.tar.bz2) = C8vA0n+HOUJu2PbjuduS4TZwaI8=
SHA1 (xscrabble-2.12.tar.bz2) = lYLH/mhTRxImh7LvtmM1L4woXkY=
SHA1 (xscrabble_en.tar.bz2) = yhFDLIV+cc1yQeLGAC3XRQbf43w=
SHA1 (xscrabble_fr.tar.bz2) = Seyfr6JmFs/Aaj7XiHRWBvP0PbM=
SHA256 (xscrabble-2.12.tar.bz2) = 4+uKk4EK8x6pWJ+AH7Up59g99KVPXYNpcnd8tPzoGz0=
SHA256 (xscrabble_en.tar.bz2) = xSxnL7Xzo7GfZ1nSa8HjsXVbvHk2Hd+h0IWEKBBWCkw=
SHA256 (xscrabble_fr.tar.bz2) = Rb+GWP7aN5mUbz38x0Gv47V7D1gjT27XLncGEV3QNqM=
SIZE (xscrabble-2.12.tar.bz2) = 79415
SIZE (xscrabble_en.tar.bz2) = 397796
SIZE (xscrabble_fr.tar.bz2) = 1127377

View File

@ -1,10 +1,10 @@
$OpenBSD: patch-Imakefile,v 1.1 2007/10/26 21:19:17 ajacoutot Exp $
--- Imakefile.orig Tue Mar 11 06:56:29 1997
+++ Imakefile Fri Oct 26 23:12:39 2007
@@ -9,3 +9,6 @@ DependSubdirs($(SUBDIRS))
MakeLintLibSubdirs($(SUBDIRS))
MakeLintSubdirs($(SUBDIRS),install.ln,install.ln)
$OpenBSD: patch-Imakefile,v 1.2 2007/12/08 22:00:01 ajacoutot Exp $
--- Imakefile.orig Fri Dec 17 19:30:37 2004
+++ Imakefile Sat Dec 8 12:21:41 2007
@@ -1,5 +1,5 @@
+InstallNamedNonExec(XScrabble.ad,XScrabble,$(LIBDIR)/app-defaults)
+InstallNonExecFile(OSPD3.gz,@XSCRABBLEDIR@)
+InstallNonExecFile(scrabble_permutations,@XSCRABBLEDIR@)
-#define PassCDebugFlags 'CDEBUGFLAGS= -O'
+#define PassCDebugFlags 'CDEBUGFLAGS= !!CFLAGS!!'
#define IHaveSubdirs
SUBDIRS = Xc src

View File

@ -0,0 +1,25 @@
$OpenBSD: patch-XScrabble,v 1.1 2007/12/08 22:00:01 ajacoutot Exp $
--- XScrabble.orig Mon Jan 15 21:19:25 2007
+++ XScrabble Sat Dec 8 14:59:50 2007
@@ -1,9 +1,9 @@
! *** XScrabble_en (English) resource file ***
! edit the following four pathnames as required:
-*dictfile: /usr/share/games/scrabble/en/OSPD3
-*scorefile: /usr/share/games/scrabble/en/scrabble_scores
-*rulesfile: /usr/share/games/scrabble/en/scrabble_rules
+*dictfile: !!XSCRABBLEDIR!!/!!DICT!!
+*scorefile: /var/games/xscrabble.scores
+*rulesfile: !!XSCRABBLEDIR!!/!!RULES!!
! version string, to make sure correct resource file is loaded
*version: 212
@@ -600,7 +600,7 @@ Human\nComp\nGood\nBetter\nGreat\nSmashing\nSuper\nAce
*setup*langtitle.fromVert: name3
*setup*langtitle.fromHoriz: name3
*setup*langtitle.vertDistance: 20
-*setup*langtitle.label: Language(fr/eng):
+*setup*langtitle.label: Language(fr/en):
*setup*langtitle.width: 120
*setup*langtitle.borderWidth: 0
*setup*langtitle.justify: left

View File

@ -1,16 +0,0 @@
$OpenBSD: patch-XScrabble_ad,v 1.1 2007/10/26 21:19:17 ajacoutot Exp $
--- XScrabble.ad.orig Tue Mar 11 06:57:16 1997
+++ XScrabble.ad Fri Oct 26 23:12:39 2007
@@ -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: /var/games/xscrabble.scores
! version string, to make sure correct resource file is loaded
XScrabble*version: 100

View File

@ -1,14 +0,0 @@
$OpenBSD: patch-Xc_Imakefile,v 1.1 2007/10/26 21:19:17 ajacoutot Exp $
--- Xc/Imakefile.orig Fri Nov 10 18:53:09 1995
+++ Xc/Imakefile Fri Oct 26 23:12:39 2007
@@ -22,10 +22,8 @@ LOCAL_LIBS = $(XCLIB) XawClientLibs
#endif
NormalLibraryTarget(Xc,$(OBJS))
-InstallLibrary(Xc,$(USRLIBDIR))
BuildIncludes($(HEADERS),Xc,..)
-InstallMultiple($(HEADERS),$(INCDIR)/Xc)
#clean::
# $(RM) -r $(TOP)/X11

View File

@ -1,22 +0,0 @@
$OpenBSD: patch-src_Imakefile,v 1.1 2007/10/26 21:19:17 ajacoutot Exp $
--- src/Imakefile.orig Tue Mar 11 06:56:24 1997
+++ src/Imakefile Fri Oct 26 23:12:39 2007
@@ -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(xscrab,$(OBJS),$(DEPLIBS),$(LOCAL_
NormalProgramTarget(xscrabble,$(SETUP_OBJS),$(DEPLIBS),$(LOCAL_LIBS),$(SLIBS))
DependTarget()
+
+InstallProgram(xscrab,$(BINDIR))
+InstallProgram(xscrabble,$(BINDIR))

View File

@ -1,20 +0,0 @@
$OpenBSD: patch-src_main_c,v 1.1 2003/04/15 12:42:31 wilfried Exp $
--- src/main.c.orig Mon Mar 10 07:41:24 1997
+++ src/main.c Mon Apr 14 14:50:09 2003
@@ -57,13 +57,13 @@ static XtResource resources[] =
XtRImmediate,(XtPointer) 0},
{"dictfile","Dictfile",XtRString,sizeof(String),
XtOffsetOf(struct AppData,dictfile),XtRImmediate,
- "/usr/local/lib/OSPD3"},
+ "@XSCRABBLEDIR@/OSPD3"},
{"permfile","Permfile",XtRString,sizeof(String),
XtOffsetOf(struct AppData,permfile),XtRImmediate,
- "/usr/local/lib/scrabble_permutations"},
+ "@XSCRABBLEDIR@/scrabble_permutations"},
{"scorefile","Scorefile",XtRString,sizeof(String),
XtOffsetOf(struct AppData,scorefile),XtRImmediate,
- "/usr/local/lib/xscrabble.scores"},
+ "/var/games/xscrabble.scores"},
};
/* resource options */

View File

@ -1,19 +1,18 @@
To run:
XScrabble is a multiplayer (1-4) implementation of the classic board
game Scrabble with computer players and over 118,000 word dictionary.
There is a high score table, a best single goes list, a handy setup
window, and load/save facilities.
Simply 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.
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)
Available flavors:
en - Build with English dictionary and rules file
fr - Build with French dictionary and rules file

View File

@ -0,0 +1,5 @@
@comment $OpenBSD: PFRAG.en,v 1.1 2007/12/08 22:00:02 ajacoutot Exp $
@pkgpath games/xscrabble
lib/X11/app-defaults/XScrabble_en
lib/X11/xscrabble/OSPD3.gz
lib/X11/xscrabble/scrabble_rules

View File

@ -0,0 +1,4 @@
@comment $OpenBSD: PFRAG.fr,v 1.1 2007/12/08 22:00:02 ajacoutot Exp $
lib/X11/app-defaults/XScrabble_fr
lib/X11/xscrabble/ODS4.gz
lib/X11/xscrabble/scrabble_regles

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST,v 1.6 2004/09/30 22:31:06 xsa Exp $
@comment $OpenBSD: PLIST,v 1.7 2007/12/08 22:00:02 ajacoutot Exp $
@mode 2555
@group games
bin/xscrab
@ -7,10 +7,11 @@ bin/xscrabble
@group
lib/X11/app-defaults/XScrabble
lib/X11/xscrabble/
lib/X11/xscrabble/OSPD3.gz
lib/X11/xscrabble/scrabble_permutations
lib/X11/xscrabble/duplicate
share/examples/xscrabble/
share/examples/xscrabble/xscrabble.scores
@mode g+w
@group games
@sample /var/games/xscrabble.scores
%%en%%
%%fr%%