pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/ncursesw Try to buildlink with ncurses with same...
details: https://anonhg.NetBSD.org/pkgsrc/rev/2b7a1cdfbb1f
branches: trunk
changeset: 599639:2b7a1cdfbb1f
user: obache <obache%pkgsrc.org@localhost>
date: Fri Feb 17 11:01:01 2012 +0000
description:
Try to buildlink with ncurses with same conditions as ncursesw was built.
Fixes buildlink for the case builtin ncurses was not used for building ncursesw.
diffstat:
devel/ncursesw/buildlink3.mk | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
diffs (28 lines):
diff -r 00e5bae37857 -r 2b7a1cdfbb1f devel/ncursesw/buildlink3.mk
--- a/devel/ncursesw/buildlink3.mk Fri Feb 17 09:42:02 2012 +0000
+++ b/devel/ncursesw/buildlink3.mk Fri Feb 17 11:01:01 2012 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.4 2009/03/20 19:24:24 joerg Exp $
+# $NetBSD: buildlink3.mk,v 1.5 2012/02/17 11:01:01 obache Exp $
BUILDLINK_TREE+= ncursesw
@@ -12,6 +12,18 @@
BUILDLINK_LIBNAME.ncursesw= ncursesw
BUILDLINK_LDADD.ncursesw= ${BUILDLINK_LIBNAME.ncursesw:S/^/-l/:S/^-l$//}
+CHECK_BUILTIN.ncursesw:= yes
+. include "builtin.mk"
+CHECK_BUILTIN.ncursesw:= no
+. if defined(IS_BUILTIN.ncursesw) && !empty(IS_BUILTIN.ncursesw:M[nN][oO])
+PKG_BUILD_DEPENDS.ncurses!= ${PKG_INFO} -qn ncursesw 2> /dev/null \
+ || { cd ../../devel/ncurses && ${MAKE} ${MAKEFLAGS} show-depends; }
+. for d in ${PKG_BUILD_DEPENDS.ncurses:Mncurses[-><]*}
+BUILDLINK_API_DEPENDS.ncurses+= ${d}
+. endfor
+USE_NCURSES= yes
+. endif
+
.include "../../devel/ncurses/buildlink3.mk"
.endif # NCURSESW_BUILDLINK3_MK
Home |
Main Index |
Thread Index |
Old Index