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.
43 lines
1.2 KiB
Makefile
43 lines
1.2 KiB
Makefile
# $NetBSD: Makefile,v 1.8 2010/07/26 05:47:45 dholland Exp $
|
|
|
|
.include "../../devel/ncurses/Makefile.common"
|
|
|
|
PKGNAME= ${DISTNAME:S/ncurses/ncursesw/}
|
|
PKGREVISION= 4
|
|
COMMENT= Wide character CRT screen handling and optimization package
|
|
|
|
PATCHDIR= ${.CURDIR}/../../devel/ncurses/patches
|
|
DISTINFO_FILE= ${.CURDIR}/../../devel/ncurses/distinfo
|
|
|
|
CONFIGURE_ARGS+= --enable-widec
|
|
|
|
INSTALLATION_DIRS+= include/ncursesw
|
|
INSTALLATION_DIRS+= lib
|
|
|
|
BUILD_TARGET= libs
|
|
|
|
.if ${OPSYS} == "SunOS"
|
|
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 \
|
|
${LIBTOOL} --mode=install ${INSTALL_PROGRAM} \
|
|
${WRKSRC}/lib/lib$${LIB}w.la ${DESTDIR}${PREFIX}/lib; \
|
|
done
|
|
|
|
BUILDLINK_API_DEPENDS.ncurses+= ncurses-${NC_VERS}{,nb*}
|
|
BUILDLINK_ABI_DEPENDS.ncurses+= ncurses-${NC_VERS}{,nb*}
|
|
USE_NCURSES= yes
|
|
|
|
.include "../../devel/ncurses/buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|