pkgsrc-WIP-changes archive

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

Import ztrack-1.0 as wip/ztrack.



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Thu Jul 28 11:07:28 2016 +0200
Changeset:	9eb3893b4c1a6c9beccf590eb610be99cf61dbe0

Added Files:
	ztrack/DESCR
	ztrack/Makefile
	ztrack/PLIST
	ztrack/distinfo
	ztrack/patches/patch-Makefile

Log Message:
Import ztrack-1.0 as wip/ztrack.

Ztrack is a simple curses-based pseudo-3D driving game.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=9eb3893b4c1a6c9beccf590eb610be99cf61dbe0

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 ztrack/DESCR                  |  1 +
 ztrack/Makefile               | 25 +++++++++++++++++++++++++
 ztrack/PLIST                  |  3 +++
 ztrack/distinfo               |  7 +++++++
 ztrack/patches/patch-Makefile | 27 +++++++++++++++++++++++++++
 5 files changed, 63 insertions(+)

diffs:
diff --git a/ztrack/DESCR b/ztrack/DESCR
new file mode 100644
index 0000000..8e0c7a3
--- /dev/null
+++ b/ztrack/DESCR
@@ -0,0 +1 @@
+Ztrack is a simple curses-based pseudo-3D driving game.
diff --git a/ztrack/Makefile b/ztrack/Makefile
new file mode 100644
index 0000000..13c0ab4
--- /dev/null
+++ b/ztrack/Makefile
@@ -0,0 +1,25 @@
+# $NetBSD$
+
+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}/ztrack
+
+MAKE_FLAGS+=	CC=${CC:Q}
+MAKE_FLAGS+=	CFLAGS="-DHAVE_RANDOM \
+			-I${BUILDLINK_PREFIX.curses}/${BUILDLINK_INCDIRS.curses}"
+MAKE_FLAGS+=	LIBS="-lcurses \
+			-L${BUILDLINK_PREFIX.curses}/${BUILDLINK_LIBDIRS.curses} \
+			${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.curses}/${BUILDLINK_LIBDIRS.curses}"
+MAKE_FLAGS+=	BINDIR=${PREFIX}/bin
+MAKE_FLAGS+=	MANDIR=${PREFIX}/${PKGMANDIR}/man6
+
+.include "../../mk/curses.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/ztrack/PLIST b/ztrack/PLIST
new file mode 100644
index 0000000..799624a
--- /dev/null
+++ b/ztrack/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD$
+bin/ztrack
+man/man6/ztrack.6
diff --git a/ztrack/distinfo b/ztrack/distinfo
new file mode 100644
index 0000000..87fb2fe
--- /dev/null
+++ b/ztrack/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+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) = 7c4b61351c77708c5965c50218c0b1ad1fe7ccbf
diff --git a/ztrack/patches/patch-Makefile b/ztrack/patches/patch-Makefile
new file mode 100644
index 0000000..98c5249
--- /dev/null
+++ b/ztrack/patches/patch-Makefile
@@ -0,0 +1,27 @@
+$NetBSD$
+
+Adapt for pkgsrc
+
+--- Makefile.orig	1996-09-30 03:34:20.000000000 +0000
++++ Makefile
+@@ -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
+ 
+@@ -34,8 +35,10 @@ ztrack: $(OBJS)
+ 	$(CC) $(CFLAGS) -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 511 ztrack $(DESTDIR)$(BINDIR)
++	install -d $(DESTDIR)$(MANDIR)
++	install -m 444 ztrack.6 $(DESTDIR)$(MANDIR)
+ 
+ clean:
+ 	$(RM) *.o *~ ztrack


Home | Main Index | Thread Index | Old Index