1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-04 11:23:46 +00:00
freebsd-ports/misc/estic/files/patch-estic-freebsd-x.mak
John Marino a60063d21d misc/estic: document ncurses requirement (USES+=ncurses)
Also link with libncurses, not libtermcap

approved by:	infrastructure blanket
2016-02-03 00:38:48 +00:00

61 lines
1.5 KiB
Makefile

--- estic/make/freebsd-x.mak.orig 1997-01-31 02:57:24 UTC
+++ estic/make/freebsd-x.mak
@@ -27,12 +27,12 @@ AS = gas
AR = ar
LD = ld
ZIP = zip
-CC = g++
+CC?= g++
LIB = ../spunk/spunk.a
INCDIR = ../spunk
-CFLAGS = -DFREEBSD -g -Wall -I$(INCDIR) -x c++ -L /usr/X11R6/lib -fno-implicit-templates -DEXPLICIT_TEMPLATES
+CFLAGS += -DFREEBSD -g -Wall -I$(INCDIR) -x c++ -L $(LOCALBASE)/lib -fno-implicit-templates -DEXPLICIT_TEMPLATES
# ------------------------------------------------------------------------------
@@ -71,10 +71,10 @@ OBJS = callwin.o \
icintcon.o \
iclog.o \
icmsgwin.o \
- icprefix.o \
icshort.o \
icver.o \
- istecmsg.o
+ istecmsg.o \
+ ../areacode/areacode.o
# ------------------------------------------------------------------------------
#
@@ -82,7 +82,7 @@ OBJS = callwin.o \
all: xestic
xestic: $(LIB) $(OBJS)
- $(CC) -o xestic $(OBJS) $(LIB) -ltermcap -lg++ -lX11
+ $(CC) -L $(LOCALBASE)/lib -o xestic $(OBJS) $(LIB) -lncurses -lX11
# ------------------------------------------------------------------------------
@@ -90,7 +90,7 @@ xestic: $(LIB) $(OBJS)
depend dep:
@echo "Creating dependency information"
- $(CC) -I$(INCDIR) -DFREEBSD -MM *.cc > .depend
+ $(CC) $(CFLAGS) -MM *.cc > .depend
# ------------------------------------------------------------------------------
# Create a ZIP file
@@ -114,9 +114,10 @@ bin-dist: estic icload strip
clean:
-rm -f *.bak *~
+ -rm -f *.o
+ -rm -f xestic
zap: clean
- -rm -f *.o
-rm -f .depend