From ea67afbbb8152c95830e83c77348b52a81e39ccc Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Wed, 5 May 2010 08:21:51 -0700 Subject: Nethack - moved patch inline Moved patch out of separate GitHub repository into the DATA block. --- Library/Formula/nethack.rb | 146 ++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 145 insertions(+), 1 deletion(-) (limited to 'Library') diff --git a/Library/Formula/nethack.rb b/Library/Formula/nethack.rb index cf15e8850..c66fef079 100644 --- a/Library/Formula/nethack.rb +++ b/Library/Formula/nethack.rb @@ -17,7 +17,7 @@ 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 -- cgit v1.2.3