From 70f7bb07cf5eb9b0209b72e9313c3c21bb3d962b Mon Sep 17 00:00:00 2001 From: wiz Date: Sat, 24 Feb 2007 21:06:00 +0000 Subject: 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. --- games/greed/DESCR | 2 ++ games/greed/Makefile | 15 +++++++++++++++ games/greed/PLIST | 3 +++ games/greed/distinfo | 7 +++++++ games/greed/patches/patch-aa | 21 +++++++++++++++++++++ games/greed/patches/patch-ab | 24 ++++++++++++++++++++++++ 6 files changed, 72 insertions(+) create mode 100644 games/greed/DESCR create mode 100644 games/greed/Makefile create mode 100644 games/greed/PLIST create mode 100644 games/greed/distinfo create mode 100644 games/greed/patches/patch-aa create mode 100644 games/greed/patches/patch-ab (limited to 'games/greed') 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 + + #include +-#include + #endif ++#include ++#include ++#include + + #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; -- cgit v1.2.3