svn commit: r521810 - in head/misc/ipbt: . files
Baptiste Daroussin
bapt at FreeBSD.org
Thu Jan 2 09:08:23 UTC 2020
Author: bapt
Date: Thu Jan 2 09:08:22 2020
New Revision: 521810
URL: https://svnweb.freebsd.org/changeset/ports/521810
Log:
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
Added:
head/misc/ipbt/files/
head/misc/ipbt/files/patch-Makefile (contents, props changed)
Modified:
head/misc/ipbt/Makefile
Modified: head/misc/ipbt/Makefile
==============================================================================
--- head/misc/ipbt/Makefile Thu Jan 2 09:03:48 2020 (r521809)
+++ head/misc/ipbt/Makefile Thu Jan 2 09:08:22 2020 (r521810)
@@ -13,7 +13,7 @@ COMMENT= High-tech ttyrec player with improvements ove
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
Added: head/misc/ipbt/files/patch-Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/misc/ipbt/files/patch-Makefile Thu Jan 2 09:08:22 2020 (r521810)
@@ -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
More information about the svn-ports-head
mailing list