pkgsrc-WIP-changes archive

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

nethack-curses: first attempt.



Module Name:	pkgsrc-wip
Committed By:	Olaf Seibert <rhialto%falu.nl@localhost>
Pushed By:	rhialto
Date:		Sun Aug 27 18:01:04 2023 +0200
Changeset:	cb7660e705c2de741b878e61b0e7abe1691f470b

Added Files:
	nethack-curses/DESCR
	nethack-curses/MESSAGE
	nethack-curses/Makefile
	nethack-curses/PLIST

Log Message:
nethack-curses: first attempt.

With builtin curses: nethack crashes at the end with
Also it doesn't adjust to resizing the terminal window as advertised.

With ncurses:
it crashes at startup already.
Also there should be a nicer way to make pkgsrc use pkgsrc's own
ncurses...

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

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

diffstat:
 nethack-curses/DESCR    | 10 ++++++++++
 nethack-curses/MESSAGE  |  7 +++++++
 nethack-curses/Makefile | 34 ++++++++++++++++++++++++++++++++++
 nethack-curses/PLIST    |  2 ++
 4 files changed, 53 insertions(+)

diffs:
diff --git a/nethack-curses/DESCR b/nethack-curses/DESCR
new file mode 100644
index 0000000000..d0d8bdcdea
--- /dev/null
+++ b/nethack-curses/DESCR
@@ -0,0 +1,10 @@
+Nethack is a single player, ASCII graphics-based adventure game, similar
+to the lines of Dungeons & Dragons and similar fantasy games. It is
+commonly classified in the larger group of Rogue-like Games, which
+generally are all text-based, solo adventures.
+
+Within the game, your character is after the infamous Wizard of Yendor,
+who has stolen the Amulet of Yendor and plans to use it for his evil
+purposes. You, a young member of your chosen class, have been blessed by
+your people and your god to retrieve the Amulet, and to save the world
+from the Wizard's evil plans.
diff --git a/nethack-curses/MESSAGE b/nethack-curses/MESSAGE
new file mode 100644
index 0000000000..4b7b61bdf1
--- /dev/null
+++ b/nethack-curses/MESSAGE
@@ -0,0 +1,7 @@
+===========================================================================
+$NetBSD$
+
+You can run the curses NetHack by simply typing: "nethack curses".
+It assumes a terminal with a black background.
+
+===========================================================================
diff --git a/nethack-curses/Makefile b/nethack-curses/Makefile
new file mode 100644
index 0000000000..f9f521668c
--- /dev/null
+++ b/nethack-curses/Makefile
@@ -0,0 +1,34 @@
+# $NetBSD$
+#
+
+# builtin curses: crashes at the end with
+# #0  redrawwin (win=0x0) at /usr/src/lib/libcurses/touchwin.c:149
+# Also it doesn't adjust to resizing the terminal window as advertised.
+# ncurses:
+#USE_BUILTIN.curses=	no
+#CURSES_DEFAULT=	ncurses
+# crashes at startup.
+
+.include "../../games/nethack-lib/Makefile.common"
+
+PKGNAME=		nethack-curses-${NETHACK_VERSION}
+
+COMMENT=		The curses based version of NetHack
+
+DEPENDS+=		nethack-lib-${NETHACK_VERSION}{,nb*}:../../games/nethack-lib
+
+BUILD_TARGET=		nethack
+MAKE_ENV+=		GAME=nethack
+MAKE_ENV+=		GTYPE=-curses
+
+INSTALLATION_DIRS+=	bin
+do-install:
+	${RUN}${INSTALL_PROGRAM} ${WRKSRC}/src/nethack ${DESTDIR}${PREFIX}/bin/nethack-curses
+
+DISTINFO_FILE?=		${.CURDIR}/../../games/nethack-lib/distinfo
+PATCHDIR=		${.CURDIR}/../../games/nethack-lib/patches
+
+SPECIAL_PERMS+=		${PREFIX}/bin/nethack-curses			\
+			    ${GAMEPERM}
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/nethack-curses/PLIST b/nethack-curses/PLIST
new file mode 100644
index 0000000000..f8a34786ab
--- /dev/null
+++ b/nethack-curses/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD$
+bin/nethack-curses


Home | Main Index | Thread Index | Old Index