before you run it again. Same with the Makefile.
Most important change is in dgamelaunch.c
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@271
db0b04b0-f4d1-0310-9a6d-
de3e77497b0e
EXTRA_SRCS = nethackstub.c
OBJS = $(SRCS:.c=.o)
WALL_OBJS = y.tab.o lex.yy.o dgl-common.o dgl-wall.o strlcat.o strlcpy.o
-LIBS = -lcurses -lcrypt $(LUTIL) -ll
+LIBS = -lcurses $(LUTIL) -ll
all: $(NAME) dgl-wall
%{
+#include <sys/types.h>
+
#include <grp.h>
#include <pwd.h>
#include <stdlib.h>
/* ************************************************************* */
/* program stuff */
-
#include <sys/types.h>
#include <sys/time.h>
#include <sys/wait.h>
#include <curses.h>
#ifndef __FreeBSD__
-# include <crypt.h>
+# ifdef __APPLE__
+# include <unistd.h>
+# else
+# include <crypt.h>
+# endif
#else
# include <libutil.h>
#endif
+
+
#ifdef __linux__
# include <pty.h>
#endif
-#ifndef ARRAY_SIZE
+#ifndef ARRAY_SIZEK
# define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))
#endif
# (leave blank to skip)
compress_bin="gzip"
# nethack binary to copy (leave blank to skip)
-nethack_bin="/usr/lib/games/nethack/nethack-console"
+nethack_bin="/opt/local/bin/nethack"
# fixed data to copy (leave blank to skip)
-playground_fixed="/usr/lib/games/nethack"
+playground_fixed="/opt/local/share/nethackdir/"
# variable data to create (leave blank to skip) (may be equal to previous)
-playground_var="/var/games/nethack"
+playground_var=""
# termcap/terminfo (copied recursively) (leave blank to skip)
termdata="/usr/share/terminfo"