diff options
author | obache <obache@pkgsrc.org> | 2013-12-01 02:18:14 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2013-12-01 02:18:14 +0000 |
commit | c288de03e8f7e0ebfe793471bbab69e747b82d8f (patch) | |
tree | ad410bbfbeb4151510234c4bff978ccf6b4eeb59 /devel/ncurses | |
parent | 4f9b3df227ebbb221d5d6dd847bb6854415efb38 (diff) | |
download | pkgsrc-c288de03e8f7e0ebfe793471bbab69e747b82d8f.tar.gz |
also link ncurses/term.h -> term.h as well as curses.h (and builtin.mk)
Diffstat (limited to 'devel/ncurses')
-rw-r--r-- | devel/ncurses/buildlink3.mk | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/devel/ncurses/buildlink3.mk b/devel/ncurses/buildlink3.mk index b75e4fc16bd..50f9f75a3ac 100644 --- a/devel/ncurses/buildlink3.mk +++ b/devel/ncurses/buildlink3.mk @@ -1,4 +1,4 @@ -# $NetBSD: buildlink3.mk,v 1.42 2011/12/19 11:42:47 obache Exp $ +# $NetBSD: buildlink3.mk,v 1.43 2013/12/01 02:18:14 obache Exp $ BUILDLINK_TREE+= ncurses @@ -17,7 +17,9 @@ BUILDLINK_LDADD.ncurses?= ${BUILDLINK_LIBNAME.ncurses:S/^/-l/:S/^-l$//} # some properly written autoconf macros which also try to pick up # ncurses/ncurses.h. # -BUILDLINK_TARGETS+= buildlink-ncurses-curses-h buildlink-ncurses-ncurses-h +BUILDLINK_TARGETS+= buildlink-ncurses-curses-h +BUILDLINK_TARGETS+= buildlink-ncurses-ncurses-h +BUILDLINK_TARGETS+= buildlink-ncurses-term-h BUILDLINK_TRANSFORM+= l:curses:${BUILDLINK_LIBNAME.ncurses} BUILDLINK_INCDIRS.ncurses+= include/ncurses @@ -31,6 +33,7 @@ BUILDLINK_TRANSFORM+= l:ncursesw:__nonexistent__ . endif .PHONY: buildlink-ncurses-curses-h buildlink-ncurses-ncurses-h +.PHONY: buildlink-ncurses-term-h buildlink-ncurses-curses-h: ${RUN} \ src=${BUILDLINK_PREFIX.ncurses}"/include/ncurses/curses.h"; \ @@ -51,6 +54,16 @@ buildlink-ncurses-ncurses-h: ${LN} -s "$$src" "$$dest"; \ fi +buildlink-ncurses-term-h: + ${RUN} \ + src=${BUILDLINK_PREFIX.ncurses}"/include/ncurses/term.h"; \ + dest=${BUILDLINK_DIR}"/include/term.h"; \ + if ${TEST} ! -f "$$dest" -a -f "$$src"; then \ + ${ECHO_BUILDLINK_MSG} "Linking ncurses/term.h -> term.h.";\ + ${MKDIR} `${DIRNAME} "$$dest"`; \ + ${LN} -s "$$src" "$$dest"; \ + fi + .endif # NCURSES_BUILDLINK3_MK BUILDLINK_TREE+= -ncurses |