Modify the upstream makefile to put the -lncursesw flag into a variable

which we can override from the make command line, this allows to switch which
lib we want to link to depending on what is provided in base
This commit is contained in:
Baptiste Daroussin 2020-01-02 09:08:22 +00:00
parent dee8f7a18a
commit 02db6ba902
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=521810
2 changed files with 18 additions and 1 deletions

View File

@ -13,7 +13,7 @@ COMMENT= High-tech ttyrec player with improvements over ttyplay
USES= ncurses perl5 shebangfix
ALL_TARGET= ${PORTNAME}
MAKE_ARGS= LFLAGS="${LDFLAGS}"
MAKE_ARGS= LFLAGS="${LDFLAGS}" NCURSES_LIB=-l${NCURSES_IMPL}
PLIST_FILES= bin/ipbt bin/ttygrep bin/ttydump man/man1/ipbt.1.gz
SHEBANG_FILES= sbcsgen.pl Makefile ttygrep ttydump

View File

@ -0,0 +1,17 @@
--- Makefile.orig 2020-01-02 09:04:45 UTC
+++ Makefile
@@ -1,3 +1,5 @@
+NCURSES_LIB= -lncursesw
+
.c.o:
$(CC) $(CFLAGS) $(XFLAGS) -c $*.c
@@ -7,7 +9,7 @@ IPBT = be_none.o fromucs.o ipbt.o ldiscucs.o localenc.
wcwidth.o xenc.o
ipbt: $(IPBT)
- $(CC) $(LFLAGS) -o ipbt $(IPBT) -lm -lncursesw
+ $(CC) $(LFLAGS) -o ipbt $(IPBT) -lm $(NCURSES_LIB)
be_none.o: be_none.c putty.h puttyps.h unix.h charset.h network.h misc.h \
puttymem.h