summaryrefslogtreecommitdiff
path: root/devel/ncurses/buildlink2.mk
diff options
context:
space:
mode:
Diffstat (limited to 'devel/ncurses/buildlink2.mk')
-rw-r--r--devel/ncurses/buildlink2.mk10
1 files changed, 9 insertions, 1 deletions
diff --git a/devel/ncurses/buildlink2.mk b/devel/ncurses/buildlink2.mk
index e07c70a21d7..42d6307d36e 100644
--- a/devel/ncurses/buildlink2.mk
+++ b/devel/ncurses/buildlink2.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink2.mk,v 1.15 2003/12/30 23:14:18 cjep Exp $
+# $NetBSD: buildlink2.mk,v 1.16 2004/02/05 06:58:03 jlam Exp $
#
# Optionally define:
#
@@ -50,6 +50,14 @@ _NEED_NCURSES= YES
. endfor
.endif
+.if defined(BUILDLINK_PREFER_PKGSRC)
+. if empty(BUILDLINK_PREFER_PKGSRC) || \
+ !empty(BUILDLINK_PREFER_PKGSRC:M[yY][eE][sS]) || \
+ !empty(BUILDLINK_PREFER_PKGSRC:Mncurses)
+_NEED_NCURSES= YES
+. endif
+.endif
+
.if ${_NEED_NCURSES} == "YES"
BUILDLINK_PACKAGES+= ncurses
EVAL_PREFIX+= BUILDLINK_PREFIX.ncurses=ncurses