summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2015-08-07 16:18:11 +0000
committerXin LI <delphij@FreeBSD.org>2015-08-07 16:18:11 +0000
commita4d81d719adde03e4f17ad9d3489133207cf29da (patch)
tree969c8590e445c0c35234d084dc157100864a6c8f
parent71f5cbd03a751cf40d46321917d96d81487d7e3a (diff)
downloadfreebsd-ports-a4d81d719adde03e4f17ad9d3489133207cf29da.zip
Previously, ncurses.mk tests for header instead of the shared library
symlink itself, and this would cause problem for portsnap builder (addressed differently by including the header file). Make the test more consistent with port version of ncurses by checking the shared library instead. (the location is the same on all supported versions of FreeBSD). Approved by: portmgr (bapt) Differential Revision: https://reviews.freebsd.org/D3326
-rw-r--r--Mk/Uses/ncurses.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mk/Uses/ncurses.mk b/Mk/Uses/ncurses.mk
index 6b7ce1212c43..413a8f8132a9 100644
--- a/Mk/Uses/ncurses.mk
+++ b/Mk/Uses/ncurses.mk
@@ -27,7 +27,7 @@
_INCLUDE_USES_NCURSES_MK= yes
.if empty(ncurses_ARGS)
-. if !exists(${DESTDIR}/${LOCALBASE}/lib/libncurses.so) && exists(${DESTDIR}/usr/include/ncurses.h)
+. if !exists(${DESTDIR}/${LOCALBASE}/lib/libncurses.so) && exists(${DESTDIR}/usr/lib/libncurses.so)
ncurses_ARGS= base
. else
ncurses_ARGS= port