| @@ -1,35 +1,42 @@ | | | @@ -1,35 +1,42 @@ |
1 | # $NetBSD: Makefile,v 1.7 2010/06/21 14:49:00 tron Exp $ | | 1 | # $NetBSD: Makefile,v 1.8 2010/07/26 05:47:45 dholland Exp $ |
2 | | | 2 | |
3 | .include "../../devel/ncurses/Makefile.common" | | 3 | .include "../../devel/ncurses/Makefile.common" |
4 | | | 4 | |
5 | PKGNAME= ${DISTNAME:S/ncurses/ncursesw/} | | 5 | PKGNAME= ${DISTNAME:S/ncurses/ncursesw/} |
6 | PKGREVISION= 3 | | 6 | PKGREVISION= 4 |
7 | COMMENT= Wide character CRT screen handling and optimization package | | 7 | COMMENT= Wide character CRT screen handling and optimization package |
8 | | | 8 | |
9 | PATCHDIR= ${.CURDIR}/../../devel/ncurses/patches | | 9 | PATCHDIR= ${.CURDIR}/../../devel/ncurses/patches |
10 | DISTINFO_FILE= ${.CURDIR}/../../devel/ncurses/distinfo | | 10 | DISTINFO_FILE= ${.CURDIR}/../../devel/ncurses/distinfo |
11 | | | 11 | |
12 | CONFIGURE_ARGS+= --enable-widec | | 12 | CONFIGURE_ARGS+= --enable-widec |
13 | | | 13 | |
14 | INSTALLATION_DIRS+= include/ncursesw | | 14 | INSTALLATION_DIRS+= include/ncursesw |
15 | INSTALLATION_DIRS+= lib | | 15 | INSTALLATION_DIRS+= lib |
16 | | | 16 | |
17 | BUILD_TARGET= libs | | 17 | BUILD_TARGET= libs |
18 | | | 18 | |
19 | .if ${OPSYS} == "SunOS" | | 19 | .if ${OPSYS} == "SunOS" |
20 | CXXFLAGS+= -D_XPG5 | | 20 | CXXFLAGS+= -D_XPG5 |
21 | .endif | | 21 | .endif |
22 | | | 22 | |
| | | 23 | SUBST_CLASSES+= includes |
| | | 24 | SUBST_MESSAGE.includes= Fixing include paths for ncurses headers. |
| | | 25 | SUBST_STAGE.includes= post-build |
| | | 26 | SUBST_FILES.includes= include/curses.h |
| | | 27 | SUBST_SED.includes= -e 's,<ncurses_dll\.h>,<ncurses/ncurses_dll\.h>,' \ |
| | | 28 | -e 's,<unctrl\.h>,<ncurses/unctrl\.h>,' |
| | | 29 | |
23 | do-install: | | 30 | do-install: |
24 | ${INSTALL_DATA} ${WRKSRC}/include/curses.h ${DESTDIR}${PREFIX}/include/ncursesw/ncurses.h | | 31 | ${INSTALL_DATA} ${WRKSRC}/include/curses.h ${DESTDIR}${PREFIX}/include/ncursesw/ncurses.h |
25 | for LIB in form menu ncurses++ ncurses panel; do \ | | 32 | for LIB in form menu ncurses++ ncurses panel; do \ |
26 | ${LIBTOOL} --mode=install ${INSTALL_PROGRAM} \ | | 33 | ${LIBTOOL} --mode=install ${INSTALL_PROGRAM} \ |
27 | ${WRKSRC}/lib/lib$${LIB}w.la ${DESTDIR}${PREFIX}/lib; \ | | 34 | ${WRKSRC}/lib/lib$${LIB}w.la ${DESTDIR}${PREFIX}/lib; \ |
28 | done | | 35 | done |
29 | | | 36 | |
30 | BUILDLINK_API_DEPENDS.ncurses+= ncurses-${NC_VERS}{,nb*} | | 37 | BUILDLINK_API_DEPENDS.ncurses+= ncurses-${NC_VERS}{,nb*} |
31 | BUILDLINK_ABI_DEPENDS.ncurses+= ncurses-${NC_VERS}{,nb*} | | 38 | BUILDLINK_ABI_DEPENDS.ncurses+= ncurses-${NC_VERS}{,nb*} |
32 | USE_NCURSES= yes | | 39 | USE_NCURSES= yes |
33 | | | 40 | |
34 | .include "../../devel/ncurses/buildlink3.mk" | | 41 | .include "../../devel/ncurses/buildlink3.mk" |
35 | | | 42 | |