aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2003-08-27 04:40:37 +0800
committerkrion <krion@FreeBSD.org>2003-08-27 04:40:37 +0800
commitef458273a4724221d9cc27c3f62804c3ace76b41 (patch)
tree8848d75dcf5dd0d86385685032be82fdb90e5b69 /games
parent27f18543f728432b851db3e270381f4e61961d03 (diff)
downloadfreebsd-ports-gnome-ef458273a4724221d9cc27c3f62804c3ace76b41.tar.gz
freebsd-ports-gnome-ef458273a4724221d9cc27c3f62804c3ace76b41.tar.zst
freebsd-ports-gnome-ef458273a4724221d9cc27c3f62804c3ace76b41.zip
- Update to version 2.10
PR: 56005 Submitted by: Ports Fury
Diffstat (limited to 'games')
-rw-r--r--games/xscrabble/Makefile38
-rw-r--r--games/xscrabble/distinfo3
-rw-r--r--games/xscrabble/files/patch-aa20
-rw-r--r--games/xscrabble/files/patch-ab15
-rw-r--r--games/xscrabble/files/patch-ac13
-rw-r--r--games/xscrabble/files/patch-ad21
-rw-r--r--games/xscrabble/pkg-descr2
-rw-r--r--games/xscrabble/pkg-plist5
8 files changed, 34 insertions, 83 deletions
diff --git a/games/xscrabble/Makefile b/games/xscrabble/Makefile
index 37d043079272..4777a30883b7 100644
--- a/games/xscrabble/Makefile
+++ b/games/xscrabble/Makefile
@@ -6,22 +6,42 @@
#
PORTNAME= xscrabble
-PORTVERSION= 1.0
+PORTVERSION= 2.10
CATEGORIES= games
-MASTER_SITES= http://ahoyhoy.org/devel/misc/ \
- ${MASTER_SITE_LOCAL}
-MASTER_SITE_SUBDIR= mph
-DISTNAME= ${PORTNAME}
+MASTER_SITES= ftp://ftp.ac-grenoble.fr/ge/educational_games/
+DISTFILES= ${PORTNAME}-${PORTVERSION}.tgz ${PORTNAME}_en.tgz
MAINTAINER= ports@FreeBSD.org
COMMENT= X version of the popular board game
-USE_REINPLACE= yes
-USE_IMAKE= yes
-USE_XPM= yes
+USE_IMAKE= yes
+USE_XPM= yes
+USE_REINPLACE= yes
NO_INSTALL_MANPAGES= yes
+XSCRABBLEDIR= ${PREFIX}/lib/X11/xscrabble
+
post-patch:
- @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/XScrabble.ad
+ @${ECHO_CMD} '#define VERSION ${PORTVERSION:S/.//g}' \
+ > ${WRKSRC}/src/config.h
+ @${ECHO_CMD} '#define DICT_FILE "${XSCRABBLEDIR}/OSPD3.gz"' \
+ >> ${WRKSRC}/src/config.h
+ @${ECHO_CMD} '#define SCORE_FILE "${XSCRABBLEDIR}/scrabble_scores"' \
+ >> ${WRKSRC}/src/config.h
+ @${ECHO_CMD} '#define RULES_FILE "${XSCRABBLEDIR}/scrabble_rules"' \
+ >> ${WRKSRC}/src/config.h
+ @${SED} -e 's|/usr/games/lib/scrabble/en|${XSCRABBLEDIR}|g' \
+ ${WRKSRC}/../xscrabble_en/app-defaults/XScrabble_en \
+ > ${WRKSRC}/XScrabble
+ @${REINPLACE_CMD} -e 's|= -O|=$$(CDEBUGFLAGS)|g' ${WRKSRC}/Imakefile
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/src/xscrab ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/src/xscrabble ${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKSRC}/XScrabble ${PREFIX}/lib/X11/app-defaults
+ @${MKDIR} ${XSCRABBLEDIR}
+.for file in OSPD3.gz duplicate scrabble_rules scrabble_scores
+ ${INSTALL_DATA} ${WRKSRC}/../xscrabble_en/lib/${file} ${XSCRABBLEDIR}
+.endfor
.include <bsd.port.mk>
diff --git a/games/xscrabble/distinfo b/games/xscrabble/distinfo
index 89818204b907..279ce203f8ef 100644
--- a/games/xscrabble/distinfo
+++ b/games/xscrabble/distinfo
@@ -1 +1,2 @@
-MD5 (xscrabble.tar.gz) = 7bd0142d6131197cde7107a9e11f556a
+MD5 (xscrabble-2.10.tgz) = 376531c836b62f81d2ac2281495b5030
+MD5 (xscrabble_en.tgz) = 791244c62c92fc2dfd1c524f1a25eb9f
diff --git a/games/xscrabble/files/patch-aa b/games/xscrabble/files/patch-aa
deleted file mode 100644
index 5374e08e2ca8..000000000000
--- a/games/xscrabble/files/patch-aa
+++ /dev/null
@@ -1,20 +0,0 @@
---- Imakefile.orig Tue Mar 11 14:56:29 1997
-+++ Imakefile Tue Jan 18 00:00:00 2000
-@@ -1,5 +1,5 @@
-
--#define PassCDebugFlags 'CDEBUGFLAGS= -O'
-+#define PassCDebugFlags 'CDEBUGFLAGS= $(CDEBUGFLAGS)'
- #define IHaveSubdirs
-
- SUBDIRS = Xc src
-@@ -9,3 +9,10 @@
- MakeLintLibSubdirs($(SUBDIRS))
- MakeLintSubdirs($(SUBDIRS),install.ln,install.ln)
-
-+InstallNamedNonExec(XScrabble.ad,XScrabble,$(LIBDIR)/app-defaults)
-+InstallNonExecFile(OSPD3.gz,$(LIBDIR)/xscrabble)
-+InstallNonExecFile(scrabble_permutations,$(LIBDIR)/xscrabble)
-+InstallNonExecFile(xscrabble.scores,$(LIBDIR)/xscrabble)
-+
-+install::
-+ @chmod a+rw $(LIBDIR)/xscrabble/xscrabble.scores
diff --git a/games/xscrabble/files/patch-ab b/games/xscrabble/files/patch-ab
deleted file mode 100644
index c1fa4bfe45fa..000000000000
--- a/games/xscrabble/files/patch-ab
+++ /dev/null
@@ -1,15 +0,0 @@
---- XScrabble.ad.orig Tue Mar 11 06:57:16 1997
-+++ XScrabble.ad Tue Jan 18 00:00:00 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: %%PREFIX%%/lib/X11/xscrabble/OSPD3
-+XScrabble.permfile: %%PREFIX%%/lib/X11/xscrabble/scrabble_permutations
-+XScrabble.scorefile: %%PREFIX%%/lib/X11/xscrabble/xscrabble.scores
-
- ! version string, to make sure correct resource file is loaded
- XScrabble*version: 100
diff --git a/games/xscrabble/files/patch-ac b/games/xscrabble/files/patch-ac
deleted file mode 100644
index 896e533cb75c..000000000000
--- a/games/xscrabble/files/patch-ac
+++ /dev/null
@@ -1,13 +0,0 @@
---- 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
diff --git a/games/xscrabble/files/patch-ad b/games/xscrabble/files/patch-ad
deleted file mode 100644
index bfaa8eb19452..000000000000
--- a/games/xscrabble/files/patch-ad
+++ /dev/null
@@ -1,21 +0,0 @@
---- 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))
-
diff --git a/games/xscrabble/pkg-descr b/games/xscrabble/pkg-descr
index b5a2641ac3d5..6114881536dd 100644
--- a/games/xscrabble/pkg-descr
+++ b/games/xscrabble/pkg-descr
@@ -17,5 +17,3 @@ Have fun,
Matt Chapman.
E-mail: matt@belgarath.demon.co.uk (no longer csuoq@csv.warwick.ac.uk)
-
-WWW: http://www.belgarath.demon.co.uk/programs/index.html#XScrabble
diff --git a/games/xscrabble/pkg-plist b/games/xscrabble/pkg-plist
index de960a51a483..95903466f590 100644
--- a/games/xscrabble/pkg-plist
+++ b/games/xscrabble/pkg-plist
@@ -2,6 +2,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
+lib/X11/xscrabble/duplicate
+lib/X11/xscrabble/scrabble_rules
+lib/X11/xscrabble/scrabble_scores
@dirrm lib/X11/xscrabble