pkgsrc/mk/curses.buildlink3.mk
tv d133a216ec Oy, what a hack. But then, so is Interix....
On Interix, force inclusion of devel/ncurses/buildlink3.mk from
mk/curses.buildlink3.mk.  This forces inclusion of its builtin.mk too.

In devel/ncurses/builtin.mk, if using Interix's builtin ncurses, always
transform -lncurses to -lcurses.  (-lncurses is static, but -lcurses is
shared; we want the shared version.)
2004-10-13 20:10:31 +00:00

21 lines
775 B
Makefile

# $NetBSD: curses.buildlink3.mk,v 1.3 2004/10/13 20:10:31 tv 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 !exists(/usr/include/curses.h) && \
!exists(/usr/include/ncurses.h)
. include "../../devel/ncurses/buildlink3.mk"
.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
.endif