pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk check FAKE_NCURSES is defined before evaluate it.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/aef4af4c1a1a
branches:  trunk
changeset: 631571:aef4af4c1a1a
user:      obache <obache%pkgsrc.org@localhost>
date:      Mon Mar 10 12:57:03 2014 +0000

description:
check FAKE_NCURSES is defined before evaluate it.

diffstat:

 mk/curses.buildlink3.mk |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r a6704f2476b1 -r aef4af4c1a1a mk/curses.buildlink3.mk
--- a/mk/curses.buildlink3.mk   Mon Mar 10 12:49:59 2014 +0000
+++ b/mk/curses.buildlink3.mk   Mon Mar 10 12:57:03 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: curses.buildlink3.mk,v 1.18 2014/03/09 10:15:32 roy Exp $
+# $NetBSD: curses.buildlink3.mk,v 1.19 2014/03/10 12:57:03 obache Exp $
 #
 # This Makefile fragment is meant to be included by packages that require
 # any curses implementation instead of one particular one.  The available
@@ -106,7 +106,7 @@
 # The correct action would be to write a patch and pass it upstream
 # but by setting FAKE_NCURSES=yes in the package we can temporarily work
 # around the short-coming.
-.  if !empty(FAKE_NCURSES:M[yY][eE][sS])
+.  if defined(FAKE_NCURSES) && !empty(FAKE_NCURSES:M[yY][eE][sS])
 BUILDLINK_TARGETS+=            buildlink-curses-ncurses-h
 BUILDLINK_TRANSFORM+=          l:ncurses:${BUILDLINK_LIBNAME.curses}
 BUILDLINK_TRANSFORM+=          l:ncursesw:${BUILDLINK_LIBNAME.curses}



Home | Main Index | Thread Index | Old Index