pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/games/ninvaders Import ninvaders-0.1.1, a curses space...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/cfb4386334c2
branches:  trunk
changeset: 557099:cfb4386334c2
user:      snj <snj%pkgsrc.org@localhost>
date:      Sat Apr 11 18:00:42 2009 +0000

description:
Import ninvaders-0.1.1, a curses space invaders clone.

diffstat:

 games/ninvaders/DESCR            |   2 ++
 games/ninvaders/Makefile         |  16 ++++++++++++++++
 games/ninvaders/PLIST            |   2 ++
 games/ninvaders/distinfo         |   8 ++++++++
 games/ninvaders/patches/patch-aa |  19 +++++++++++++++++++
 games/ninvaders/patches/patch-ab |  13 +++++++++++++
 games/ninvaders/patches/patch-ac |  12 ++++++++++++
 7 files changed, 72 insertions(+), 0 deletions(-)

diffs (100 lines):

diff -r b3ea12ea4f4d -r cfb4386334c2 games/ninvaders/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/ninvaders/DESCR     Sat Apr 11 18:00:42 2009 +0000
@@ -0,0 +1,2 @@
+Ever wanted to play space invaders when you can't find a GUI?
+Now you can!
diff -r b3ea12ea4f4d -r cfb4386334c2 games/ninvaders/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/ninvaders/Makefile  Sat Apr 11 18:00:42 2009 +0000
@@ -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@localhost
+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 -r b3ea12ea4f4d -r cfb4386334c2 games/ninvaders/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/ninvaders/PLIST     Sat Apr 11 18:00:42 2009 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2009/04/11 18:00:42 snj Exp $
+bin/ninvaders
diff -r b3ea12ea4f4d -r cfb4386334c2 games/ninvaders/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/ninvaders/distinfo  Sat Apr 11 18:00:42 2009 +0000
@@ -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 -r b3ea12ea4f4d -r cfb4386334c2 games/ninvaders/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/ninvaders/patches/patch-aa  Sat Apr 11 18:00:42 2009 +0000
@@ -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 -r b3ea12ea4f4d -r cfb4386334c2 games/ninvaders/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/ninvaders/patches/patch-ab  Sat Apr 11 18:00:42 2009 +0000
@@ -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 -r b3ea12ea4f4d -r cfb4386334c2 games/ninvaders/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/ninvaders/patches/patch-ac  Sat Apr 11 18:00:42 2009 +0000
@@ -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



Home | Main Index | Thread Index | Old Index