2004-10-13 22:10:31 +02:00
|
|
|
# $NetBSD: curses.buildlink3.mk,v 1.3 2004/10/13 20:10:31 tv Exp $
|
2004-02-13 02:02:06 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2004-03-18 10:12:08 +01:00
|
|
|
.if !exists(/usr/include/curses.h) && \
|
|
|
|
!exists(/usr/include/ncurses.h)
|
|
|
|
. include "../../devel/ncurses/buildlink3.mk"
|
2004-10-13 22:10:31 +02:00
|
|
|
.else
|
|
|
|
|
|
|
|
# XXX this is ugly, but needed to get the BUILDLINK_TRANSFORM from builtin.mk;
|
|
|
|
# on Interix, libncurses is static yet libcurses (also ncurses) is shared
|
|
|
|
. include "../../mk/bsd.prefs.mk"
|
|
|
|
. if ${OPSYS} == "Interix"
|
|
|
|
. include "../../devel/ncurses/buildlink3.mk"
|
|
|
|
. endif
|
|
|
|
|
2004-03-18 10:12:08 +01:00
|
|
|
.endif
|