pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/games/ztrack
Module Name: pkgsrc
Committed By: kamil
Date: Thu Jul 28 17:51:20 UTC 2016
Added Files:
pkgsrc/games/ztrack: DESCR Makefile PLIST distinfo
pkgsrc/games/ztrack/patches: patch-Makefile patch-ztrack.c
Log Message:
Import ztrack-1.0 as games/ztrack
Simple curses-based pseudo-3D driving game
Originally packaged in pkgsrc-wip by:
- myself
and
- <leot>.
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/games/ztrack/DESCR pkgsrc/games/ztrack/Makefile \
pkgsrc/games/ztrack/PLIST pkgsrc/games/ztrack/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/games/ztrack/patches/patch-Makefile \
pkgsrc/games/ztrack/patches/patch-ztrack.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: pkgsrc/games/ztrack/DESCR
diff -u /dev/null pkgsrc/games/ztrack/DESCR:1.1
--- /dev/null Thu Jul 28 17:51:20 2016
+++ pkgsrc/games/ztrack/DESCR Thu Jul 28 17:51:20 2016
@@ -0,0 +1 @@
+Ztrack is a simple curses-based pseudo-3D driving game.
Index: pkgsrc/games/ztrack/Makefile
diff -u /dev/null pkgsrc/games/ztrack/Makefile:1.1
--- /dev/null Thu Jul 28 17:51:20 2016
+++ pkgsrc/games/ztrack/Makefile Thu Jul 28 17:51:20 2016
@@ -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"
Index: pkgsrc/games/ztrack/PLIST
diff -u /dev/null pkgsrc/games/ztrack/PLIST:1.1
--- /dev/null Thu Jul 28 17:51:20 2016
+++ pkgsrc/games/ztrack/PLIST Thu Jul 28 17:51:20 2016
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2016/07/28 17:51:20 kamil Exp $
+bin/ztrack
+man/man6/ztrack.6
Index: pkgsrc/games/ztrack/distinfo
diff -u /dev/null pkgsrc/games/ztrack/distinfo:1.1
--- /dev/null Thu Jul 28 17:51:20 2016
+++ pkgsrc/games/ztrack/distinfo Thu Jul 28 17:51:20 2016
@@ -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
Index: pkgsrc/games/ztrack/patches/patch-Makefile
diff -u /dev/null pkgsrc/games/ztrack/patches/patch-Makefile:1.1
--- /dev/null Thu Jul 28 17:51:20 2016
+++ pkgsrc/games/ztrack/patches/patch-Makefile Thu Jul 28 17:51:20 2016
@@ -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
Index: pkgsrc/games/ztrack/patches/patch-ztrack.c
diff -u /dev/null pkgsrc/games/ztrack/patches/patch-ztrack.c:1.1
--- /dev/null Thu Jul 28 17:51:20 2016
+++ pkgsrc/games/ztrack/patches/patch-ztrack.c Thu Jul 28 17:51:20 2016
@@ -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