aboutsummaryrefslogtreecommitdiffstats
path: root/games/greed
diff options
context:
space:
mode:
Diffstat (limited to 'games/greed')
-rw-r--r--games/greed/Makefile23
-rw-r--r--games/greed/distinfo1
-rw-r--r--games/greed/files/patch-Makefile18
-rw-r--r--games/greed/pkg-comment1
-rw-r--r--games/greed/pkg-descr7
-rw-r--r--games/greed/pkg-install9
-rw-r--r--games/greed/pkg-plist1
7 files changed, 60 insertions, 0 deletions
diff --git a/games/greed/Makefile b/games/greed/Makefile
new file mode 100644
index 000000000000..c2bbf76842f1
--- /dev/null
+++ b/games/greed/Makefile
@@ -0,0 +1,23 @@
+# New ports collection makefile for: greed
+# Date created: Apr 2, 2001
+# Whom: Mark Pulford Ğmark@kyne.com.au>
+#
+# $FreeBSD$
+#
+
+PORTNAME= greed
+PORTVERSION= 3.3
+CATEGORIES= games
+MASTER_SITES= http://www.tuxedo.org/~esr/greed/
+
+MAINTAINER= mark@kyne.com.au
+
+ALL_TARGET= greed
+MAN6= greed.6
+
+do-install:
+ ${INSTALL_PROGRAM} -m 2555 -o root -g games ${WRKSRC}/greed ${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKSRC}/greed.6 ${PREFIX}/man/man6
+ ${SH} pkg-install ${PKGNAME} POST-INSTALL
+
+.include <bsd.port.mk>
diff --git a/games/greed/distinfo b/games/greed/distinfo
new file mode 100644
index 000000000000..e90541c8b713
--- /dev/null
+++ b/games/greed/distinfo
@@ -0,0 +1 @@
+MD5 (greed-3.3.tar.gz) = 63d2afd398443caf31777b0356a00f17
diff --git a/games/greed/files/patch-Makefile b/games/greed/files/patch-Makefile
new file mode 100644
index 000000000000..098a193371b1
--- /dev/null
+++ b/games/greed/files/patch-Makefile
@@ -0,0 +1,18 @@
+--- Makefile.orig Mon Apr 2 21:52:50 2001
++++ Makefile Mon Apr 2 21:54:08 2001
+@@ -13,14 +13,12 @@
+
+ # 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=/var/games/greed.hs
+ # Location of game executable
+ BIN=/usr/games
+
+ # Flags for use with the Linux ncurses package (recommended)
+-CFLAGS = -O -s -DNOTBSD
+ TERMLIB = -lncurses
+-CC = gcc
+
+ # Flags for use with stock curses
+ # CFLAGS = -O -s
diff --git a/games/greed/pkg-comment b/games/greed/pkg-comment
new file mode 100644
index 000000000000..cdafadf4b1d3
--- /dev/null
+++ b/games/greed/pkg-comment
@@ -0,0 +1 @@
+A text puzzle game with the aim of clearing the game field
diff --git a/games/greed/pkg-descr b/games/greed/pkg-descr
new file mode 100644
index 000000000000..39079240d5b2
--- /dev/null
+++ b/games/greed/pkg-descr
@@ -0,0 +1,7 @@
+Greed is a unique text puzzle game where the object is to move around
+the game field clearing the most numbers.
+
+WWW: http://www.tuxedo.org/~esr/software.html
+
+- Mark Pulford
+mark@kyne.com.au
diff --git a/games/greed/pkg-install b/games/greed/pkg-install
new file mode 100644
index 000000000000..d891db4686b7
--- /dev/null
+++ b/games/greed/pkg-install
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+FILE="/var/games/greed.hs"
+[ "$2" != "POST-INSTALL" -o -f "$FILE" ] && exit 0
+
+echo "===> Creating initial high score file $FILE"
+touch $FILE
+chown root.games $FILE
+chmod 664 $FILE
diff --git a/games/greed/pkg-plist b/games/greed/pkg-plist
new file mode 100644
index 000000000000..0a9307f6c7e5
--- /dev/null
+++ b/games/greed/pkg-plist
@@ -0,0 +1 @@
+bin/greed