mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-01 07:35:02 +03:00
71 lines
2.1 KiB
Diff
71 lines
2.1 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Gunnar Beutner <gbeutner@serenityos.org>
|
|
Date: Thu, 15 Apr 2021 15:43:18 +0200
|
|
Subject: [PATCH] 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
|