pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/cmake If the curses include directory doesn't co...
details: https://anonhg.NetBSD.org/pkgsrc/rev/24d230e44b0a
branches: trunk
changeset: 355204:24d230e44b0a
user: joerg <joerg%pkgsrc.org@localhost>
date: Fri Nov 25 13:36:37 2016 +0000
description:
If the curses include directory doesn't contain form.h, but the ncurses
subdirectory does, explicitly include the latter in the search path.
This helps with the header moves in OpenSuSE.
diffstat:
devel/cmake/Makefile | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diffs (21 lines):
diff -r 2ed5bb698a54 -r 24d230e44b0a devel/cmake/Makefile
--- a/devel/cmake/Makefile Fri Nov 25 13:35:33 2016 +0000
+++ b/devel/cmake/Makefile Fri Nov 25 13:36:37 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.125 2016/11/12 07:49:18 adam Exp $
+# $NetBSD: Makefile,v 1.126 2016/11/25 13:36:37 joerg Exp $
.include "Makefile.version"
@@ -72,4 +72,11 @@
.include "../../textproc/expat/buildlink3.mk"
.include "../../www/curl/buildlink3.mk"
.include "../../mk/curses.buildlink3.mk"
+
+.if !exists(${BUILDLINK_INCDIRS.curses}/form.h) && \
+ exists(${BUILDLINK_INCDIRS.curses}/ncurses/form.h)
+CFLAGS+= -I${BUILDLINK_INCDIRS.curses}/ncurses
+CXXFLAGS+= -I${BUILDLINK_INCDIRS.curses}/ncurses
+.endif
+
.include "../../mk/bsd.pkg.mk"
Home |
Main Index |
Thread Index |
Old Index