diff options
Diffstat (limited to 'Ports/nethack/patches/0005-Add-hints-for-serenity.patch')
-rw-r--r-- | Ports/nethack/patches/0005-Add-hints-for-serenity.patch | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/Ports/nethack/patches/0005-Add-hints-for-serenity.patch b/Ports/nethack/patches/0005-Add-hints-for-serenity.patch new file mode 100644 index 0000000000..e9d2cba10d --- /dev/null +++ b/Ports/nethack/patches/0005-Add-hints-for-serenity.patch @@ -0,0 +1,73 @@ +From cac4f570dfb4cb392eaa4f6e8b2845a2875cf17e Mon Sep 17 00:00:00 2001 +From: Gunnar Beutner <gbeutner@serenityos.org> +Date: Thu, 15 Apr 2021 15:43:18 +0200 +Subject: [PATCH 5/5] Add hints for serenity + +--- + sys/unix/hints/serenity | 54 +++++++++++++++++++++++++++++++++++++++++ + 1 file changed, 54 insertions(+) + create mode 100644 sys/unix/hints/serenity + +diff --git a/sys/unix/hints/serenity b/sys/unix/hints/serenity +new file mode 100644 +index 0000000..1e0ed46 +--- /dev/null ++++ b/sys/unix/hints/serenity +@@ -0,0 +1,54 @@ ++# ++# NetHack 3.6 linux $NHDT-Date: 1432512814 2015/05/25 00:13:34 $ $NHDT-Branch: master $:$NHDT-Revision: 1.12 $ ++# Copyright (c) Kenneth Lorber, Kensington, Maryland, 2007. ++# NetHack may be freely redistributed. See license for details. ++# ++#-PRE ++# SerenityOS hints file ++# This hints file provides a single-user tty build for SerenityOS ++ ++ ++#PREFIX=/usr ++PREFIX=/usr/local ++HACKDIR=/var/games/nethack ++SHELLDIR = $(SERENITY_BUILD_DIR)/Root/usr/local/bin ++INSTDIR=$(SERENITY_BUILD_DIR)/Root/usr/local/lib/nethack ++VARDIR = $(SERENITY_BUILD_DIR)/Root$(HACKDIR) ++ ++ ++ ++POSTINSTALL=cp -n sys/unix/sysconf $(VARDIR)/sysconf; $(CHOWN) $(GAMEUID) $(VARDIR)/sysconf; $(CHGRP) $(GAMEGRP) $(VARDIR)/sysconf; chmod $(VARFILEPERM) $(VARDIR)/sysconf; ++ ++CFLAGS=-g -O -I$(SERENITY_BUILD_DIR)/Root/usr/local/include/ncurses -I../include -DNOTPARMDECL ++CFLAGS+=-DDLB ++CFLAGS+=-DCOMPRESS=\"/bin/gzip\" -DCOMPRESS_EXTENSION=\".gz\" ++CFLAGS+=-DSYSCF -DSYSCF_FILE=\"$(HACKDIR)/sysconf\" -DSECURE ++CFLAGS+=-DTIMED_DELAY ++CFLAGS+=-DHACKDIR=\"$(HACKDIR)\" ++CFLAGS+=-DDUMPLOG ++CFLAGS+=-DCONFIG_ERROR_SECURE=FALSE ++CFLAGS+=-DCURSES_GRAPHICS ++#CFLAGS+=-DEXTRA_SANITY_CHECKS ++#CFLAGS+=-DEDIT_GETLIN ++#CFLAGS+=-DSCORE_ON_BOTL ++#CFLAGS+=-DMSGHANDLER ++#CFLAGS+=-DTTY_TILES_ESCCODES ++ ++LINK=$(CC) -lregex ++ ++WINSRC = $(WINTTYSRC) $(WINCURSESSRC) ++WINOBJ = $(WINTTYOBJ) $(WINCURSESOBJ) ++WINLIB = $(WINTTYLIB) $(WINCURSESLIB) ++ ++# if TTY_TILES_ESCCODES ++#WINSRC += tile.c ++#WINOBJ += tile.o ++ ++WINTTYLIB=-lncurses -ltinfo ++ ++CHOWN=true ++CHGRP=true ++ ++VARDIRPERM = 0755 ++VARFILEPERM = 0600 ++GAMEPERM = 0755 +-- +2.36.1 + |