summaryrefslogtreecommitdiff
path: root/mk/curses.builtin.mk
diff options
context:
space:
mode:
authorjlam <jlam>2008-02-27 04:47:02 +0000
committerjlam <jlam>2008-02-27 04:47:02 +0000
commitbc7b9de0ba3c83b4f8e35e422e18aded2129e5a7 (patch)
tree56928d0e8dbf992555dfd701e1f90d6e512a5196 /mk/curses.builtin.mk
parent6b0a3f74233d319872c9ee41969988a261ac65f9 (diff)
downloadpkgsrc-bc7b9de0ba3c83b4f8e35e422e18aded2129e5a7.tar.gz
+ The termlib.buildlink3.mk file is meant to be included by packages
that need basic termlib functionality, i.e. tgetent(), tgoto(), tputs(), etc. Together with the termlib.builtin.mk file, they will use either a built-in termcap library, a built-in X/Open "enhanced" curses library, or ncurses to provide these functions. + Add BUILDLINK_LIBNAME.* definitions to the various curses buildlink3.mk and builtin.mk files that give the "base" library name of the curses library, e.g. curses, ncurses, etc. These are used by the termlib files to set BUILDLINK_LIBNAME.termlib.
Diffstat (limited to 'mk/curses.builtin.mk')
-rw-r--r--mk/curses.builtin.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/mk/curses.builtin.mk b/mk/curses.builtin.mk
index 8e4a67a94db..e35b4ee4da3 100644
--- a/mk/curses.builtin.mk
+++ b/mk/curses.builtin.mk
@@ -1,4 +1,4 @@
-# $NetBSD: curses.builtin.mk,v 1.2 2008/02/27 02:26:07 jlam Exp $
+# $NetBSD: curses.builtin.mk,v 1.3 2008/02/27 04:47:02 jlam Exp $
BUILTIN_PKG:= curses
@@ -58,7 +58,8 @@ CHECK_BUILTIN.curses?= no
BUILDLINK_INCDIRS.curses?= ${H_CURSES:H:S/^${BUILDLINK_PREFIX.curses}\///}
. endif
. if !empty(BUILTIN_LIB_FOUND.curses:M[yY][eE][sS])
-BUILDLINK_LDADD.curses?= -lcurses
+BUILDLINK_LIBNAME.curses= curses
+BUILDLINK_LDADD.curses?= -l${BUILDLINK_LIBNAME.curses}
. endif
. endif