diff options
author | jlam <jlam@pkgsrc.org> | 2004-01-19 10:34:26 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2004-01-19 10:34:26 +0000 |
commit | 84b66b9a6becb641c86c2b17dc84ff8fa4a58a71 (patch) | |
tree | 848ceda62fa6309da039c524e62c44726f04b242 /devel/ncurses | |
parent | f2cc6a8c861d7cf9460635626237d9c8be704f08 (diff) | |
download | pkgsrc-84b66b9a6becb641c86c2b17dc84ff8fa4a58a71.tar.gz |
Symlink curses.h to ${BUILDLINK_PREFIX.ncurses}/include/ncurses.h so that
this works for both overwrite and pkgviews installation types.
Diffstat (limited to 'devel/ncurses')
-rw-r--r-- | devel/ncurses/buildlink3.mk | 10 |
1 files changed, 6 insertions, 4 deletions
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 |