summaryrefslogtreecommitdiff
path: root/mk/curses.buildlink2.mk
blob: ade86c31a1234d742b0c9b6dec8c4a270b5aec53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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