1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-26 21:17:40 +00:00
freebsd-ports/games/frotz/files/patch-aa
Matthew Hunt 7d6536eac6 Add -DUSE_UNISTD_H to compile flags to allow this to build on
3.0-CURRENT (where getopt lives).
1998-06-07 22:26:59 +00:00

40 lines
1.0 KiB
Plaintext

--- Makefile.orig Fri Oct 17 16:11:10 1997
+++ Makefile Sun Jun 7 18:26:02 1998
@@ -1,7 +1,7 @@
# Define your c compiler. I recommend gcc if you've got it.
#CC = cc
-CC = gcc
+#CC = gcc
# Define your optimization flags. Most compilers understand -O and -O2,
# Debugging (don't use)
@@ -43,7 +43,8 @@
# have that option.
#
#DEFS = -DUSE_GETOPT_H -DCOLOR_SUPPORT -DEMACS_EDITING
-DEFS =
+DEFS = -DCOLOR_SUPPORT -DEMACS_EDITING -DUSE_NCURSES_H -DUSE_NOTHING \
+ -DUSE_UNISTD_H
# This should point to the location of your curses or ncurses include file
# if it's in a non-standard place.
@@ -57,7 +58,7 @@
#CURSES = -lncurses
#LIB = -L/5usr/lib
LIB =
-CURSES = -lcurses
+CURSES = -lncurses
# Nothing under this line should need to be changed.
@@ -66,7 +67,7 @@
text.o ux_init.o ux_input.o ux_pic.o ux_screen.o ux_sample.o \
ux_text.o variable.o
-CFLAGS = $(OPTS) $(DEFS) $(INCL)
+CFLAGS+= $(DEFS)
frotz: $(OBJECTS)
$(CC) -o frotz $(OBJECTS) $(LIB) $(CURSES)