diff options
author | jlam <jlam@pkgsrc.org> | 2008-02-27 02:26:07 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2008-02-27 02:26:07 +0000 |
commit | 8dbadc06accb49d6b11e837958e72aaf205a15bb (patch) | |
tree | 9ea778ebc241111de2f42a426883f5b2e49a1915 /mk/curses.builtin.mk | |
parent | e526eb1a968a482b5a075264702f16c3f3ffb0da (diff) | |
download | pkgsrc-8dbadc06accb49d6b11e837958e72aaf205a15bb.tar.gz |
Allow preferring a pkgsrc "curses" implementation for all packages
that include curses.buildlink3.mk. Generally, the rule is not to set
CURSES_DEFAULT unless it's to set it to "ncurses" or "pdcurses".
# Example mk.conf settings and their results.
# Use the system curses.
PREFER_NATIVE= yes # default value
CURSES_DEFAULT= curses # default value
# Use system "ncurses" if it's available, otherwise use devel/ncurses
# from pkgsrc.
#
PREFER_NATIVE= yes # default value
CURSES_DEFAULT= ncurses
# Use devel/ncurses from pkgsrc.
PREFER_PKGSRC= yes
# Use devel/pdcurses from pkgsrc.
PREFER_PKGSRC= yes
CURSES_DEFAULT= pdcurses
# This causes a package build failure because there is no pkgsrc
# curses.
#
PREFER_PKGSRC= yes
CURSES_DEFAULT= curses
Diffstat (limited to 'mk/curses.builtin.mk')
-rw-r--r-- | mk/curses.builtin.mk | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/mk/curses.builtin.mk b/mk/curses.builtin.mk index 4b4fc2ff9c1..8e4a67a94db 100644 --- a/mk/curses.builtin.mk +++ b/mk/curses.builtin.mk @@ -1,4 +1,4 @@ -# $NetBSD: curses.builtin.mk,v 1.1 2008/02/25 04:19:34 jlam Exp $ +# $NetBSD: curses.builtin.mk,v 1.2 2008/02/27 02:26:07 jlam Exp $ BUILTIN_PKG:= curses @@ -25,12 +25,6 @@ MAKEVARS+= IS_BUILTIN.curses ### exists, and set USE_BUILTIN.<pkg> appropriate ("yes" or "no"). ### .if !defined(USE_BUILTIN.curses) -# -# There will probably never be a devel/curses package because ncurses is -# the recommended curses on many platforms, so we should always prefer the -# native curses package. -# -PREFER.curses= native . if ${PREFER.curses} == "pkgsrc" USE_BUILTIN.curses= no . else |