summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron>1998-07-31 08:03:09 +0000
committertron <tron>1998-07-31 08:03:09 +0000
commitdae538439f82767d1e1a310dbc499f4f67177a11 (patch)
tree30d733fdb1cfc49770e2cbd3d461d68a59cd02b6
parent6cba121693023474bd3db3fcb94936d0c96bb667 (diff)
downloadpkgsrc-dae538439f82767d1e1a310dbc499f4f67177a11.tar.gz
New "xevil" package created by Tim Rightnour:
violent game of killing, contains profanity.
-rw-r--r--games/xevil/Makefile22
-rw-r--r--games/xevil/files/md51
-rw-r--r--games/xevil/patches/patch-aa55
-rw-r--r--games/xevil/patches/patch-ab7
-rw-r--r--games/xevil/patches/patch-ac17
-rw-r--r--games/xevil/pkg/COMMENT1
-rw-r--r--games/xevil/pkg/DESCR5
-rw-r--r--games/xevil/pkg/PLIST3
8 files changed, 111 insertions, 0 deletions
diff --git a/games/xevil/Makefile b/games/xevil/Makefile
new file mode 100644
index 00000000000..30938507368
--- /dev/null
+++ b/games/xevil/Makefile
@@ -0,0 +1,22 @@
+# $NetBSD: Makefile,v 1.1 1998/07/31 08:03:09 tron Exp $
+
+DISTNAME= xevil1.5.1e
+PKGNAME= xevil-1.5.1e
+CATEGORIES= games x11
+MASTER_SITES= ftp://ftp.xevil.com/xevil1.5.1e/
+EXTRACT_SUFX= .tar.Z
+
+MAINTAINER= root@garbled.net
+
+NO_WRKSUBDIR= yes
+MAKE_ENV= HOSTTYPE="netbsd" \
+ INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
+ INSTALL_MAN="${INSTALL_MAN}"
+
+USE_X11= yes
+
+.include "../../mk/bsd.pkg.mk"
+.if (${OBJECT_FMT} == "ELF")
+RPATH= -Wl,-R,${PREFIX}/lib
+.endif
+MAKE_ENV+= RPATH=${RPATH}
diff --git a/games/xevil/files/md5 b/games/xevil/files/md5
new file mode 100644
index 00000000000..ee75827308a
--- /dev/null
+++ b/games/xevil/files/md5
@@ -0,0 +1 @@
+MD5 (xevil1.5.1e.tar.Z) = dc3a32f6c88a3348d190b853bec70fcf
diff --git a/games/xevil/patches/patch-aa b/games/xevil/patches/patch-aa
new file mode 100644
index 00000000000..57c8513b4d9
--- /dev/null
+++ b/games/xevil/patches/patch-aa
@@ -0,0 +1,55 @@
+--- Makefile.orig Tue Oct 1 19:50:59 1996
++++ Makefile Fri Jul 31 09:49:41 1998
+@@ -8,8 +8,8 @@
+ #### Defines that are applicable to makes on all architectures
+ SHELL = /bin/sh
+ TARGETS = xevil #xshow
+-DEBUG_OPT = -g# #-DPRINT_ERRORS
+-LINK_OPT = #-O
++DEBUG_OPT = -O# #-DPRINT_ERRORS
++LINK_OPT = $(RPATH)#-O
+
+ #SRC_DIR and WORK_DIR are only used for `make workdir`
+ SRC_DIR = /mit/hardts/src/X/xevil1.4.9
+@@ -22,7 +22,7 @@
+ OBJS = physical.o actual.o game.o main.o intel.o locator.o world.o \
+ ui.o coord.o area.o utils.o
+ ARCHITECTURES = athena-sun4 athena-sun5 alpha decmips ds decstation \
+- freebsd hp700 iris4d \
++ freebsd hp700 iris4d netbsd \
+ jsc-sun4 i386-linux rsaix sun4 sun5 vision-sun4
+ STRIP = strip
+
+@@ -33,6 +33,8 @@
+
+ #### Attempt to guesss the host architecture using the HOSTYPE and hostype
+ # variables. Then call self with the architecture name.
++all: default
++
+ default:
+ @if [ $${HOSTTYPE-bob} != bob ] ; then \
+ archit=$$HOSTTYPE ; \
+@@ -50,7 +52,9 @@
+ echo "{$(ARCHITECTURES)}" ; \
+ fi ;
+
+-
++install: xevil
++ ${INSTALL_PROGRAM} xevil ${PREFIX}/bin
++ ${INSTALL_MAN} xevil.6 ${PREFIX}/man/man6
+
+ #### Specific architectures.
+ ## Feel free to modify one of these to accomodate your machine's configuration.
+@@ -100,7 +104,11 @@
+ INCL_DIRS=-I/usr/X11R6/include LIBS_DIRS=-L/usr/X11R6/lib \
+ LIBS="-lX11 -lm" $(TARGETS)
+
+-
++netbsd:
++ @$(MAKE) CC="c++" \
++CFLAGS="-DUSE_RANDOM -DPROTECTED_IS_PUBLIC -DMSEC_PER_CLOCK=8" \
++INCL_DIRS=-I$(PREFIX)/include LIBS_DIRS=-L$(PREFIX)/lib \
++LIBS="-lX11 -lm" $(TARGETS)
+
+ hp700:
+ @$(MAKE) CC="g++" LIBS="-lX11 -lm" INCL_DIRS="" CFLAGS="-DUSE_RANDOM -DRANDOM_NEEDS_PROTOTYPES -DMATH_H_IS_CC -DPROTECTED_IS_PUBLIC" \
diff --git a/games/xevil/patches/patch-ab b/games/xevil/patches/patch-ab
new file mode 100644
index 00000000000..e579b988686
--- /dev/null
+++ b/games/xevil/patches/patch-ab
@@ -0,0 +1,7 @@
+--- actual.C.orig Thu Jul 30 05:18:48 1998
++++ actual.C Thu Jul 30 05:19:19 1998
+@@ -687,3 +687,3 @@
+ {
+- PhysicalContext *list[A_CLASSES_NUM];
++ const PhysicalContext *list[A_CLASSES_NUM];
+ int size;
diff --git a/games/xevil/patches/patch-ac b/games/xevil/patches/patch-ac
new file mode 100644
index 00000000000..162480e4870
--- /dev/null
+++ b/games/xevil/patches/patch-ac
@@ -0,0 +1,17 @@
+--- game.C.orig Thu Jul 30 05:20:22 1998
++++ game.C Thu Jul 30 05:21:16 1998
+@@ -388,3 +388,3 @@
+ int weaponsNum;
+- PhysicalContext *weapons[A_CLASSES_NUM];
++ const PhysicalContext *weapons[A_CLASSES_NUM];
+ weaponsNum = locator->filter_contexts(weapons,NULL,
+@@ -392,3 +392,3 @@
+ int oItemsNum;
+- PhysicalContext *oItems[A_CLASSES_NUM];
++ const PhysicalContext *oItems[A_CLASSES_NUM];
+ oItemsNum = locator->filter_contexts(oItems,NULL,
+@@ -1383,3 +1383,3 @@
+ // Get list of all classes that are potential Human classes.
+- PhysicalContext *list[A_CLASSES_NUM];
++ const PhysicalContext *list[A_CLASSES_NUM];
+ int size = locator.filter_contexts(list,NULL,potential_human_filter);
diff --git a/games/xevil/pkg/COMMENT b/games/xevil/pkg/COMMENT
new file mode 100644
index 00000000000..5e1a2e1a1a1
--- /dev/null
+++ b/games/xevil/pkg/COMMENT
@@ -0,0 +1 @@
+violent game of killing, contains profanity.
diff --git a/games/xevil/pkg/DESCR b/games/xevil/pkg/DESCR
new file mode 100644
index 00000000000..f88ed7ab833
--- /dev/null
+++ b/games/xevil/pkg/DESCR
@@ -0,0 +1,5 @@
+Death, kill, maim, extreme violence. XEvil is a side-view,
+fast-action, kill everything game. Play is against human or computer
+players. XEvil is keyboard controlled with configurable controls. A
+game can be played on one or more X workstations (over the net by
+opening multiple X displays).
diff --git a/games/xevil/pkg/PLIST b/games/xevil/pkg/PLIST
new file mode 100644
index 00000000000..3257c31a0d2
--- /dev/null
+++ b/games/xevil/pkg/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 1998/07/31 08:03:11 tron Exp $
+bin/xevil
+man/man6/xevil.6