pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/games/ztrack Import ztrack-1.0 as games/ztrack
details: https://anonhg.NetBSD.org/pkgsrc/rev/090fbb2304c3
branches: trunk
changeset: 350491:090fbb2304c3
user: kamil <kamil%pkgsrc.org@localhost>
date: Thu Jul 28 17:51:20 2016 +0000
description:
Import ztrack-1.0 as games/ztrack
Simple curses-based pseudo-3D driving game
Originally packaged in pkgsrc-wip by:
- myself
and
- <leot>.
diffstat:
games/ztrack/DESCR | 1 +
games/ztrack/Makefile | 25 +++++++++++++++++
games/ztrack/PLIST | 3 ++
games/ztrack/distinfo | 8 +++++
games/ztrack/patches/patch-Makefile | 53 +++++++++++++++++++++++++++++++++++++
games/ztrack/patches/patch-ztrack.c | 21 ++++++++++++++
6 files changed, 111 insertions(+), 0 deletions(-)
diffs (135 lines):
diff -r b1db0a15d181 -r 090fbb2304c3 games/ztrack/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/ztrack/DESCR Thu Jul 28 17:51:20 2016 +0000
@@ -0,0 +1,1 @@
+Ztrack is a simple curses-based pseudo-3D driving game.
diff -r b1db0a15d181 -r 090fbb2304c3 games/ztrack/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/ztrack/Makefile Thu Jul 28 17:51:20 2016 +0000
@@ -0,0 +1,25 @@
+# $NetBSD: Makefile,v 1.1 2016/07/28 17:51:20 kamil Exp $
+
+DISTNAME= ztrack-1.0
+CATEGORIES= games
+MASTER_SITES= ${MASTER_SITE_SUNSITE:=games/arcade/}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+# Nothing better available
+HOMEPAGE= ${MASTER_SITE_SUNSITE:=games/arcade/}
+COMMENT= Simple curses-based pseudo-3D driving game
+LICENSE= public-domain
+
+WRKSRC= ${WRKDIR}/${PKGBASE}
+
+MAKE_FLAGS+= BINDIR=${PREFIX}/bin
+MAKE_FLAGS+= MANDIR=${PREFIX}/${PKGMANDIR}/man6
+
+SUBST_CLASSES+= makefile
+SUBST_STAGE.makefile= pre-configure
+SUBST_MESSAGE.makefile= Link with the proper curses type
+SUBST_FILES.makefile= Makefile
+SUBST_SED.makefile= -e '/LIBS/ s,-lncurses,-l${BUILDLINK_LIBNAME.curses},'
+
+.include "../../mk/curses.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r b1db0a15d181 -r 090fbb2304c3 games/ztrack/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/ztrack/PLIST Thu Jul 28 17:51:20 2016 +0000
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2016/07/28 17:51:20 kamil Exp $
+bin/ztrack
+man/man6/ztrack.6
diff -r b1db0a15d181 -r 090fbb2304c3 games/ztrack/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/ztrack/distinfo Thu Jul 28 17:51:20 2016 +0000
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1 2016/07/28 17:51:20 kamil Exp $
+
+SHA1 (ztrack-1.0.tar.gz) = 1cc31c82d78b87efa18623edf72eaa02859b38f0
+RMD160 (ztrack-1.0.tar.gz) = ff3deaf1a31e048350cb94f1d9fed87e84a99fde
+SHA512 (ztrack-1.0.tar.gz) = 10efc72b593f6068ebf515ebd5be8d4c0451f37e798161dca5addbfcc468b6ee1d2bfc6b92701c6024ae4cb4fd3b1053a7891c2e7a023855aa2821420e6bb62c
+Size (ztrack-1.0.tar.gz) = 10186 bytes
+SHA1 (patch-Makefile) = cb68993430fa3286ebb1c5828c3e5209adf844f9
+SHA1 (patch-ztrack.c) = f47973334a3baa59e8ac675fc43280a6f9bb6881
diff -r b1db0a15d181 -r 090fbb2304c3 games/ztrack/patches/patch-Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/ztrack/patches/patch-Makefile Thu Jul 28 17:51:20 2016 +0000
@@ -0,0 +1,53 @@
+$NetBSD: patch-Makefile,v 1.1 2016/07/28 17:51:20 kamil Exp $
+
+- Accept user defined CC, CFLAGS and LDFLAGS.
+- Add DESTDIR support
+- Fix permissions of installed files
+
+--- Makefile.orig 1996-09-30 03:34:20.000000000 +0000
++++ Makefile
+@@ -2,16 +2,16 @@
+ #
+ # note that you need an ANSI C compiler;
+ # gcc is easiest if you've got it or can get it
+-CC=gcc
++CC?=gcc
+
+ # flags for Linux/gcc, hack as required
+ # remove '-DHAVE_RANDOM' if your libc doesn't have 'random' and 'srandom'.
+ # add '-DNO_COLOUR' if you don't want colour or the colour support
+ # causes problems.
+-CFLAGS=-O2 -Wall -DHAVE_RANDOM -I/usr/include/ncurses #-DDEBUG
++CFLAGS+= -Wall -DHAVE_RANDOM
+
+ # if using ncurses:
+-LIBS=-lncurses
++LIBS=-lcurses
+
+ # bsd-derived is usually:
+ #LIBS=-lcurses -ltermcap
+@@ -20,6 +20,7 @@ LIBS=-lncurses
+ #LIBS=-lcurses -lterminfo
+
+ # change these if needed - they're used by 'make install'
++DESTDIR?=
+ BINDIR=/usr/games
+ MANDIR=/usr/man/man6
+
+@@ -31,11 +32,13 @@ OBJS=ztrack.o
+ all: ztrack
+
+ ztrack: $(OBJS)
+- $(CC) $(CFLAGS) -o ztrack $(OBJS) $(LIBS)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o ztrack $(OBJS) $(LIBS)
+
+ install: ztrack
+- install -s -m 511 ztrack $(BINDIR)
+- install -m 444 ztrack.6 $(MANDIR)
++ install -d $(DESTDIR)$(BINDIR)
++ install -s -m 755 ztrack $(DESTDIR)$(BINDIR)
++ install -d $(DESTDIR)$(MANDIR)
++ install -m 644 ztrack.6 $(DESTDIR)$(MANDIR)
+
+ clean:
+ $(RM) *.o *~ ztrack
diff -r b1db0a15d181 -r 090fbb2304c3 games/ztrack/patches/patch-ztrack.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/ztrack/patches/patch-ztrack.c Thu Jul 28 17:51:20 2016 +0000
@@ -0,0 +1,21 @@
+$NetBSD: patch-ztrack.c,v 1.1 2016/07/28 17:51:20 kamil Exp $
+
+Add explicit braces to avoid ambiguous 'else' (pointed out by -Wall)
+
+--- ztrack.c.orig 1995-12-01 02:34:36.000000000 +0000
++++ ztrack.c
+@@ -553,12 +553,13 @@ int f,l=0,r=0;
+
+ for(f=0;f<MAX_ENEMY;f++)
+ if(enemy[f].active)
+- if(FIX_DOWN(enemy[f].ypos)==0)
++ if(FIX_DOWN(enemy[f].ypos)==0) {
+ if(enemy[f].lane==lane-1)
+ l=1;
+ else
+ if(enemy[f].lane==lane+1)
+ r=1;
++ }
+
+ use_colour(COLOR_YELLOW,A_BOLD);
+
Home |
Main Index |
Thread Index |
Old Index