aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--games/xsok/Makefile26
-rw-r--r--games/xsok/distinfo1
-rw-r--r--games/xsok/files/patch-aa43
-rw-r--r--games/xsok/files/patch-ab11
-rw-r--r--games/xsok/pkg-comment1
-rw-r--r--games/xsok/pkg-descr4
-rw-r--r--games/xsok/pkg-plist23
7 files changed, 109 insertions, 0 deletions
diff --git a/games/xsok/Makefile b/games/xsok/Makefile
new file mode 100644
index 000000000000..5d374af8384e
--- /dev/null
+++ b/games/xsok/Makefile
@@ -0,0 +1,26 @@
+# New ports collection makefile for: xsok
+# Version required: 1.02
+# Date created: 07 Feb 1998
+# Whom: Thomas Gellekum <tg@FreeBSD.ORG>
+#
+# $Id$
+#
+
+DISTNAME= xsok-1.02
+CATEGORIES= games
+MASTER_SITES= ftp://tsx-11.mit.edu/pub/linux/sources/usr.bin.X11/ \
+ ftp://sunsite.cnlab-switch.ch/mirror/linux/tsx-11/sources/usr.bin.X11/ \
+ ftp://ftp.cdrom.com/pub/linux/tsx-11/sources/usr.bin.X11/
+EXTRACT_SUFX= -src.tar.gz
+
+MAINTAINER= ports@FreeBSD.ORG
+
+LIB_DEPENDS= Xpm\\.4:${PORTSDIR}/graphics/xpm
+
+USE_X11= yes
+MAN6= xsok.6x
+
+post-install:
+ ${INSTALL_DATA} ${WRKSRC}/doc/xsok.tex ${PREFIX}/share/doc/xsok
+
+.include <bsd.port.mk>
diff --git a/games/xsok/distinfo b/games/xsok/distinfo
new file mode 100644
index 000000000000..feac4783a974
--- /dev/null
+++ b/games/xsok/distinfo
@@ -0,0 +1 @@
+MD5 (xsok-1.02-src.tar.gz) = f961b329e6577ebefcaa0acece9c94c8
diff --git a/games/xsok/files/patch-aa b/games/xsok/files/patch-aa
new file mode 100644
index 000000000000..6bcb1b6fe72c
--- /dev/null
+++ b/games/xsok/files/patch-aa
@@ -0,0 +1,43 @@
+--- src/Imakefile.orig Sun Mar 17 12:54:27 1996
++++ src/Imakefile Sat Feb 7 15:31:54 1998
+@@ -46,17 +46,17 @@
+ # BINDIR and LIBDIR should be predefined by the templates
+ # BINDIR = /usr/bin/X11
+ # LIBDIR = /usr/lib/X11
+-XSOKLIBDIR = /usr/games/lib/xsok
+-APPDEFSDIR = $(LIBDIR)
+-XSOKMANDIR = /usr/man/man6
+-XSOKDOCDIR = /usr/doc/xsok
++XSOKLIBDIR = $(LIBDIR)/xsok
++APPDEFSDIR = $(LIBDIR)/app-defaults
++XSOKMANDIR = $(MANDIR)/../man6
++XSOKDOCDIR = $(X11BASE)/share/doc/xsok
+
+ # This is the name of the save directory, where solved games are stored:
+ # an alternative path would be $(XSOKLIBDIR)/save
+ # The directory XSOKSAVEDIR must have permissions rwx for world, else
+ # xsok must be installed suid, and XSOKDIR must have write permissions for
+ # the owner of xsok
+-XSOKSAVEDIR = /var/games/xsok
++XSOKSAVEDIR = $(XSOKLIBDIR)
+
+ # paths for installation in user's home-directory.
+ LXSOKBINDIR = $(HOME)/bin
+@@ -65,7 +65,7 @@
+
+ # xsok needs to know where the xpm library resides
+ XPMLIB = -L$(USRLIBDIR) -lXpm
+-XPMINCLUDE = -I $(INCDIR)
++XPMINCLUDE = -I$(INCDIR)/X11
+
+ # *****************************************************************************
+ # I hope you don't need to change anything below this point
+@@ -109,7 +109,7 @@
+ # *.c require version.h xsok.h
+ # X*.c additionally require X-sok.h and Tableau.h
+ # X-widget.c additionally requires TableauP.h
+-LIBCONTS = *.gz *.help keys
++LIBCONTS = *.xpm *.gz *.help keys
+
+ all:: $(ALLTARGETS)
+
diff --git a/games/xsok/files/patch-ab b/games/xsok/files/patch-ab
new file mode 100644
index 000000000000..249b618bc1f3
--- /dev/null
+++ b/games/xsok/files/patch-ab
@@ -0,0 +1,11 @@
+--- lib/Makefile.orig Thu Nov 24 12:00:00 1994
++++ lib/Makefile Sat Feb 7 15:22:11 1998
+@@ -3,7 +3,7 @@
+ XSOKZIP = gzip -f -9
+
+ TARGETS = Sokoban.def.gz Xsok.def.gz Cyberbo.def.gz \
+- floor.xpm.gz objects.xpm.gz
++ floor.xpm objects.xpm
+
+ all: $(TARGETS)
+
diff --git a/games/xsok/pkg-comment b/games/xsok/pkg-comment
new file mode 100644
index 000000000000..c04414fc921e
--- /dev/null
+++ b/games/xsok/pkg-comment
@@ -0,0 +1 @@
+A generic Sokoban game for X11
diff --git a/games/xsok/pkg-descr b/games/xsok/pkg-descr
new file mode 100644
index 000000000000..cb77021f9330
--- /dev/null
+++ b/games/xsok/pkg-descr
@@ -0,0 +1,4 @@
+xsok is a generalization of the standard Sokoban game.
+All original Sokoban levels may be played with xsok (again, using the same
+format for the level definition files). Some levels of a similar MSDOS game,
+Cyberbox, may be played also.
diff --git a/games/xsok/pkg-plist b/games/xsok/pkg-plist
new file mode 100644
index 000000000000..4ed3a1cb14ea
--- /dev/null
+++ b/games/xsok/pkg-plist
@@ -0,0 +1,23 @@
+bin/xsok
+lib/X11/app-defaults/XSok
+lib/X11/xsok/Cyberbo.def.gz
+lib/X11/xsok/Cyberbox.help
+lib/X11/xsok/Cyberbox.score
+lib/X11/xsok/Sokoban.def.gz
+lib/X11/xsok/Sokoban.help
+lib/X11/xsok/Sokoban.score
+lib/X11/xsok/Xsok.def.gz
+lib/X11/xsok/Xsok.help
+lib/X11/xsok/Xsok.score
+lib/X11/xsok/floor.xpm
+lib/X11/xsok/keys
+lib/X11/xsok/keys.help
+lib/X11/xsok/objects.xpm
+man/man6/xsok.6x.gz
+share/doc/xsok/COPYRIGHT.GNU
+share/doc/xsok/COPYRIGHT.xpm
+share/doc/xsok/COPYRIGHT.xsok
+share/doc/xsok/cyberbox.doc
+share/doc/xsok/xsok.tex
+@dirrm lib/X11/xsok
+@dirrm share/doc/xsok