pkgsrc/devel/ncurses/Makefile
bjs 5d10a14d0d Add a distribution patch (by Thomas Dickey) containing Coverity fixes.
Bump revisions of both ncurses and ncursesw packages.


	 fixes based on Coverity report:
	 ------------------------------

	- remove dead code in test/bs.c
	- remove dead code in test/demo_defkey.c
	- remove an unused assignment in progs/infocmp.c
	- fix a limit check in tack/ansi.c tools_charset()
	- fix tack/ansi.c tools_status() to perform the VT320/VT420
	  tests in request_cfss().  The function had exited too soon.
	- fix a memory leak in tic.c's make_namelist()
	- fix a couple of places in tack/output.c which did not check for
	  EOF.
	- fix a loop-condition in test/bs.c
	- add index checks in lib_color.c for color palettes
	- add index checks in progs/dump_entry.c for version_filter()
	  handling of V_BSD case.
	- fix a possible null-pointer dereference in copywin()
	- fix a possible null-pointer dereference in waddchnstr()
	- add a null-pointer check in _nc_expand_try()
	- add a null-pointer check in tic.c's make_namelist()
	- add a null-pointer check in _nc_expand_try()
	- add null-pointer checks in test/cardfile.c
	- fix a double-free in ncurses/tinfo/trim_sgr0.c
	- fix a double-free in ncurses/base/wresize.c
	- add try/catch block to c++/cursesmain.cc

	other fixes prompted by inspection for Coverity report:
	------------------------------------------------------

	- modify ifdef's for c++ binding to use try/catch/throw statements
	- add a null-pointer check in tack/ansi.c request_cfss()
	- fix a memory leak in ncurses/base/wresize.c
	- corrected check for valid memu/meml capabilities in
	  progs/dump_entry.c when handling V_HPUX case.
2007-12-11 05:27:05 +00:00

44 lines
1.3 KiB
Makefile

# $NetBSD: Makefile,v 1.81 2007/12/11 05:27:05 bjs Exp $
.include "Makefile.common"
PKGREVISION= 2
COMMENT= CRT screen handling and optimization package
INSTALLATION_DIRS+= share/examples
.if ${OPSYS} == "SunOS"
# misc/screen installs screen, screen-bce and screen-s
# so we need to remove these here to avoid a conflict.
# this means we also remove the entries which have a
# use=screen in them
SUBST_CLASSES+= ti
SUBST_STAGE.ti= post-configure
SUBST_MESSAGE.ti= Removing screen entries from the terminfo database.
SUBST_FILES.ti= ${TERMINFO_SRC}
# see misc/screen/PLIST for these:
SUBST_SED.ti= -e '/^screen|/,/^$$/d'
SUBST_SED.ti+= -e '/^screen-bce|/,/^$$/d'
SUBST_SED.ti+= -e '/^screen-s|/,/^$$/d'
# see ${TERMINFO_SRC} and look for use=screen for these
SUBST_SED.ti+= -e '/^screen.teraterm|/,/^$$/d'
SUBST_SED.ti+= -e '/^screen.linux|/,/^$$/d'
SUBST_SED.ti+= -e '/^screen-w|/,/^$$/d'
SUBST_SED.ti+= -e '/^screen-16color/,/^$$/d'
SUBST_SED.ti+= -e '/^screen-256color/,/^$$/d'
.endif
post-configure:
cd ${WRKSRC}/man; \
for f in *.1m; do \
mv -f $${f} `${BASENAME} $${f} .1m`.1; \
done; \
for f in *.3x; do \
mv -f $${f} `${BASENAME} $${f} .3x`.3; \
done
post-install:
${INSTALL_DATA} ${WRKSRC}/c++/demo.cc \
${DESTDIR}${PREFIX}/share/examples/ncurses++demo.cc
.include "../../mk/bsd.pkg.mk"