summaryrefslogtreecommitdiff
path: root/games/ninvaders
diff options
context:
space:
mode:
authorsnj <snj@pkgsrc.org>2009-04-11 18:00:42 +0000
committersnj <snj@pkgsrc.org>2009-04-11 18:00:42 +0000
commitb498936300deded4144eb6a54abf0d5083f13cdb (patch)
tree04e0550147d16cc55c9daab6766070887a471375 /games/ninvaders
parent62ab2d642d4bf3b9674fd6caac1b293c35071f08 (diff)
downloadpkgsrc-b498936300deded4144eb6a54abf0d5083f13cdb.tar.gz
Import ninvaders-0.1.1, a curses space invaders clone.
Diffstat (limited to 'games/ninvaders')
-rw-r--r--games/ninvaders/DESCR2
-rw-r--r--games/ninvaders/Makefile16
-rw-r--r--games/ninvaders/PLIST2
-rw-r--r--games/ninvaders/distinfo8
-rw-r--r--games/ninvaders/patches/patch-aa19
-rw-r--r--games/ninvaders/patches/patch-ab13
-rw-r--r--games/ninvaders/patches/patch-ac12
7 files changed, 72 insertions, 0 deletions
diff --git a/games/ninvaders/DESCR b/games/ninvaders/DESCR
new file mode 100644
index 00000000000..c8fb81ed7ba
--- /dev/null
+++ b/games/ninvaders/DESCR
@@ -0,0 +1,2 @@
+Ever wanted to play space invaders when you can't find a GUI?
+Now you can!
diff --git a/games/ninvaders/Makefile b/games/ninvaders/Makefile
new file mode 100644
index 00000000000..723dfe7833a
--- /dev/null
+++ b/games/ninvaders/Makefile
@@ -0,0 +1,16 @@
+# $NetBSD: Makefile,v 1.1.1.1 2009/04/11 18:00:42 snj Exp $
+
+DISTNAME= ninvaders-0.1.1
+CATEGORIES= games
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ninvaders/}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://ninvaders.sourceforge.net/
+COMMENT= Space invaders, curses style
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+INSTALLATION_DIRS+= bin
+
+.include "../../devel/ncurses/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/games/ninvaders/PLIST b/games/ninvaders/PLIST
new file mode 100644
index 00000000000..e00c0df9d3b
--- /dev/null
+++ b/games/ninvaders/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2009/04/11 18:00:42 snj Exp $
+bin/ninvaders
diff --git a/games/ninvaders/distinfo b/games/ninvaders/distinfo
new file mode 100644
index 00000000000..4684393de66
--- /dev/null
+++ b/games/ninvaders/distinfo
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1.1.1 2009/04/11 18:00:42 snj Exp $
+
+SHA1 (ninvaders-0.1.1.tar.gz) = 5ab825694b108cbfa988377ca216188fa9a76e89
+RMD160 (ninvaders-0.1.1.tar.gz) = 987ead3eb05d2e07ab5e476284df7488858c775a
+Size (ninvaders-0.1.1.tar.gz) = 31275 bytes
+SHA1 (patch-aa) = d27201e0ef5c01ab72eec8902c9ae5a372f1d522
+SHA1 (patch-ab) = 52af53c9d4d88931b5c8e426a271d647ab21fd43
+SHA1 (patch-ac) = 07ebe6e4761f09259f3bac006ffcfd190deef5bb
diff --git a/games/ninvaders/patches/patch-aa b/games/ninvaders/patches/patch-aa
new file mode 100644
index 00000000000..1a40d26c286
--- /dev/null
+++ b/games/ninvaders/patches/patch-aa
@@ -0,0 +1,19 @@
+$NetBSD: patch-aa,v 1.1.1.1 2009/04/11 18:00:42 snj Exp $
+
+--- Makefile.orig 2003-05-08 12:19:50.000000000 -0700
++++ Makefile 2009-04-01 13:22:43.000000000 -0700
+@@ -1,6 +1,4 @@
+-CC=gcc
+-CFLAGS=-O3 -Wall
+-LIBS=-lncurses
++LIBS=-lcurses
+
+ CFILES=globals.c view.c aliens.c ufo.c player.c nInvaders.c
+ HFILES=globals.h view.h aliens.h ufo.h player.h nInvaders.h
+@@ -14,3 +12,6 @@ nInvaders: $(OFILES) $(HFILES)
+ $(CC) -c -I. $(CFLAGS) $(OPTIONS) $<
+ clean:
+ rm -f nInvaders $(OFILES)
++
++install:
++ ${BSD_INSTALL_PROGRAM} nInvaders ${DESTDIR}${PREFIX}/bin/ninvaders
diff --git a/games/ninvaders/patches/patch-ab b/games/ninvaders/patches/patch-ab
new file mode 100644
index 00000000000..3dde69d8643
--- /dev/null
+++ b/games/ninvaders/patches/patch-ab
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1.1.1 2009/04/11 18:00:42 snj Exp $
+
+--- view.h.orig 2009-04-01 13:22:53.000000000 -0700
++++ view.h 2009-04-01 13:23:01.000000000 -0700
+@@ -22,7 +22,7 @@
+ */
+
+
+-#include <ncurses.h>
++#include <curses.h>
+ #include <unistd.h>
+ #include <signal.h>
+
diff --git a/games/ninvaders/patches/patch-ac b/games/ninvaders/patches/patch-ac
new file mode 100644
index 00000000000..102c08bad71
--- /dev/null
+++ b/games/ninvaders/patches/patch-ac
@@ -0,0 +1,12 @@
+$NetBSD: patch-ac,v 1.1.1.1 2009/04/11 18:00:42 snj Exp $
+
+--- view.c.orig 2009-04-01 14:05:49.000000000 -0700
++++ view.c 2009-04-01 14:07:07.000000000 -0700
+@@ -564,6 +564,7 @@ void graphicEngineInit()
+ (void) cbreak(); // <curses.h> do not buffer typed characters, use at once
+ (void) noecho(); // <curses.h> do not echo typed characters
+ start_color(); // <curses.h> use colors
++ curs_set(0);
+ init_pair(RED, COLOR_RED, COLOR_BLACK); // <curses.h> define color-pair
+ init_pair(GREEN, COLOR_GREEN, COLOR_BLACK); // <curses.h> define color-pair
+ init_pair(YELLOW, COLOR_YELLOW, COLOR_BLACK); // <curses.h> define color-pair