summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorsbd <sbd@pkgsrc.org>2011-12-15 07:37:38 +0000
committersbd <sbd@pkgsrc.org>2011-12-15 07:37:38 +0000
commitde325cf72345a34b9312c770ea5984a995653388 (patch)
treecd390f32073909dfa6b1c6c3391a55d53f8360d1 /devel
parente4dbd51e34235f9575193b9a1107e4ce5277c8c1 (diff)
downloadpkgsrc-de325cf72345a34b9312c770ea5984a995653388.tar.gz
Many packages will prefer ncursesw over ncurses if its available (say as
a native library), so unless devel/ncurses/buildlink3.mk is being included by ncursesw don't allow ncursesw to be used by causing linkage failure.
Diffstat (limited to 'devel')
-rw-r--r--devel/ncurses/buildlink3.mk10
1 files changed, 9 insertions, 1 deletions
diff --git a/devel/ncurses/buildlink3.mk b/devel/ncurses/buildlink3.mk
index 8c5d39d7e5d..5c19a6f357d 100644
--- a/devel/ncurses/buildlink3.mk
+++ b/devel/ncurses/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.39 2011/12/04 21:26:15 sbd Exp $
+# $NetBSD: buildlink3.mk,v 1.40 2011/12/15 07:37:38 sbd Exp $
BUILDLINK_TREE+= ncurses
@@ -21,6 +21,14 @@ BUILDLINK_TARGETS+= buildlink-ncurses-curses-h buildlink-ncurses-ncurses-h
BUILDLINK_TRANSFORM+= l:curses:${BUILDLINK_LIBNAME.ncurses}
BUILDLINK_INCDIRS.ncurses+= include/ncurses
+# Many packages will prefer ncursesw over ncurses if its available (say as
+# a native library), so unless this file is being included by ncursesw
+# don't allow ncursesw to be used by causing linkage failure.
+#
+. if empty(BUILDLINK_TREE:Mncursesw)
+BUILDLINK_TRANSFORM+= l:ncursesw:__nonexistent__
+. endif
+
.PHONY: buildlink-ncurses-curses-h buildlink-ncurses-ncurses-h
buildlink-ncurses-curses-h:
${RUN} \