diff options
author | garbled <garbled@pkgsrc.org> | 1998-09-13 22:31:32 +0000 |
---|---|---|
committer | garbled <garbled@pkgsrc.org> | 1998-09-13 22:31:32 +0000 |
commit | 512cf1aa71e67757e1d626104bb3c5ab7cdc35c5 (patch) | |
tree | 611473df92ad00bab11d042f240170a97d55fee8 /games/jetpack | |
parent | 7b367e46dcd39165a9402b872801096445f5b185 (diff) | |
download | pkgsrc-512cf1aa71e67757e1d626104bb3c5ab7cdc35c5.tar.gz |
/var/games for scores, and fix a bug in scorefile handling.
Diffstat (limited to 'games/jetpack')
-rw-r--r-- | games/jetpack/Makefile | 5 | ||||
-rw-r--r-- | games/jetpack/patches/patch-ac | 26 | ||||
-rw-r--r-- | games/jetpack/pkg/PLIST | 3 |
3 files changed, 22 insertions, 12 deletions
diff --git a/games/jetpack/Makefile b/games/jetpack/Makefile index 54768fcb482..4f72a90cc66 100644 --- a/games/jetpack/Makefile +++ b/games/jetpack/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1 1998/08/23 11:24:52 garbled Exp $ +# $NetBSD: Makefile,v 1.2 1998/09/13 22:31:32 garbled Exp $ # $FreeBSD: Makefile,v 1.16 1997/01/03 09:36:43 obrien Exp $ # @@ -17,6 +17,9 @@ post-install: @chown bin:games ${PREFIX}/bin/jetpack @chown bin:games ${PREFIX}/share/jetpack @chmod 2755 ${PREFIX}/bin/jetpack + @cat /dev/null >>/var/games/jetpack.scores + @chown bin:games /var/games/jetpack.scores + @chmod 0664 /var/games/jetpack.scores @chmod 0775 ${PREFIX}/share/jetpack ${INSTALL_MAN} ${WRKSRC}/jetpack.man ${PREFIX}/man/man6/jetpack.6 diff --git a/games/jetpack/patches/patch-ac b/games/jetpack/patches/patch-ac index 6778a35e681..974f0731ad5 100644 --- a/games/jetpack/patches/patch-ac +++ b/games/jetpack/patches/patch-ac @@ -1,7 +1,7 @@ -$NetBSD: patch-ac,v 1.1 1998/08/23 11:24:53 garbled Exp $ +$NetBSD: patch-ac,v 1.2 1998/09/13 22:31:33 garbled Exp $ --- Imakefile.orig Sun Mar 29 12:41:25 1992 -+++ Imakefile Sun Aug 23 03:31:04 1998 -@@ -1,5 +1,5 @@ ++++ Imakefile Sun Sep 13 15:08:51 1998 +@@ -1,54 +1,53 @@ - SRCS = bitmap.c bonus.c collision.c demo.c draw.c erase.c events.c\ +SRCS = bitmap.c bonus.c collision.c demo.c draw.c erase.c events.c\ gameover.c initx.c main.c maze.c message.c normal.c quitx.c scores.c\ @@ -9,7 +9,7 @@ $NetBSD: patch-ac,v 1.1 1998/08/23 11:24:53 garbled Exp $ - OBJS = bitmap.o bonus.o collision.o demo.o draw.o erase.o events.o\ +OBJS = bitmap.o bonus.o collision.o demo.o draw.o erase.o events.o\ gameover.o initx.o main.o maze.o message.o normal.o quitx.o scores.o\ -@@ -7,5 +7,8 @@ + setinmaze.o setup.o special.o time.o update.o windowx.o - PROGRAMS = jetpack +PROGRAMS = jetpack @@ -20,7 +20,7 @@ $NetBSD: patch-ac,v 1.1 1998/08/23 11:24:53 garbled Exp $ +MANDIR = $(PREFIX)/man/man6 +MANSUFFIX = 6 -@@ -13,16 +16,14 @@ + # These defines override the template defaults. Trash em if you want to # use the template locations - USRLIBDIR = $(DESTDIR)/lib/jetpack - BINDIR = $(DESTDIR)/bin @@ -45,20 +45,28 @@ $NetBSD: patch-ac,v 1.1 1998/08/23 11:24:53 garbled Exp $ - INSTDATFLAGS = -m 0600 +INSTDATFLAGS = -m 0644 -@@ -32,3 +33,4 @@ + # These defines are needed by jetpack. Delete the -DBLIT if you don't want + # the game to do all the drawing to an offscreen pixmap. (This is good for + # machines that don't have hardware blitting -- if you have an xterm or a # graphics workhorse, leave it in, there will be no flicker) - DEFINES = -DBLIT -DSCOREPATH=\"$(SCOREFILE)\" -DLEVELPATH=\"$(LEVELFILE)\" +# DEFINES = -DBLIT -DSCOREPATH=\"$(SCOREFILE)\" -DLEVELPATH=\"$(LEVELFILE)\" +DEFINES = -DSCOREPATH=\"$(SCOREFILE)\" -DLEVELPATH=\"$(LEVELFILE)\" -@@ -39,4 +41,4 @@ + # The score file can be any name you like, just make sure the directory + # it's supposed to reside in exists, or jetpack will start creating score + # files in the directories it is run from. Same for the level files, only + # the filename you give here is only a prefix -- the complete filename has # the level number appended to it. - SCOREFILE = $(USRLIBDIR)/jetpack.scores - LEVELFILE = $(USRLIBDIR)/jetpack.lev -+SCOREFILE = $(LIBDIR)/jetpack.scores ++SCOREFILE = /var/games/jetpack.scores +LEVELFILE = $(LIBDIR)/jetpack.lev -@@ -47,8 +49,5 @@ + ComplexProgramTarget(jetpack) + + DependTarget() + DependDependency() -InstallNonExec(levels/000,$(LEVELFILE)000) +install:: diff --git a/games/jetpack/pkg/PLIST b/games/jetpack/pkg/PLIST index d146cab80e8..ca9dc101e0c 100644 --- a/games/jetpack/pkg/PLIST +++ b/games/jetpack/pkg/PLIST @@ -1,6 +1,5 @@ -@comment $NetBSD: PLIST,v 1.1 1998/08/23 11:24:55 garbled Exp $ +@comment $NetBSD: PLIST,v 1.2 1998/09/13 22:31:33 garbled Exp $ bin/jetpack man/man6/jetpack.6 share/jetpack/jetpack.lev000 -@unexec rm -f %D/share/jetpack/jetpack.scores @dirrm share/jetpack |