diff options
author | jlam <jlam> | 2004-02-13 01:02:06 +0000 |
---|---|---|
committer | jlam <jlam> | 2004-02-13 01:02:06 +0000 |
commit | f96dcded97b0bea26dc84207f1466d5f1601c77b (patch) | |
tree | b3747ae43331523b6218cb02d1bffd839f4ad5c9 /mk/curses.buildlink3.mk | |
parent | 941231c34b518092ce39d7b8c4e1e7ccb4a45389 (diff) | |
download | pkgsrc-f96dcded97b0bea26dc84207f1466d5f1601c77b.tar.gz |
curses.buildlink[23].mk files to be included by packages that use the
curses library in some way. This file will automatically include
ncurses/buildlink[23].mk if a curses implementation isn't available. If a
package truly needs ncurses, then it should include
ncurses/buildlink[23].mk directly.
Diffstat (limited to 'mk/curses.buildlink3.mk')
-rw-r--r-- | mk/curses.buildlink3.mk | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/mk/curses.buildlink3.mk b/mk/curses.buildlink3.mk new file mode 100644 index 00000000000..2924bfdf74e --- /dev/null +++ b/mk/curses.buildlink3.mk @@ -0,0 +1,16 @@ +# $NetBSD: curses.buildlink3.mk,v 1.1 2004/02/13 01:02:06 jlam Exp $ +# +# This file should be included by Makefiles for packages that use curses. +# If a system curses isn't available, then add a dependency on ncurses. +# +# If a package genuinely requires ncurses, then it should directly include +# ncurses/buildlink3.mk instead of this file in the package Makefile. + +.if !defined(CURSES_BUILDLINK3_MK) +CURSES_BUILDLINK3_MK= # defined + +. if !exists(/usr/include/curses.h) && \ + !exists(/usr/include/ncurses.h) +. include "../../devel/ncurses/buildlink3.mk" +. endif +.endif # CURSES_BUILDLINK3_MK |