require 'formula' # Nethack the way God intended it to be played: from a terminal. # This build script was created referencing: # * http://nethack.wikia.com/wiki/Compiling#On_Mac_OS_X # * http://nethack.wikia.com/wiki/Pkgsrc#patch-ac_.28system.h.29 # and copious hacking until things compiled. # # The patch applied incorporates the patch-ac above, the OS X # instructions from the Wiki, and whatever else needed to be # done. class Nethack diff --git a/sys/unix/Makefile.src b/sys/unix/Makefile.src index 29ad99a..7842af2 100644 --- a/sys/unix/Makefile.src +++ b/sys/unix/Makefile.src @@ -151,8 +151,8 @@ GNOMEINC=-I/usr/lib/glib/include -I/usr/lib/gnome-libs/include -I../win/gnome # flags for debugging: # CFLAGS = -g -I../include -CFLAGS = -O -I../include -LFLAGS = +#CFLAGS = -O -I../include +#LFLAGS = # The Qt and Be window systems are written in C++, while the rest of # NetHack is standard C. If using Qt, uncomment the LINK line here to get @@ -230,8 +230,8 @@ WINOBJ = $(WINTTYOBJ) # WINTTYLIB = -ltermcap # WINTTYLIB = -lcurses # WINTTYLIB = -lcurses16 -# WINTTYLIB = -lncurses -WINTTYLIB = -ltermlib +WINTTYLIB = -lncurses +#WINTTYLIB = -ltermlib # # libraries for X11 # If USE_XPM is defined in config.h, you will also need -lXpm here. diff --git a/win/tty/termcap.c b/win/tty/termcap.c index 706e203..dadc9a9 100644 --- a/win/tty/termcap.c +++ b/win/tty/termcap.c @@ -835,7 +835,7 @@ cl_eos() /* free after Robert Viduya */ #include -#ifndef LINUX +#if !defined(LINUX) && !defined(__APPLE__) extern char *tparm(); #endif