ports/net-im/toxic/files/patch-Makefile
Andriy Voskoboinyk 5d4f8493bc net-im/toxic: drop unused dependencies, unbreak PYTHON option
- Remove security/libsodium and audio/opus dependencies;
the port does not reference nor links against them.
- Allow to use ncurses from base (if possible).
- Patch python3 detection to use proper pkgconfig/python3-config and
bin/python3 paths.
- Move USES upper (portlint).
- Bump PORTREVISION.

PR:		239215
Approved by:	portmgr (blanket(s): dependencies, build fix(es))
MFH:		2019Q3
2019-07-16 06:57:13 +00:00

13 lines
348 B
Text

--- Makefile.orig 2019-07-14 18:05:38 UTC
+++ Makefile
@@ -23,6 +23,10 @@ UNAME_S = $(shell uname -s)
ifeq ($(UNAME_S), Linux)
LDFLAGS += -ldl -lrt
endif
+ifeq ($(UNAME_S), FreeBSD)
+LIBS := $(filter-out ncursesw, $(LIBS))
+LDFLAGS += -lncursesw
+endif
ifeq ($(UNAME_S), OpenBSD)
LIBS := $(filter-out ncursesw, $(LIBS))
LDFLAGS += -lncursesw