From 84b66b9a6becb641c86c2b17dc84ff8fa4a58a71 Mon Sep 17 00:00:00 2001 From: jlam Date: Mon, 19 Jan 2004 10:34:26 +0000 Subject: Symlink curses.h to ${BUILDLINK_PREFIX.ncurses}/include/ncurses.h so that this works for both overwrite and pkgviews installation types. --- devel/ncurses/buildlink3.mk | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'devel/ncurses') diff --git a/devel/ncurses/buildlink3.mk b/devel/ncurses/buildlink3.mk index 9e7dce4c171..4f7374afc48 100644 --- a/devel/ncurses/buildlink3.mk +++ b/devel/ncurses/buildlink3.mk @@ -1,4 +1,4 @@ -# $NetBSD: buildlink3.mk,v 1.7 2004/01/10 17:47:38 cjep Exp $ +# $NetBSD: buildlink3.mk,v 1.8 2004/01/19 10:34:26 jlam Exp $ BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ NCURSES_BUILDLINK3_MK:= ${NCURSES_BUILDLINK3_MK}+ @@ -101,9 +101,11 @@ buildlink-ncurses-extra-includes: .PHONY: buildlink-ncurses-curses-h buildlink-ncurses-curses-h: ${_PKG_SILENT}${_PKG_DEBUG} \ - if [ ! -f ${BUILDLINK_DIR}/include/curses.h ]; then \ - ${ECHO_BUILDLINK_MSG} "Linking curses.h to ncurses.h in ${BUILDLINK_DIR}."; \ - ${LN} -s ncurses.h ${BUILDLINK_DIR}/include/curses.h; \ + if [ ! -f ${BUILDLINK_DIR}/include/curses.h -a \ + -f ${BUILDLINK_PREFIX.ncurses}/include/ncurses.h ]; then \ + ${ECHO_BUILDLINK_MSG} "Linking curses.h to ncurses.h."; \ + ${LN} -s ${BUILDLINK_PREFIX.ncurses}/include/ncurses.h \ + ${BUILDLINK_DIR}/include/curses.h; \ fi .endif # NCURSES_BUILDLINK3_MK -- cgit v1.2.3