summaryrefslogtreecommitdiff
path: root/devel/ncursesw
diff options
context:
space:
mode:
authordholland <dholland@pkgsrc.org>2010-07-26 05:47:45 +0000
committerdholland <dholland@pkgsrc.org>2010-07-26 05:47:45 +0000
commit06bdc0ee899a5eb04ddf0228d140283208bf258e (patch)
tree0e0f0500836d54b20e98fd6fe5fbd2d0d5edb2c7 /devel/ncursesw
parent91b97bb2cfbc1bc727e683185775a6cc7267a71a (diff)
downloadpkgsrc-06bdc0ee899a5eb04ddf0228d140283208bf258e.tar.gz
ncurses does a bunch of sed magic at *install* time to adjust the
paths in include directives in the headers it installs. (I'm not going to ask who thought this was a good idea...) Since this package bypasses the ncurses install goo, we need to replicate at least some of the behavior with SUBST in order to get working header files out. Should fix PR 43435 and may also fix some problems with ncursesw and tin that I've had reported to me. PKGREVISION -> 4.
Diffstat (limited to 'devel/ncursesw')
-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 \