summaryrefslogtreecommitdiff
path: root/games/xscavenger
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2000-01-08 18:26:00 +0000
committerwiz <wiz@pkgsrc.org>2000-01-08 18:26:00 +0000
commit8e24699a310caf60b7e49420a17ff9efeeeef99c (patch)
tree3a5461953af96cf1b7d2d12ca84b438246289560 /games/xscavenger
parent88c1155a2ae7ff3319da294372cc913be59f29f7 (diff)
downloadpkgsrc-8e24699a310caf60b7e49420a17ff9efeeeef99c.tar.gz
Import of xscavenger-1.4.0, a Loderunner clone with sound for X11
Diffstat (limited to 'games/xscavenger')
-rw-r--r--games/xscavenger/Makefile22
-rw-r--r--games/xscavenger/files/md53
-rw-r--r--games/xscavenger/files/patch-sum4
-rw-r--r--games/xscavenger/patches/patch-aa26
-rw-r--r--games/xscavenger/patches/patch-ab24
-rw-r--r--games/xscavenger/pkg/COMMENT1
-rw-r--r--games/xscavenger/pkg/DEINSTALL25
-rw-r--r--games/xscavenger/pkg/DESCR12
-rw-r--r--games/xscavenger/pkg/PLIST19
9 files changed, 136 insertions, 0 deletions
diff --git a/games/xscavenger/Makefile b/games/xscavenger/Makefile
new file mode 100644
index 00000000000..e265899f625
--- /dev/null
+++ b/games/xscavenger/Makefile
@@ -0,0 +1,22 @@
+# $NetBSD: Makefile,v 1.1.1.1 2000/01/08 18:26:00 wiz Exp $
+#
+
+DISTNAME= xscavenger-140
+PKGNAME= xscavenger-1.4.0
+WRKSRC= ${WRKDIR}/${DISTNAME}/src
+CATEGORIES= games x11
+MASTER_SITES= http://www.xdr.com/dash/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= wiz@netbsd.org
+HOMEPAGE= http://www.xdr.com/dash/scavenger.html
+
+USE_IMAKE= yes
+NO_INSTALL_MANPAGES= yes
+
+post-install:
+ @ ${INSTALL_MAN} ${WRKSRC}/scavenger.6 ${PREFIX}/man/man6/
+ @ ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/scavenger
+ @ ${INSTALL_MAN} ${WRKSRC}/../DOC ${PREFIX}/share/doc/scavenger
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/games/xscavenger/files/md5 b/games/xscavenger/files/md5
new file mode 100644
index 00000000000..e1df8ba63ed
--- /dev/null
+++ b/games/xscavenger/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1.1.1 2000/01/08 18:26:00 wiz Exp $
+
+MD5 (xscavenger-140.tgz) = 10a534953adb66ae57523c6af32af7b8
diff --git a/games/xscavenger/files/patch-sum b/games/xscavenger/files/patch-sum
new file mode 100644
index 00000000000..71beb24d9b7
--- /dev/null
+++ b/games/xscavenger/files/patch-sum
@@ -0,0 +1,4 @@
+$NetBSD: patch-sum,v 1.1.1.1 2000/01/08 18:26:00 wiz Exp $
+
+MD5 (patch-aa) = 77fe24c93ba3dc76e1132cbf88ce2f8c
+MD5 (patch-ab) = 400a0fc5b04f874ca34b67f5aa6e6aa6
diff --git a/games/xscavenger/patches/patch-aa b/games/xscavenger/patches/patch-aa
new file mode 100644
index 00000000000..514c184c0a9
--- /dev/null
+++ b/games/xscavenger/patches/patch-aa
@@ -0,0 +1,26 @@
+$NetBSD: patch-aa,v 1.1.1.1 2000/01/08 18:26:00 wiz Exp $
+
+diff -r -u -b sound.c.orig sound.c
+--- sound.c.orig Thu Jan 6 07:23:56 2000
++++ sound.c Sat Jan 8 17:09:02 2000
+@@ -5,7 +5,13 @@
+ #include <unistd.h>
+ #include <fcntl.h>
+ #include <sys/ioctl.h>
++#ifdef __NetBSD__
++#include <soundcard.h>
++#define SOUNDDEV "/dev/sound"
++#else
+ #include <linux/soundcard.h>
++#define SOUNDDEV "/dev/dsp"
++#endif
+ #include <sys/time.h>
+ #include <signal.h>
+ #include <string.h>
+@@ -14,7 +20,6 @@
+ #include "scav.h"
+ #include "sound.h"
+
+-#define SOUNDDEV "/dev/dsp"
+
+ char dirlist[512];
diff --git a/games/xscavenger/patches/patch-ab b/games/xscavenger/patches/patch-ab
new file mode 100644
index 00000000000..d16dc404d34
--- /dev/null
+++ b/games/xscavenger/patches/patch-ab
@@ -0,0 +1,24 @@
+$NetBSD: patch-ab,v 1.1.1.1 2000/01/08 18:26:00 wiz Exp $
+
+--- Imakefile.orig Thu Jan 6 06:47:22 2000
++++ Imakefile Sat Jan 8 18:10:48 2000
+@@ -1,7 +1,7 @@
+ # set this to the path where data files should be stored. LIBDIR
+ # is automatically defined by imake, usually to /usr/X11R6/lib/X11, so
+ # this should be a good default.
+-LIBNAME = $(LIBDIR)/scavenger
++LIBNAME = ${PREFIX}/share/scavenger
+
+ SRCS = anim.c edit.c scav.c x.c sound.c
+ OBJS = $(SRCS:.c=.o)
+@@ -13,8 +13,8 @@
+ ../data/reddevil.lbm ../data/regularguy.lbm ../data/spiralthing.lbm \
+ ../data/victory.raw
+
+-LOCAL_LIBRARIES = $(XLIB)
++LOCAL_LIBRARIES = $(XLIB) -lossaudio
+ EXTRA_DEFINES = -DLIBNAME=\"$(LIBNAME)\"
+
+-ComplexProgramTarget(scavenger)
++ComplexProgramTargetNoMan(scavenger)
+ InstallMultipleFlags($(LIB_DATA),$(LIBNAME),-m 644)
diff --git a/games/xscavenger/pkg/COMMENT b/games/xscavenger/pkg/COMMENT
new file mode 100644
index 00000000000..735f0038fc8
--- /dev/null
+++ b/games/xscavenger/pkg/COMMENT
@@ -0,0 +1 @@
+Loderunner clone with sound for X11
diff --git a/games/xscavenger/pkg/DEINSTALL b/games/xscavenger/pkg/DEINSTALL
new file mode 100644
index 00000000000..022161f3be7
--- /dev/null
+++ b/games/xscavenger/pkg/DEINSTALL
@@ -0,0 +1,25 @@
+#!/bin/sh
+#
+# $NetBSD: DEINSTALL,v 1.1.1.1 2000/01/08 18:26:00 wiz Exp $
+#
+
+PKGNAME=$1
+
+case $2 in
+DEINSTALL)
+ ;;
+POST-DEINSTALL)
+ cat << EOF
+=============================================================================
+If you won't be using ${PKGNAME} any longer, you may want to remove the
+scores and progress files that were copied to ~/.scavenger/ of every
+user playing it.
+=============================================================================
+EOF
+ ;;
+*)
+ echo "Unexpected argument: $2"
+ exit 1
+ ;;
+esac
+exit 0
diff --git a/games/xscavenger/pkg/DESCR b/games/xscavenger/pkg/DESCR
new file mode 100644
index 00000000000..a79ec2f8907
--- /dev/null
+++ b/games/xscavenger/pkg/DESCR
@@ -0,0 +1,12 @@
+Scavenger is like Lode Runner. You've got to run around gathering objects
+while avoiding enemies. You can dig down through some of the blocks to get
+at buried objects. After you've collected everything, ladders may appear.
+To finish the level you've got to exit through the top of the screen. If
+an enemy falls into a dug brick, he is stunned for a while. If the brick
+fills in with him in it, he is killed, and he will reappear at the top of
+the screen.
+
+This version has a level editor for designing your own levels, and a
+graphics editor for drawing your own artwork.
+
+By David Ashley <dash@xdr.com>, distributed under the GPL.
diff --git a/games/xscavenger/pkg/PLIST b/games/xscavenger/pkg/PLIST
new file mode 100644
index 00000000000..0088f30f4ef
--- /dev/null
+++ b/games/xscavenger/pkg/PLIST
@@ -0,0 +1,19 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2000/01/08 18:26:00 wiz Exp $
+bin/scavenger
+man/man6/scavenger.6
+share/scavenger/badguy.lbm
+share/scavenger/brownblue.lbm
+share/scavenger/death.raw
+share/scavenger/dig.raw
+share/scavenger/fall.raw
+share/scavenger/levels.scl
+share/scavenger/microman.lbm
+share/scavenger/pop.raw
+share/scavenger/redbrick.lbm
+share/scavenger/reddevil.lbm
+share/scavenger/regularguy.lbm
+share/scavenger/spiralthing.lbm
+share/scavenger/victory.raw
+@dirrm share/scavenger
+share/doc/scavenger/DOC
+@dirrm share/doc/scavenger