pkgsrc/mk/curses.buildlink2.mk
jlam 3460f0818e 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.
2004-02-13 01:02:06 +00:00

16 lines
602 B
Makefile

# $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