summaryrefslogtreecommitdiff
path: root/mk/curses.buildlink3.mk
diff options
context:
space:
mode:
authortv <tv@pkgsrc.org>2004-10-13 20:10:31 +0000
committertv <tv@pkgsrc.org>2004-10-13 20:10:31 +0000
commitd133a216ec28fa4b898ed0b2b2341a70cd6385b5 (patch)
treeae3427e677d8958118b7df9ac066c95d4d37cb4f /mk/curses.buildlink3.mk
parent39765d787acf3197e56a451d65dac9bfa4d6c6f7 (diff)
downloadpkgsrc-d133a216ec28fa4b898ed0b2b2341a70cd6385b5.tar.gz
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.)
Diffstat (limited to 'mk/curses.buildlink3.mk')
-rw-r--r--mk/curses.buildlink3.mk11
1 files changed, 10 insertions, 1 deletions
diff --git a/mk/curses.buildlink3.mk b/mk/curses.buildlink3.mk
index fcd4cd91f6c..9daa70acf30 100644
--- a/mk/curses.buildlink3.mk
+++ b/mk/curses.buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: curses.buildlink3.mk,v 1.2 2004/03/18 09:12:13 jlam Exp $
+# $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.
@@ -9,4 +9,13 @@
.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