diff options
author | dholland <dholland> | 2010-07-26 05:47:45 +0000 |
---|---|---|
committer | dholland <dholland> | 2010-07-26 05:47:45 +0000 |
commit | e82b5f5db405eccde832247cee5b42e8c1025194 (patch) | |
tree | 0e0f0500836d54b20e98fd6fe5fbd2d0d5edb2c7 | |
parent | 14460efdf03b4ef168ad2afd4ac63d3d423b953a (diff) | |
download | pkgsrc-e82b5f5db405eccde832247cee5b42e8c1025194.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.
-rw-r--r-- | devel/ncursesw/Makefile | 11 |
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 \ |