summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
Diffstat (limited to 'devel')
-rw-r--r--devel/ncursesw/Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/devel/ncursesw/Makefile b/devel/ncursesw/Makefile
index a9e83f69b1e..5ae73fb637d 100644
--- a/devel/ncursesw/Makefile
+++ b/devel/ncursesw/Makefile
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.7 2010/06/21 14:49:00 tron Exp $
+# $NetBSD: Makefile,v 1.8 2010/07/26 05:47:45 dholland Exp $
.include "../../devel/ncurses/Makefile.common"
PKGNAME= ${DISTNAME:S/ncurses/ncursesw/}
-PKGREVISION= 3
+PKGREVISION= 4
COMMENT= Wide character CRT screen handling and optimization package
PATCHDIR= ${.CURDIR}/../../devel/ncurses/patches
@@ -20,6 +20,13 @@ BUILD_TARGET= libs
CXXFLAGS+= -D_XPG5
.endif
+SUBST_CLASSES+= includes
+SUBST_MESSAGE.includes= Fixing include paths for ncurses headers.
+SUBST_STAGE.includes= post-build
+SUBST_FILES.includes= include/curses.h
+SUBST_SED.includes= -e 's,<ncurses_dll\.h>,<ncurses/ncurses_dll\.h>,' \
+ -e 's,<unctrl\.h>,<ncurses/unctrl\.h>,'
+
do-install:
${INSTALL_DATA} ${WRKSRC}/include/curses.h ${DESTDIR}${PREFIX}/include/ncursesw/ncurses.h
for LIB in form menu ncurses++ ncurses panel; do \