summaryrefslogtreecommitdiff
path: root/devel/ncurses
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2001-07-01 21:10:09 +0000
committerjlam <jlam@pkgsrc.org>2001-07-01 21:10:09 +0000
commit742611e8670e60b5c0b696d2c65776b7d2875a6c (patch)
treeb04d97364b49b065abe2c812571be379b290d067 /devel/ncurses
parentb1ae57dfe78c38ce4aef87bdd836e028e80063e5 (diff)
downloadpkgsrc-742611e8670e60b5c0b696d2c65776b7d2875a6c.tar.gz
Add target to touch some empty headers in ${BUILDLINK_DIR} with the same
name as real ncurses headers. This is to prevent accidentally resolving something like <include/term.h> into ${LOCALBASE}/include/term.h if the compiler is passed "-I${BUILDLINK_DIR}/include -I${LOCALBASE}/include".
Diffstat (limited to 'devel/ncurses')
-rw-r--r--devel/ncurses/buildlink.mk17
1 files changed, 15 insertions, 2 deletions
diff --git a/devel/ncurses/buildlink.mk b/devel/ncurses/buildlink.mk
index 7c9a637a4bc..1af1556b096 100644
--- a/devel/ncurses/buildlink.mk
+++ b/devel/ncurses/buildlink.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink.mk,v 1.2 2001/06/23 19:26:54 jlam Exp $
+# $NetBSD: buildlink.mk,v 1.3 2001/07/01 21:10:09 jlam Exp $
#
# This Makefile fragment is included by packages that use ncurses.
#
@@ -70,10 +70,23 @@ BUILDLINK_FILES.ncurses+= lib/libmenu.*
BUILDLINK_TRANSFORM.ncurses= -e "s|libcurses\.|libncurses.|g"
BUILDLINK_TRANSFORM.ncurses+= -e "s|/curses.h|/ncurses.h|g"
-BUILDLINK_TARGETS.ncurses= ncurses-buildlink
+BUILDLINK_TARGETS.ncurses+= ncurses-buildlink
+.if ${_NEED_NCURSES} == "NO"
+BUILDLINK_TARGETS.ncurses+= ncurses-extra-includes-buildlink
+.endif
BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.ncurses}
pre-configure: ${BUILDLINK_TARGETS.ncurses}
ncurses-buildlink: _BUILDLINK_USE
+ncurses-extra-includes-buildlink:
+ ${_PKG_SILENT}${_PKG_DEBUG} \
+ ${ECHO_MSG} "Touching extra ncurses headers in ${BUILDLINK_DIR}."; \
+ extra_includes=" \
+ include/term.h \
+ "; \
+ for file in $${extra_includes}; do \
+ ${TOUCH} ${TOUCH_FLAGS} $${BUILDLINK_DIR}/$${file}; \
+ done
+
.include "../../mk/bsd.buildlink.mk"