diff options
author | sbd <sbd> | 2011-12-15 07:37:38 +0000 |
---|---|---|
committer | sbd <sbd> | 2011-12-15 07:37:38 +0000 |
commit | 89033182921d898a896489f9ce3a738c46d2d3ef (patch) | |
tree | cd390f32073909dfa6b1c6c3391a55d53f8360d1 /devel/ncurses | |
parent | 892ef5f0e53178935b06a50b1c17ad3e27590b45 (diff) | |
download | pkgsrc-89033182921d898a896489f9ce3a738c46d2d3ef.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/ncurses')
-rw-r--r-- | devel/ncurses/buildlink3.mk | 10 |
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} \ |