1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00

Fix build when libncursesw will be removed

This commit is contained in:
Baptiste Daroussin 2019-12-27 16:52:47 +00:00
parent 92b6f53ad3
commit 0735393d14
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=521013

View File

@ -0,0 +1,16 @@
--- Makefile.orig 2016-07-08 14:49:08 UTC
+++ Makefile
@@ -5,7 +5,12 @@ RM?= rm
MAN= ${PROG}.1.gz
PROG= dialog4ports
CFLAGS+= -Wall -pedantic
-LDADD+= -lncursesw -lm
+.if exists(/usr/lib/libncursesw.so)
+LDADD+= -lncursesw
+.else
+LDADD+= -lncurses
+.endif
+LDADD+= -lm
PREFIX?= /usr/local
BINDIR= ${PREFIX}/bin
MAN1DIR= ${PREFIX}/man/man1