diff options
author | jlam <jlam@pkgsrc.org> | 2004-02-13 01:02:06 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2004-02-13 01:02:06 +0000 |
commit | 3460f0818ed21715d5d4935ac2f52b1193f61b8a (patch) | |
tree | b3747ae43331523b6218cb02d1bffd839f4ad5c9 | |
parent | 1751fa07046c1f244a2004192b63cba7d117e1a5 (diff) | |
download | pkgsrc-3460f0818ed21715d5d4935ac2f52b1193f61b8a.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.
-rw-r--r-- | mk/curses.buildlink2.mk | 16 | ||||
-rw-r--r-- | mk/curses.buildlink3.mk | 16 |
2 files changed, 32 insertions, 0 deletions
diff --git a/mk/curses.buildlink2.mk b/mk/curses.buildlink2.mk new file mode 100644 index 00000000000..ade86c31a12 --- /dev/null +++ b/mk/curses.buildlink2.mk @@ -0,0 +1,16 @@ +# $NetBSD: curses.buildlink2.mk,v 1.3 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/buildlink2.mk instead of this file in the package Makefile. + +.if !defined(CURSES_BUILDLINK2_MK) +CURSES_BUILDLINK2_MK= # defined + +. if !exists(/usr/include/curses.h) && \ + !exists(/usr/include/ncurses.h) +. include "../../devel/ncurses/buildlink2.mk" +. endif +.endif # CURSES_BUILDLINK2_MK 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 |