summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorwiz <wiz>2007-02-24 21:06:00 +0000
committerwiz <wiz>2007-02-24 21:06:00 +0000
commit836ca53912842c1697fb555a6bdc969b47018253 (patch)
tree7714f302422be1cc8931f68ddb976cc5ac318eaf /games
parent8e2d7b2456e57488de7db04324d88372331ee781 (diff)
downloadpkgsrc-836ca53912842c1697fb555a6bdc969b47018253.tar.gz
Initial import of greed-3.4:
The strategy game of Greed. Try to eat as much as possible of the board before munching yourself into a corner.
Diffstat (limited to 'games')
-rw-r--r--games/greed/DESCR2
-rw-r--r--games/greed/Makefile15
-rw-r--r--games/greed/PLIST3
-rw-r--r--games/greed/distinfo7
-rw-r--r--games/greed/patches/patch-aa21
-rw-r--r--games/greed/patches/patch-ab24
6 files changed, 72 insertions, 0 deletions
diff --git a/games/greed/DESCR b/games/greed/DESCR
new file mode 100644
index 00000000000..babe456429f
--- /dev/null
+++ b/games/greed/DESCR
@@ -0,0 +1,2 @@
+The strategy game of Greed. Try to eat as much as possible of the
+board before munching yourself into a corner.
diff --git a/games/greed/Makefile b/games/greed/Makefile
new file mode 100644
index 00000000000..400b2d73dd4
--- /dev/null
+++ b/games/greed/Makefile
@@ -0,0 +1,15 @@
+# $NetBSD: Makefile,v 1.1.1.1 2007/02/24 21:06:00 wiz Exp $
+#
+
+DISTNAME= greed-3.4
+CATEGORIES= games
+MASTER_SITES= http://www.catb.org/~esr/greed/
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://www.catb.org/~esr/greed/
+COMMENT= Strategy game: eat as much as possible
+
+BUILD_TARGET= greed
+
+.include "../../devel/ncurses/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/games/greed/PLIST b/games/greed/PLIST
new file mode 100644
index 00000000000..cbda18ba1fb
--- /dev/null
+++ b/games/greed/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2007/02/24 21:06:00 wiz Exp $
+bin/greed
+man/man6/greed.6
diff --git a/games/greed/distinfo b/games/greed/distinfo
new file mode 100644
index 00000000000..33f3aafb613
--- /dev/null
+++ b/games/greed/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1.1.1 2007/02/24 21:06:00 wiz Exp $
+
+SHA1 (greed-3.4.tar.gz) = d70bd592378531d6726dfe00d3627e13b9dd9cce
+RMD160 (greed-3.4.tar.gz) = 13c432c030d333d0b6722263067dfab2fb2cf26e
+Size (greed-3.4.tar.gz) = 11463 bytes
+SHA1 (patch-aa) = b86f3a05d45c5c4c9392a9255f6bbd38caa9f8b3
+SHA1 (patch-ab) = 66c1a503818f5852432079dd45528d90ff2d23a1
diff --git a/games/greed/patches/patch-aa b/games/greed/patches/patch-aa
new file mode 100644
index 00000000000..c4a9086f115
--- /dev/null
+++ b/games/greed/patches/patch-aa
@@ -0,0 +1,21 @@
+$NetBSD: patch-aa,v 1.1.1.1 2007/02/24 21:06:00 wiz Exp $
+
+--- Makefile.orig Wed Jul 31 00:04:21 2002
++++ Makefile
+@@ -13,12 +13,13 @@ SYSDEF=NOTBSD
+
+ # Prepend "c:" (or whatever drive you use) to the following paths for MSDOS
+ # Location of high score file
+-SFILE=/usr/games/lib/greed.hs
++SFILE=${PREFIX}/share/games/greed.hs
+ # Location of game executable
+-BIN=/usr/games
++BIN=${PREFIX}/bin
+
+ # Flags for use with the Linux ncurses package (recommended)
+-CFLAGS = -O -s -DNOTBSD
++#CFLAGS = -O -s -DNOTBSD
++CFLAGS+= -DNOTBSD
+ TERMLIB = -lncurses
+ CC = gcc
+
diff --git a/games/greed/patches/patch-ab b/games/greed/patches/patch-ab
new file mode 100644
index 00000000000..3ce4db9c691
--- /dev/null
+++ b/games/greed/patches/patch-ab
@@ -0,0 +1,24 @@
+$NetBSD: patch-ab,v 1.1.1.1 2007/02/24 21:06:00 wiz Exp $
+
+--- greed.c.orig 2002-07-30 22:03:43.000000000 +0000
++++ greed.c
+@@ -68,8 +68,10 @@ static char *version = "Greed v" RELEASE
+ #include <sys/types.h>
+
+ #include <io.h>
+-#include <stdlib.h>
+ #endif
++#include <stdlib.h>
++#include <string.h>
++#include <time.h>
+
+ #ifdef NOTBSD
+ #ifndef crmode
+@@ -200,7 +202,6 @@ int argc;
+ char *argv[];
+ {
+ register val = 1;
+- extern long time();
+ int attribs[9];
+ #ifdef A_COLOR
+ char *colors;