summaryrefslogtreecommitdiff
path: root/games/dopewars
diff options
context:
space:
mode:
authorgarbled <garbled>1999-07-01 08:27:30 +0000
committergarbled <garbled>1999-07-01 08:27:30 +0000
commit0f3a75766e7297b74c64ceebdff9ae365b53b255 (patch)
tree9d7ad5fb42e84ed81ff255e65ae52273b4360c16 /games/dopewars
parentb035ee303d3c7cfdbd53f92f4ee697f370d4d2f3 (diff)
downloadpkgsrc-0f3a75766e7297b74c64ceebdff9ae365b53b255.tar.gz
New pkg for dopewars-1.4.3
(I used to love this game on the PC) Make a fortune dealing drugs on the streets of New York
Diffstat (limited to 'games/dopewars')
-rw-r--r--games/dopewars/Makefile15
-rw-r--r--games/dopewars/files/md53
-rw-r--r--games/dopewars/patches/patch-aa29
-rw-r--r--games/dopewars/patches/patch-ab12
-rw-r--r--games/dopewars/pkg/COMMENT1
-rw-r--r--games/dopewars/pkg/DESCR6
-rw-r--r--games/dopewars/pkg/PLIST2
7 files changed, 68 insertions, 0 deletions
diff --git a/games/dopewars/Makefile b/games/dopewars/Makefile
new file mode 100644
index 00000000000..244458967d9
--- /dev/null
+++ b/games/dopewars/Makefile
@@ -0,0 +1,15 @@
+# $NetBSD: Makefile,v 1.1.1.1 1999/07/01 08:27:30 garbled Exp $
+
+DISTNAME= dopewars-1.4.3
+CATEGORIES= games
+MASTER_SITES= http://bellatrix.pcl.ox.ac.uk/~ben/dopewars/
+
+MAINTAINER= root@garbled.net
+HOMEPAGE= http://bellatrix.pcl.ox.ac.uk/~ben/dopewars/
+
+DEPENDS+= ncurses-1.9.9g:../../devel/ncurses
+
+ALL_TARGET= dopewars
+LDFLAGS+= -L${LOCALBASE}/lib
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/games/dopewars/files/md5 b/games/dopewars/files/md5
new file mode 100644
index 00000000000..1b2bc7de061
--- /dev/null
+++ b/games/dopewars/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1.1.1 1999/07/01 08:27:30 garbled Exp $
+
+MD5 (dopewars-1.4.3.tar.gz) = 50cff775b6dd7a3831cfefda51f4c8f7
diff --git a/games/dopewars/patches/patch-aa b/games/dopewars/patches/patch-aa
new file mode 100644
index 00000000000..f78dd0da646
--- /dev/null
+++ b/games/dopewars/patches/patch-aa
@@ -0,0 +1,29 @@
+$NetBSD: patch-aa,v 1.1.1.1 1999/07/01 08:27:31 garbled Exp $
+--- Makefile.orig Thu Jul 1 00:07:30 1999
++++ Makefile Thu Jul 1 01:07:42 1999
+@@ -1,8 +1,8 @@
+-CFLAGS = -Wall
++CFLAGS = -Wall -I${LOCALBASE}/include
+ CC = gcc
+ HEADERS = message.h dopewars.h serverside.h clientside.h AIPlayer.h
+ OBJS = message.o dopewars.o serverside.o clientside.o AIPlayer.o
+-LIBS = -lncurses
++LIBS = $(LDFLAGS) -lncurses
+
+ dopewars : $(OBJS)
+ $(CC) $(CFLAGS) -o dopewars $(OBJS) $(LIBS)
+@@ -23,10 +23,10 @@
+ $(CC) $(CFLAGS) -c AIPlayer.c
+
+ install :
+- install -o root -g games -m 2755 dopewars /usr/bin/dopewars
+- touch /var/lib/games/dopewars.sco
+- chown root.games /var/lib/games/dopewars.sco
+- chmod 0660 /var/lib/games/dopewars.sco
++ install -o root -g games -m 2755 dopewars ${PREFIX}/bin/dopewars
++ touch /var/games/dopewars.sco
++ chown root.games /var/games/dopewars.sco
++ chmod 0660 /var/games/dopewars.sco
+
+ clean :
+ rm -f $(OBJS)
diff --git a/games/dopewars/patches/patch-ab b/games/dopewars/patches/patch-ab
new file mode 100644
index 00000000000..235e130defe
--- /dev/null
+++ b/games/dopewars/patches/patch-ab
@@ -0,0 +1,12 @@
+$NetBSD: patch-ab,v 1.1.1.1 1999/07/01 08:27:31 garbled Exp $
+--- dopewars.c.orig Thu Jul 1 01:08:42 1999
++++ dopewars.c Thu Jul 1 01:09:01 1999
+@@ -1866,7 +1866,7 @@
+ char ConfigFile[800],*pt;
+
+ /* First, set hard-coded default values */
+- strcpy(HiScoreFile,"/var/lib/games/dopewars.sco");
++ strcpy(HiScoreFile,"/var/games/dopewars.sco");
+ strcpy(ServerName,"localhost");
+ strcpy(Pager,"more");
+ Location=ResizeStruct(Location,&NumLocation,
diff --git a/games/dopewars/pkg/COMMENT b/games/dopewars/pkg/COMMENT
new file mode 100644
index 00000000000..90b46c39ce8
--- /dev/null
+++ b/games/dopewars/pkg/COMMENT
@@ -0,0 +1 @@
+Make a fortune dealing drugs on the streets of New York
diff --git a/games/dopewars/pkg/DESCR b/games/dopewars/pkg/DESCR
new file mode 100644
index 00000000000..91c555401b5
--- /dev/null
+++ b/games/dopewars/pkg/DESCR
@@ -0,0 +1,6 @@
+dopewars is a UNIX rewrite of a game originally based on "Drug Wars" by
+John E. Dell. The idea of dopewars is to deal in drugs on the streets of
+New York, amassing a huge fortune and paying off the loan shark, while
+avoiding the ever-annoying police. The UNIX rewrite, as well as featuring
+a so-called "antique" mode which closely follows the original, introduces
+new features such as the ability to take part in multi-player games.
diff --git a/games/dopewars/pkg/PLIST b/games/dopewars/pkg/PLIST
new file mode 100644
index 00000000000..b72bd4aac99
--- /dev/null
+++ b/games/dopewars/pkg/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 1999/07/01 08:27:30 garbled Exp $
+bin/dopewars