apply a more general fix than the last. whitespace.
[pkgsrcv2.git] / mk / curses.buildlink3.mk
1 # $NetBSD: curses.buildlink3.mk,v 1.2 2004/03/18 09:12:13 jlam Exp $
2 #
3 # This file should be included by Makefiles for packages that use curses.
4 # If a system curses isn't available, then add a dependency on ncurses.
5 #
6 # If a package genuinely requires ncurses, then it should directly include
7 # ncurses/buildlink3.mk instead of this file in the package Makefile.
8
9 .if !exists(/usr/include/curses.h) && \
10     !exists(/usr/include/ncurses.h)
11 .  include "../../devel/ncurses/buildlink3.mk"
12 .else
13
14 # XXX this is ugly, but needed to get the BUILDLINK_TRANSFORM from builtin.mk;
15 # on Interix, libncurses is static yet libcurses (also ncurses) is shared
16 .  include "../../mk/bsd.prefs.mk"
17 .  if ${OPSYS} == "Interix"
18 .    include "../../devel/ncurses/buildlink3.mk"
19 .  endif
20
21 .endif