diff options
-rw-r--r-- | devel/ncurses/builtin.mk | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/devel/ncurses/builtin.mk b/devel/ncurses/builtin.mk index 642a6d39f12..815cc66fbc2 100644 --- a/devel/ncurses/builtin.mk +++ b/devel/ncurses/builtin.mk @@ -1,4 +1,4 @@ -# $NetBSD: builtin.mk,v 1.34 2013/11/23 11:29:35 obache Exp $ +# $NetBSD: builtin.mk,v 1.35 2014/08/11 11:50:06 tron Exp $ BUILTIN_PKG:= ncurses @@ -188,6 +188,13 @@ buildlink-curses-ncurses-h: ${ECHO_BUILDLINK_MSG} "Linking $$fname -> ncurses.h."; \ ${MKDIR} `${DIRNAME} "$$dest"`; \ ${LN} -s "$$src" "$$dest"; \ + fi; \ + dest=${BUILDLINK_DIR}"/include/ncurses/ncurses.h"; \ + if ${TEST} ! -f "$$dest" -a -f "$$src"; then \ + fname=`${BASENAME} $$src`; \ + ${ECHO_BUILDLINK_MSG} "Linking $$fname -> ncurses/ncurses.h."; \ + ${MKDIR} `${DIRNAME} "$$dest"`; \ + ${LN} -s "$$src" "$$dest"; \ fi . endif |