head	1.20;
access;
symbols
	pkgsrc-2019Q4:1.19.0.16
	pkgsrc-2019Q4-base:1.19
	pkgsrc-2019Q3:1.19.0.12
	pkgsrc-2019Q3-base:1.19
	pkgsrc-2019Q2:1.19.0.10
	pkgsrc-2019Q2-base:1.19
	pkgsrc-2019Q1:1.19.0.8
	pkgsrc-2019Q1-base:1.19
	pkgsrc-2018Q4:1.19.0.6
	pkgsrc-2018Q4-base:1.19
	pkgsrc-2018Q3:1.19.0.4
	pkgsrc-2018Q3-base:1.19
	pkgsrc-2018Q2:1.19.0.2
	pkgsrc-2018Q2-base:1.19
	pkgsrc-2018Q1:1.18.0.24
	pkgsrc-2018Q1-base:1.18
	pkgsrc-2017Q4:1.18.0.22
	pkgsrc-2017Q4-base:1.18
	pkgsrc-2017Q3:1.18.0.20
	pkgsrc-2017Q3-base:1.18
	pkgsrc-2017Q2:1.18.0.16
	pkgsrc-2017Q2-base:1.18
	pkgsrc-2017Q1:1.18.0.14
	pkgsrc-2017Q1-base:1.18
	pkgsrc-2016Q4:1.18.0.12
	pkgsrc-2016Q4-base:1.18
	pkgsrc-2016Q3:1.18.0.10
	pkgsrc-2016Q3-base:1.18
	pkgsrc-2016Q2:1.18.0.8
	pkgsrc-2016Q2-base:1.18
	pkgsrc-2016Q1:1.18.0.6
	pkgsrc-2016Q1-base:1.18
	pkgsrc-2015Q4:1.18.0.4
	pkgsrc-2015Q4-base:1.18
	pkgsrc-2015Q3:1.18.0.2
	pkgsrc-2015Q3-base:1.18
	pkgsrc-2015Q2:1.17.0.10
	pkgsrc-2015Q2-base:1.17
	pkgsrc-2015Q1:1.17.0.8
	pkgsrc-2015Q1-base:1.17
	pkgsrc-2014Q4:1.17.0.6
	pkgsrc-2014Q4-base:1.17
	pkgsrc-2014Q3:1.17.0.4
	pkgsrc-2014Q3-base:1.17
	pkgsrc-2014Q2:1.17.0.2
	pkgsrc-2014Q2-base:1.17
	pkgsrc-2014Q1:1.16.0.26
	pkgsrc-2014Q1-base:1.16
	pkgsrc-2013Q4:1.16.0.24
	pkgsrc-2013Q4-base:1.16
	pkgsrc-2013Q3:1.16.0.22
	pkgsrc-2013Q3-base:1.16
	pkgsrc-2013Q2:1.16.0.20
	pkgsrc-2013Q2-base:1.16
	pkgsrc-2013Q1:1.16.0.18
	pkgsrc-2013Q1-base:1.16
	pkgsrc-2012Q4:1.16.0.16
	pkgsrc-2012Q4-base:1.16
	pkgsrc-2012Q3:1.16.0.14
	pkgsrc-2012Q3-base:1.16
	pkgsrc-2012Q2:1.16.0.12
	pkgsrc-2012Q2-base:1.16
	pkgsrc-2012Q1:1.16.0.10
	pkgsrc-2012Q1-base:1.16
	pkgsrc-2011Q4:1.16.0.8
	pkgsrc-2011Q4-base:1.16
	pkgsrc-2011Q3:1.16.0.6
	pkgsrc-2011Q3-base:1.16
	pkgsrc-2011Q2:1.16.0.4
	pkgsrc-2011Q2-base:1.16
	TNF:1.1.1
	pkgsrc-2011Q1:1.16.0.2
	pkgsrc-2011Q1-base:1.16
	pkgsrc-2010Q4:1.15.0.36
	pkgsrc-2010Q4-base:1.15
	pkgsrc-2010Q3:1.15.0.34
	pkgsrc-2010Q3-base:1.15
	pkgsrc-2010Q2:1.15.0.32
	pkgsrc-2010Q2-base:1.15
	pkgsrc-2010Q1:1.15.0.30
	pkgsrc-2010Q1-base:1.15
	pkgsrc-2009Q4:1.15.0.28
	pkgsrc-2009Q4-base:1.15
	pkgsrc-2009Q3:1.15.0.26
	pkgsrc-2009Q3-base:1.15
	pkgsrc-2009Q2:1.15.0.24
	pkgsrc-2009Q2-base:1.15
	pkgsrc-2009Q1:1.15.0.22
	pkgsrc-2009Q1-base:1.15
	pkgsrc-2008Q4:1.15.0.20
	pkgsrc-2008Q4-base:1.15
	pkgsrc-2008Q3:1.15.0.18
	pkgsrc-2008Q3-base:1.15
	cube-native-xorg:1.15.0.16
	cube-native-xorg-base:1.15
	pkgsrc-2008Q2:1.15.0.14
	pkgsrc-2008Q2-base:1.15
	cwrapper:1.15.0.12
	pkgsrc-2008Q1:1.15.0.10
	pkgsrc-2008Q1-base:1.15
	pkgsrc-2007Q4:1.15.0.8
	pkgsrc-2007Q4-base:1.15
	pkgsrc-2007Q3:1.15.0.6
	pkgsrc-2007Q3-base:1.15
	pkgsrc-2007Q2:1.15.0.4
	pkgsrc-2007Q2-base:1.15
	pkgsrc-2007Q1:1.15.0.2
	pkgsrc-2007Q1-base:1.15
	pkgsrc-2006Q4:1.14.0.10
	pkgsrc-2006Q4-base:1.14
	pkgsrc-2006Q3:1.14.0.8
	pkgsrc-2006Q3-base:1.14
	pkgsrc-2006Q2:1.14.0.6
	pkgsrc-2006Q2-base:1.14
	pkgsrc-2006Q1:1.14.0.4
	pkgsrc-2006Q1-base:1.14
	pkgsrc-2005Q4:1.14.0.2
	pkgsrc-2005Q4-base:1.14
	pkgsrc-2005Q3:1.13.0.14
	pkgsrc-2005Q3-base:1.13
	pkgsrc-2005Q2:1.13.0.12
	pkgsrc-2005Q2-base:1.13
	pkgsrc-2005Q1:1.13.0.10
	pkgsrc-2005Q1-base:1.13
	pkgsrc-2004Q4:1.13.0.8
	pkgsrc-2004Q4-base:1.13
	pkgsrc-2004Q3:1.13.0.6
	pkgsrc-2004Q3-base:1.13
	pkgsrc-2004Q2:1.13.0.4
	pkgsrc-2004Q2-base:1.13
	pkgsrc-2004Q1:1.13.0.2
	pkgsrc-2004Q1-base:1.13
	pkgsrc-2003Q4:1.12.0.4
	pkgsrc-2003Q4-base:1.12
	netbsd-1-6-1:1.12.0.2
	netbsd-1-6-1-base:1.12
	netbsd-1-6:1.11.0.8
	netbsd-1-6-RELEASE-base:1.11
	pkgviews:1.11.0.4
	pkgviews-base:1.11
	buildlink2:1.11.0.2
	buildlink2-base:1.11
	netbsd-1-5-PATCH003:1.11
	netbsd-1-5-PATCH001:1.11
	netbsd-1-5-RELEASE:1.10
	netbsd-1-4-PATCH003:1.10
	netbsd-1-4-PATCH002:1.8
	comdex-fall-1999:1.7
	netbsd-1-4-PATCH001:1.7
	netbsd-1-4-RELEASE:1.6
	netbsd-1-3-PATCH003:1.6
	netbsd-1-3-PATCH002:1.5
	hubertf-1997-09-25:1.1.1.1;
locks; strict;
comment	@# @;


1.20
date	2020.03.05.12.52.33;	author wiz;	state dead;
branches;
next	1.19;
commitid	Qs6o8oAS65JKcdZB;

1.19
date	2018.04.02.16.26.03;	author spz;	state Exp;
branches;
next	1.18;
commitid	3LJ8DHcvvKg4YSwA;

1.18
date	2015.08.17.17.10.32;	author wiz;	state Exp;
branches
	1.18.24.1;
next	1.17;
commitid	EYoY3kODKZtJ3Exy;

1.17
date	2014.05.11.16.55.17;	author rodent;	state Exp;
branches;
next	1.16;
commitid	bYIdIpPD7Pu4R8Ax;

1.16
date	2011.02.28.11.02.46;	author adam;	state Exp;
branches;
next	1.15;

1.15
date	2007.01.08.11.01.05;	author adam;	state Exp;
branches;
next	1.14;

1.14
date	2005.10.20.00.01.32;	author wiz;	state Exp;
branches;
next	1.13;

1.13
date	2004.03.03.13.36.09;	author adam;	state Exp;
branches;
next	1.12;

1.12
date	2002.09.01.18.36.36;	author tron;	state Exp;
branches;
next	1.11;

1.11
date	2000.10.15.04.50.11;	author jlam;	state Exp;
branches;
next	1.10;

1.10
date	2000.10.12.14.56.45;	author jlam;	state Exp;
branches;
next	1.9;

1.9
date	2000.07.14.21.29.09;	author jlam;	state Exp;
branches;
next	1.8;

1.8
date	2000.01.15.18.39.29;	author jlam;	state Exp;
branches;
next	1.7;

1.7
date	99.07.06.07.51.04;	author jlam;	state Exp;
branches;
next	1.6;

1.6
date	98.08.07.10.40.26;	author agc;	state Exp;
branches;
next	1.5;

1.5
date	98.03.08.01.28.31;	author agc;	state Exp;
branches;
next	1.4;

1.4
date	98.01.09.14.52.36;	author agc;	state Exp;
branches;
next	1.3;

1.3
date	97.12.15.01.00.46;	author hubertf;	state Exp;
branches;
next	1.2;

1.2
date	97.11.26.14.50.48;	author agc;	state Exp;
branches;
next	1.1;

1.1
date	97.10.27.04.28.54;	author hubertf;	state Exp;
branches
	1.1.1.1;
next	;

1.18.24.1
date	2018.04.07.20.50.43;	author spz;	state Exp;
branches;
next	;
commitid	POOsH5fcTLTdiyxA;

1.1.1.1
date	97.10.27.04.28.54;	author hubertf;	state Exp;
branches;
next	;


desc
@@


1.20
log
@ncurses: clean up patches

Remove cargo-cult packages, only keep the ones for renaming the
form/menu/panel libraries to gnu*.
Handle (removing) terminfo symlink in Makefile instead of as a patch.

No functional change intended.
@
text
@$NetBSD: patch-aa,v 1.19 2018/04/02 16:26:03 spz Exp $

--- ./misc/run_tic.in.orig	2017-10-24 00:16:22.000000000 +0000
+++ ./misc/run_tic.in
@@@@ -124,13 +124,13 @@@@ fi
 # would generate a lot of confusing error messages if we tried to overwrite it.
 # We explicitly remove its contents rather than the directory itself, in case
 # the directory is actually a symbolic link.
-if test -d "$TERMINFO"
-then
-	( cd "$TERMINFO" && rm -fr ? 2>/dev/null )
-elif test -f "$TERMINFO.db"
-then
-	( rm -f "$TERMINFO.db" 2>/dev/null )
-fi
+#if test -d "$TERMINFO"
+#then
+#	( cd "$TERMINFO" && rm -fr ? 2>/dev/null )
+#elif test -f "$TERMINFO.db"
+#then
+#	( rm -f "$TERMINFO.db" 2>/dev/null )
+#fi
 
 if test "$ext_funcs" = 1 ; then
 cat <<EOF
@@@@ -172,6 +172,9 @@@@ else
 fi
 fi
 
+# For NetBSD pkgsrc, don't bother with setting a symbolic link.
+exit 0
+
 # Make a symbolic link to provide compatibility with applications that expect
 # to find terminfo under /usr/lib.  That is, we'll _try_ to do that.  Not
 # all systems support symbolic links, and those that do provide a variety
@


1.19
log
@update ncurses(w) to version 6.1, which fixes CVE-2017-13728 and
CVE-2017-16879

summary relnotes:
 This release is designed to be source-compatible with ncurses 5.0
 through 6.0; providing extensions to the application binary interface (ABI).
 Although the source can still be configured to support the ncurses 5 ABI,
 the intent of the release is to provide extensions to the ncurses 6 ABI:

    improve integration of tput and tset

    provide support for extended numeric capabilities.

The lengthy details are at http://invisible-island.net/ncurses/announce.html
@
text
@d1 1
a1 1
$NetBSD$
@


1.18
log
@Update to 6.0:

   This  release  is  designed  to  be source-compatible with ncurses 5.0
   through  5.9;  providing  a  new  application  binary interface (ABI).
   Although  the  source can still be configured to support the ncurses 5
   ABI,  the  intent  of  the  release is to provide extensions which are
   generally useful, but binary-incompatible with ncurses 5:
     * Extend  the  cchar_t  structure to allow more than 16 colors to be
       encoded.
     * Modify  the  encoding  of mouse state to make room for a 5th mouse
       button.  That  allows  one  to use ncurses with a wheel mouse with
       xterm or similar X terminal emulators.

   There are, of course, numerous other improvements, including
     * fixes made based on the Clang and Coverity static analyzers.
     * memory leak fixes using Valgrind

   The  release  notes  mention  some  bug-fixes,  but are focused on new
   features  and  improvements to existing features log since ncurses 5.9
   release.

   While  the intent of the release is to provide a new stable ABI, there
   are other development activities which are summarized below.
     * The  original  release  plan,  e.g., for "5.10" was to improve the
       MinGW port. Ultimately that was completed (wide-character support,
       mouse,  etc),  but  was  deferred  to focus on termcap support and
       performance  issues.  Also, pinpointing the problems with Console2
       took a while.
     * A  review  of  termcap  compatibility in 2011 led to several minor
       fixes  in  the  library  and improvements to utilities. To do this
       properly,  a  review of the various extent termcap implementations
       was needed.
       The [11]termcap library checker (tctest) (not part of ncurses) was
       one    result.    A   followup   review   of   performance   using
       [12]ncurses-examples in 2014 led to additional improvements.
     * Output buffering provided a further, but worthwhile distraction. A
       bug  report  in  2012  regarding  the  use  of  signal handlers in
       ncurses)  pointed  out  [13]a  problem  with  the  use  of  unsafe
       functions  for  handling SIGTSTP. Other signals could be addressed
       with workarounds; repairing SIGTSTP required a different approach.
       The  solution  required changing internal behavior of the library:
       how it handles output buffering.
       Now  ncurses buffers its own output, independently of the standard
       output.  A few applications relied upon the library's direct reuse
       of  the  standard  output  buffering;  however that is unspecified
       behavior  and  has  never been a recommended practice. Identifying
       these  applications  as  well  as  refining  the  change to permit
       low-level applications to work consistently took time.
     * Since  the introduction of the experimental support for 256 colors
       early  in  [14]2005  (released in [15]ncurses 5.5), there has been
       increased  user  interest. Almost all packagers continue providing
       the ncurses ABI 5 which cannot support 256 colors.
     * Symbol  versioning,  or  the  lack  of  it in ncurses, is the main
       reason why packagers would be reluctant to add a new ncurses ABI.
       This  release  provides  the  new  ABI along with script-generated
       lists  of versioned symbols which can be used for both ABI 5 and 6
       (with  distinct names to keep the two separate). This took time to
       development, as reported in [16]Symbol versioning in ncurses.

  Library improvements

  Output buffering

   X/Open curses provides more than one initialization function:
     * [17]initscr (the simplest) accepts no parameters.
     * [18]newterm accepts parameters for the stream input and output
     * [19]setupterm (the low-level function) accepts a parameter for the
       file descriptor of the output.

   They are documented in X/Open as if initscr calls newterm using stdout
   for   output  stream,  and  in  turn  newterm  calls  setupterm  using
   fileno(stdout)  for  the file descriptor. As long as an implementation
   acts  as if it does this, it conforms. In practice, implementations do
   what  is  implied.  This  creates  a  problem: the low-level setupterm
   function's  file  descriptor  is  unbuffered,  while  newterm  implies
   buffered  output.  X/Open  Curses says that all output is done through
   the  file  descriptor,  and  does  not  say  how  the output stream is
   actually used.

   Initially,  ncurses used the file descriptor (obtained from the output
   stream  passed to newterm) for changing the terminal modes, and relied
   upon  the  output  parameter of newterm for buffered output. Later (to
   avoid  using  unsafe  buffered  I/O  in  signal handlers), ncurses was
   modified  to use the file descriptor (unbuffered output) when cleaning
   up  on receipt of a signal. Otherwise (when not handling a signal), it
   continued to use the buffered output.

   That  approach  worked reasonably well and as a side effect, using the
   same buffered output as an application might use for printf meant that
   no   flushing   was   needed   when   switching  between  normal-  and
   screen-modes.

   There were a couple of problems:
     * to get good performance, curses (not only ncurses, but SVr4 curses
       in general) set an output buffer using setbuf or similar function.
       There  is no standard (or portable) way to turn that output buffer
       off,  and  revert  to  line-buffering.  The  [20]NCURSES_NO_SETBUF
       environment variable did make it optional.
     * to  handle SIGTSTP (the "stop" signal), ncurses relied upon unsafe
       functions.  That  is,  due  to  the  complexity of the feature, it
       relied  upon reusing existing functions which should not have been
       called via the signal handler.

   Conveniently, solving the second problem (by making ncurses do its own
   output  buffering)  also  fixed  the first one. But there were special
   cases to resolve: [21]low-level functions such as mvcur, putp, vidattr
   explicitly  use  the  standard  output.  Those  functions  were reused
   internally, and required modification to distinguish whether they were
   used by the high-level or low-level interfaces.

   Finally, there may still be a few programs which should be modified to
   improve their portability, e.g., adding an

fflush(stdout);

   when  switching  from "[22]shell" mode to "[23]program" (curses) mode.
   Those are fairly rare because most programmers have learned not to mix
   printf and [24]printw.

  Symbol versioning

   This  release  introduces symbol-versioning to ncurses because without
   it,  the  change of ABI would be less successful. A lengthy discussion
   will  be  presented  in  [25]Symbol versioning in ncurses. These notes
   summarize what has changed, and what can be done with the new release.

   Symbol-versioning  allows  the  developers  of  a library to mark each
   public  symbol  (both  data and functions) with an identifier denoting
   the  library  name  and  the  version for which it was built. By doing
   this, users of the library have a way to help ensure that applications
   do not accidentally load an incompatible library. In addition, private
   symbols can be hidden entirely.

   This   release   provides   sample   files   for  the  four  principal
   configurations  of  ncurses libraries: ncurses, ncursesw, ncursest and
   ncursestw. Each sample is given in two forms:

   ".map"
          These list all public symbols, together with version names.

   ".sym"
          These list all public symbols, without version names.

   The  sample  files  are generated by scripts which take into account a
   few special cases such as [26]tack to omit many of the ncurses private
   symbols  (beginning with "_nc_"). Here are counts of globals versus
   locals:

      Config   Symbols Globals Locals "_nc_"
     ncurses       976     796    180    332
     ncursesw     1089     905    184    343
     ncursest      979     804    175    358
     ncursestw    1098     914    184    372

   Although only four sample configurations are presented, each is formed
   by  merging  symbols  from  several  combinations  of configure-script
   options, taking into account advice from downstream packagers. Because
   they  are  formed by merging, the sample files may list a symbol which
   is  not  in  a  given package. That is expected. The samples have been
   tested  and  are  working  with  systems  (such as Fedora, FreeBSD and
   Debian)  which  fully  support  this  feature. There are other systems
   which  do  not  support the feature, and a few (such as Solaris) which
   provide incomplete support.

   The  version-naming convention used allows these sample files to build
   distinct libraries for ABI 5 and 6. Version names consist of
     * configuration   name,  e.g.,  "NCURSESW"  for  the  wide-character
       libraries
     * ABI version (if not 5)
     * library  name  for two special cases which have the same interface
       across configurations: "TINFO" and "TIC"
     * release version
     * patch date (for the release version)

   For  example,  running  nm  -D  on  the libraries in the ncurses6 test
   package shows these symbol-versions:

0000000000000000 A NCURSES6_TIC_5.0.19991023
0000000000000000 A NCURSES6_TIC_5.1.20000708
0000000000000000 A NCURSES6_TIC_5.5.20051010
0000000000000000 A NCURSES6_TIC_5.7.20081102
0000000000000000 A NCURSES6_TIC_5.9.20150530
0000000000000000 A NCURSES6_TINFO_5.0.19991023
0000000000000000 A NCURSES6_TINFO_5.1.20000708
0000000000000000 A NCURSES6_TINFO_5.2.20001021
0000000000000000 A NCURSES6_TINFO_5.3.20021019
0000000000000000 A NCURSES6_TINFO_5.4.20040208
0000000000000000 A NCURSES6_TINFO_5.5.20051010
0000000000000000 A NCURSES6_TINFO_5.6.20061217
0000000000000000 A NCURSES6_TINFO_5.7.20081102
0000000000000000 A NCURSES6_TINFO_5.8.20110226
0000000000000000 A NCURSES6_TINFO_5.9.20150530
0000000000000000 A NCURSESW6_5.1.20000708
0000000000000000 A NCURSESW6_5.3.20021019
0000000000000000 A NCURSESW6_5.4.20040208
0000000000000000 A NCURSESW6_5.5.20051010
0000000000000000 A NCURSESW6_5.6.20061217
0000000000000000 A NCURSESW6_5.7.20081102
0000000000000000 A NCURSESW6_5.8.20110226
0000000000000000 A NCURSESW6_5.9.20150530

   As  a special case, this release (which makes the final change for ABI
   5) is marked with release version 5.9 and patch date 20150530.

  Miscellaneous

   The new release has several improvements for performance and building.
   For instance:
     * several  files  in ncurses- and progs-directories were modified to
       allow  const  data used in internal tables to be put by the linker
       into the readonly text segment.
     * various improvements were made to building the Ada95 binding, both
       in simplifying the generated files as well as improving the way it
       uses gnatmake

   There are also new features in the libraries:
     * added [27]use_tioctl function
     * added  [28]wgetdelay  to  retrieve  _delay  member of WINDOW if it
       happens to be opaque, e.g., in the pthread configuration.
     * added [29]A_ITALIC extension.
     * added  form  library  extension [30]O_DYNAMIC_JUSTIFY option which
       can  be  used to override the different treatment of justification
       for static versus dynamic fields .
     * rewrote  [31]putwin  and  [32]getwin,  making  an extended version
       which  is  capable of reading screen-dumps between the wide/normal
       ncurses  configurations.  These are text files, except for a magic
       code at the beginning:

0       string          \210\210        Screen-dump (ncurses)

     * several changes to mouse support include:
          + added decoder for xterm SGR 1006 mouse mode.
          + added experimental support for "%u" format to terminfo.
          + improved  behavior  of  wheel-mice for xterm protocol: noting
            that  there  are only button-presses for buttons "4" and "5",
            so   there  is  no  need  to  wait  to  combine  events  into
            double-clicks .

   There   are   a   few  new  configure  options  dealing  with  library
   customization:
     * add "--enable-ext-putwin" configure option to turn on the extended
       putwin/getwin.  By default, this is enabled for ABI 6 and disabled
       with ABI 5.
     * add  "--enable-string-hacks" option to control whether strlcat and
       strlcpy  may  be  used. Because ncurses already does the requisite
       buffer-limit  checks,  this feature is mainly of interest to quiet
       compiler-warnings on a few systems.
     * add  configure  option  "--with-tparm-arg"  to  allow  [33]tparm's
       parameters  to  be  something more likely to be the same size as a
       pointer, e.g., intptr_t (again, the default is set for ABI 6).

  Program improvements

    Utilities

   Most of the termcap-related changes based on development of [34]tctest
   (termcap  library  checker)  are  implemented  in  the tic and infocmp
   programs   rather   than  affecting  the  library.  As  noted  in  the
   [35]discussion  of  tctest,  ncurses's  ability  to  translate between
   terminfo and termcap formats has been improved at different times, but
   subject  to  feedback from "real" termcap users. There are very few of
   those.  Nowadays,  virtually  all  termcap users are using ncurses (or
   NetBSD, with its own terminfo library) and their programs are actually
   using terminfo rather than termcap data.

   Still,  there  are a few. A comment about the translation of the ASCII
   NUL character prompted a review:
     * Both   terminfo   and   termcap   store   string  capabilities  as
       NUL-terminated strings.
     * In terminfo, a \0 in a terminal description is stored as \200.
     * There are no (known) terminals which would behave differently when
       sent \0 or \200.
     * When  translating  to  terminfo  format (or displaying a printable
       version of an entry using infocmp), ncurses shows \200 as \0.
     * It has done this since 1998 (quoting from the NEWS file):

[36]980103
...
        + modify _nc_tic_expand() to generate \0 rather than \200.
...
        + correct translation of terminfo "^@@", to \200, like \0.

     * However,  the  _nc_tic_expand  function (which optionally produces
       terminfo  or termcap format) did not address this special case for
       termcap.  Even  the  later  4.4BSD  [37]cgetstr  interprets  a  \0
       literally,  ending  that  string  (rather  than using the terminfo
       improvement).

   As  a  result of the review, several improvements were made to ncurses
   translation to/from termcap format -- and improving the checks made in
   tic  for  consistency  of  entries.  Most  of these are not of general
   interest, except for two new command-line options for tic and infocmp:
     * the  "-0"  option  generates  termcap/terminfo  source on a single
       line.
     * the  "-K"  option  provides stricter BSD-compatibility for termcap
       output.

   Other user-visible improvements and new features include:
     * added  "-D"  option  to  tic  and  infocmp,  to  show the database
       locations that it could use.
     * added "-s" option to toe, to sort its output.
     * extended  "-c" and "-n" options of infocmp to allow comparing more
       than two entries.
     * modified  toe's report when "-a" and "-s" options are combined, to
       add a column showing which entries belong to a given database.
     * modified  the clear program to take into account the "E3" extended
       capability to clear the terminal's scrollback buffer.

    Examples

   Along  with  the library and utilities, many improvements were made to
   the  [38]ncurses-examples.  Some  were  made  to  allow  building (and
   comparison-testing) against NetBSD curses and PDCurses. Both lack some
   of  the  X/Open Curses features, necessitating customization. But this
   activity  was  useful  because  it  showed  some remaining performance
   issues (which have been resolved in this release).

   These changes were made to verify compatibility or compare performance
   of ncurses:
     * made  workarounds  for compiling test-programs with NetBSD curses,
       though it lacks some common functions such as [39]use_env.
     * added dots_termcap test-program
     * added  dots_curses test-program, for comparison with the low-level
       examples.
     * added   test_setupterm  test-proram  to  demonstrate  normal/error
       returns from the setupterm and restartterm functions.
     * added  "-d",  "-e"  and  "-q"  options  to  the  demo_terminfo and
       demo_termcap test-programs.
     * added   "-y"   option   to   demo_termcap  and  test/demo_terminfo
       test-programs   to   demonstrate  behavior  with/without  extended
       capabilities.
     * modified  demo_termcap  and  demo_terminfo  test-programs  to make
       their  options  more  directly  comparable, and add "-i" option to
       specify  a  terminal  description  filename  to parse for names to
       lookup.
     * rewrote   the  tests  for  [40]mvderwin  and  test  for  recursive
       [41]mvwin in the movewindow test-program.

   These changes were made to help with the MinGW port:
     * added   test-screens   to   the   ncurses   test-program  to  show
       256-characters at a time, to help with MinGW port.
     * modified the view test-program to load UTF-8 when built with MinGW
       by  using  regular win32 API because the MinGW functions mblen and
       mbtowc do not work.
     * added "-s" option to the view test-program to allow it to start in
       single-step mode, reducing size of trace files when it is used for
       debugging MinGW changes.

   These changes were made to verify new extensions in ncurses:
     * added   [42]form_driver_w   entrypoint   to  wide-character  forms
       library, as well as form_driver_w test-program.
     * modified  ncurses  test-program's  b/B tests to display lines only
       for  the  attributes which a given terminal supports, to make room
       for an italics test.
     * modified  ncurses  test-program,  adding  "-E" and "-T" options to
       demonstrate use_env versus use_tioctl.
     * modified ncurses test-program's c/C tests to cycle through subsets
       of   the   total   number   of   colors,   to   better  illustrate
       8/16/88/256-colors by providing directly comparable screens.
     * modified the ncurses test-program to also show position reports in
       'a' test.

   These changes were made to make the examples more useful:
     * added scripts for building dpkg and rpm test-packages
     * modified  the  hanoi  test-program  to  show the minimum number of
       moves possible for the given number of tiles.
     * modified  the  knight  test-program  to show the number of choices
       possible for each position in automove option, e.g., to allow user
       to follow Warnsdorff's rule to solve the puzzle.

  Terminal database

   This  release  provides  improvements  to  tic's "-c" checking option,
   which was used for example to
     * make sgr in several entries agree with other caps.
     * correct  padding  in  some  entries  where  earlier  versions  had
       miscounted the number of octal digits.

   There are several new terminal descriptions:
     * [43]mlterm is now aliased to mlterm3
     * [44]nsterm is now derived from nsterm-256color
     * [45]putty-sco
     * [46]teken is FreeBSD's "xterm" console.
     * [47]terminator
     * [48]terminology
     * [49]tmux is derived from screen.
     * several  screen.XXX  entries support the respective variations for
       256 colors.
     * [50]simpleterm is now 0.5
     * [51]vte is aliased to vte-2012
     * [52]vt520ansi

   A few entries use extensions (user-defined terminal capabilities):
     * E3,  used  in  linux,  putty  and  xterm-basic  is  tested  in the
       [53]clear program to erase a terminal's scrollback.
     * TS  is  used  in the [54]xterm+sl building block to help deprecate
       the misuse of tsl for xterm's title-string.
     * XT  is  used  in  some  terminfo entries to improve usefulness for
       other  applications  than screen, which would like to pretend that
       xterm's title is a status-line.
     * xm  is  used  in  examples  [55]xterm-1005  and  [56]xterm-1006 to
       illustrate a way to make mouse handling more general

   A   few   terminals   support  italics  and/or  dim  capabilities.  In
   particular,  screen  does  not.  Documented that, and accommodated the
   terminals where this feature works with the A_ITALIC extension.
     * konsole, mlterm3 (italics)
     * nsterm (dim)
     * screen (dim)
     * vte (dim, italics)
     * xterm (dim, italics)

  Documentation

   As usual, this release
     * improves documentation by describing new features,
     * attempts  to  improve the description of features which users have
       found confusing
     * fills  in overlooked descriptions of features which were described
       in the [57]NEWS file but treated sketchily in manual pages.

   In  addition,  the  mechanism  for  producing  HTML  versions  of  the
   documentation has been improved:
     * use an improved version of [58]man2html to generate html manpages.
     * regenerated  [59]NCURSES-Programming-HOWTO.html to fix some of the
       broken html emitted by docbook.

  Interesting bug-fixes

     * Ada95 binding:
          + modify  makefile  rules  to ensure that the PIC option is not
            used when building a static library
          + make  Ada95  build-fix  for  big-endian architectures such as
            sparc.  This undoes one of the fixes from [60]20110319, which
            added an "Unused" member to representation clauses, replacing
            that with pragmas to suppress warnings about unused bits.
     * Color and attributes:
          + parenthesize  parameter  of  COLOR_PAIR  and  PAIR_NUMBER  in
            curses.h in case it happens to be a comma-expression.
          + improve  [61]20021221  workaround  for broken acs, handling a
            case  where  that ACS_xxx character is not in the acsc string
            but there is a known wide-character which can be used.
          + modify  [62]init_pair  to  accept  -1's for color value after
            [63]assume_default_colors has been called.
          + add  a  check  in [64]start_color to limit color-pairs to 256
            when extended colors are not supported.
     * Resizing the screen:
          + propagate  error-returns  from  wresize,  i.e.,  the internal
            increase_size    and    decrease_size    functions    through
            [65]resize_term.
          + add  check  for  zero/negative  dimensions for resizeterm and
            resize_term.
          + modify  resizeterm to always push a KEY_RESIZE onto the fifo,
            even  if  screensize  is  unchanged. Modify library to push a
            KEY_RESIZE  if there was a SIGWINCH, even if it does not call
            resizeterm).   These  changes  eliminate  the  case  where  a
            SIGWINCH  is  received,  but  ERR  is returned from wgetch or
            wgetnstr because the screen dimensions did not change.
     * Low-level interfaces
          + fix  an old bug in the termcap emulation; "%i" was ignored in
            tparm  because  the parameters to be incremented were already
            on the internal stack.
          + change  "%l" behavior in tparm to push the string length onto
            the  stack  rather  than saving the formatted length into the
            output buffer.
          + modify  name-comparison  for  tgetstr,  etc.,  to accommodate
            legacy  applications  as well as to improve compatbility with
            BSD 4.2 termcap implementations (see note for [66]980725).
     * High-level interfaces
          + modify internal recursion in wgetch which handles cooked mode
            to  check if the call to wgetnstr returned an error. This can
            happen  when  both nocbreak and nodelay are set, for instance
            (see note for [67]960418).
          + add a check in internal function waddch_nosync to ensure that
            tab characters are treated as control characters; some broken
            locales claim they are printable.
          + modify  menu  library  to  ensure  that  a  menu's top-row is
            adjusted  as needed to ensure that the current item is on the
            screen
          + fix  special  case  where double-width character overwrites a
            single- width character in the first column.

  Configuration changes

    Major changes

   The ncurses 6.0 configure script makes changes to the default value of
   several  configure options, depending on the --with-abi-version option
   (i.e., whether its value is "5" or "6"):

   --enable-const
          Feature  introduced  in  [68]970405  supports  the use of const
          where  X/Open  Curses  should  have, but did not. NetBSD curses
          does something similar with const.

   --enable-ext-colors
          Extends  the  cchar_t structure to allow more than 16 colors to
          be   encoded.   This   applies   only   to  the  wide-character
          (--enable-widec) configuration.

   --enable-ext-mouse
          Modifies  the  encoding  of  mouse state to make room for a 5th
          mouse button. That allows one to use ncurses with a wheel mouse
          with xterm or similar X terminal emulators.

   --enable-ext-putwin
          Modifies  the  file-format  written  by putwin to use printable
          text  rather  than binary files, allowing getwin to read screen
          dumps  written by differently-configured ncurses libraries. The
          extended  getwin  can  still  read binary screen dumps from the
          same  configuration  of  ncurses.  This does not change the ABI
          (the binary interface seen by calling applications).

   --enable-interop
          Modifies  the  FIELDTYPE structure used for the form library to
          make it more generic.

   --enable-lp64
          Allows  an  application  to  define _LP64 to declare chtype and
          mmask_t  as  simply "unsigned" rather than the configured types
          using the --with-chtype and --with-mmask_t options.

   --enable-sp-funcs
          Compile-in support for extended functions which accept a SCREEN
          pointer,  reducing  the  need  for juggling the global SP value
          with [69]set_term and [70]delscreen.

   --with-chtype=uint32_t
          Makes chtype explicitly a 32-bit unsigned value.

   --with-mmask_t=uint32_t
          Makes mmask_t explicitly a 32-bit unsigned value.

   --with-tparm-arg=intptr_t
          X/Open  Curses  declares  [71]tparm  using long for each of the
          parameters  aside  from  the  formatting string, presuming that
          long  and  char*  are the same size. This configure option uses
          intptr_t which provides a better guarantee of the sizes.

   The  configure  script  no longer checks for antique compilers; c89 is
   assumed  as  a  minimum. There are a few features from later revisions
   which  are  used  when available. The configure script makes checks to
   turn on useful warnings from clang, gcc and icc. You should be able to
   build  ncurses  6.0  with  any  of  the  current (or not so current) C
   compilers available in 2015.

   The configure script, by the way, makes changes which do not work with
   systems  whose  /bin/sh is non-POSIX. This mainly affects Solaris (the
   other  vendor  unix systems have followed the POSIX guidelines for the
   past  twenty  years).  If  you  must  build  on  Solaris, its [72]xpg4
   binaries suffice, e.g.,

     #!/bin/sh
     WHAT=`hostname|sed -e 's/\..*//'`
     OUT=configure.out
     cat >>$OUT <<EOF/
     ** `date`
     ** node: $WHAT
     ** user: `id`
     ** conf: $*
     EOF/

     SHELL=/bin/sh
     if test -f /usr/xpg4/bin/sh
     then
             CONFIG_SHELL=/usr/xpg4/bin/sh
             export CONFIG_SHELL
             SHELL=$CONFIG_SHELL
     fi

     rm -f config.status config.cache
     TOP=$HOME/$WHAT
     $SHELL ./configure --verbose \
             --disable-echo \
             --disable-overwrite \
             --enable-warnings \
             --with-warnings \
             --prefix=$TOP $* 2>&1 | tee -a $OUT

   Other major changes to the configure script include:
     * ABI 6 is now the default, intending that the existing ABI 5 should
       build as before using the "--with-abi-version=5" option.
     * added   --with-extra-suffix   option   to   help  with  installing
       nonconflicting  ncurses6  packages,  e.g.,  avoiding  header-  and
       library-conflicts.
       NOTE: as a side-effect, this renames

     adacurses-config to adacurses5-config and
     adacursesw-config to adacursesw5-config
     * the  configure  script  looks  for gnatgcc if the Ada95 binding is
       built,  in  preference  to  the  default  gcc/cc.  The script also
       ensures  that  the  Ada95  binding  is  built  with  the  level of
       optimization as the C libraries.
     * the  configure script captures define's related to -D_XOPEN_SOURCE
       from  the  configure check and adds those to the *-config and *.pc
       files, to simplify use for the wide-character libraries.
@
text
@d1 1
a1 1
$NetBSD: patch-aa,v 1.17 2014/05/11 16:55:17 rodent Exp $
d3 3
a5 3
--- misc/run_tic.in.orig	2012-10-06 19:00:51.000000000 +0000
+++ misc/run_tic.in
@@@@ -123,7 +123,7 @@@@ fi
d9 14
a22 2
-( test -d "$TERMINFO" && cd $TERMINFO && rm -fr ? 2>/dev/null )
+#( test -d "$TERMINFO" && cd $TERMINFO && rm -fr ? 2>/dev/null )
d26 1
a26 1
@@@@ -165,6 +165,9 @@@@ else
@


1.18.24.1
log
@Pullup ticket #5733 - requested by bsiegert
devel/ncurses: security update
devel/ncursesw: security update

Revisions pulled up:
- devel/ncurses/Makefile                                        1.97
- devel/ncurses/Makefile.common                                 1.35
- devel/ncurses/PLIST                                           1.24
- devel/ncurses/distinfo                                        1.34
- devel/ncurses/patches/patch-aa                                1.19
- devel/ncurses/patches/patch-ab                                1.21
- devel/ncurses/patches/patch-ac                                1.26
- devel/ncurses/patches/patch-c++_Makefile.in                   1.2
- devel/ncurses/patches/patch-ncurses_tinfo_alloc__entry.c      deleted
- devel/ncurses/patches/patch-ncurses_tinfo_lib__baudrate.c     deleted
- devel/ncurses/patches/patch-ncurses_tinfo_parse__entry.c      deleted
- devel/ncursesw/Makefile                                       1.16

-------------------------------------------------------------------
   Module Name:    pkgsrc
   Committed By:   spz
   Date:           Mon Apr  2 16:26:04 UTC 2018

   Modified Files:
           pkgsrc/devel/ncurses: Makefile Makefile.common PLIST distinfo
           pkgsrc/devel/ncurses/patches: patch-aa patch-ab patch-ac
               patch-c++_Makefile.in
           pkgsrc/devel/ncursesw: Makefile
   Removed Files:
           pkgsrc/devel/ncurses/patches: patch-ncurses_tinfo_alloc__entry.c
               patch-ncurses_tinfo_lib__baudrate.c
               patch-ncurses_tinfo_parse__entry.c

   Log Message:
   update ncurses(w) to version 6.1, which fixes CVE-2017-13728 and
   CVE-2017-16879

   summary relnotes:
    This release is designed to be source-compatible with ncurses 5.0
    through 6.0; providing extensions to the application binary interface
   (ABI).
    Although the source can still be configured to support the ncurses 5 ABI,
    the intent of the release is to provide extensions to the ncurses 6 ABI:

       improve integration of tput and tset

       provide support for extended numeric capabilities.

   The lengthy details are at http://invisible-island.net/ncurses/announce.html


   To generate a diff of this commit:
   cvs rdiff -u -r1.96 -r1.97 pkgsrc/devel/ncurses/Makefile
   cvs rdiff -u -r1.34 -r1.35 pkgsrc/devel/ncurses/Makefile.common
   cvs rdiff -u -r1.23 -r1.24 pkgsrc/devel/ncurses/PLIST
   cvs rdiff -u -r1.33 -r1.34 pkgsrc/devel/ncurses/distinfo
   cvs rdiff -u -r1.18 -r1.19 pkgsrc/devel/ncurses/patches/patch-aa
   cvs rdiff -u -r1.20 -r1.21 pkgsrc/devel/ncurses/patches/patch-ab
   cvs rdiff -u -r1.25 -r1.26 pkgsrc/devel/ncurses/patches/patch-ac
   cvs rdiff -u -r1.1 -r1.2 pkgsrc/devel/ncurses/patches/patch-c++_Makefile.in
   cvs rdiff -u -r1.1 -r0 \
       pkgsrc/devel/ncurses/patches/patch-ncurses_tinfo_alloc__entry.c \
       pkgsrc/devel/ncurses/patches/patch-ncurses_tinfo_parse__entry.c
   cvs rdiff -u -r1.2 -r0 \
       pkgsrc/devel/ncurses/patches/patch-ncurses_tinfo_lib__baudrate.c
   cvs rdiff -u -r1.15 -r1.16 pkgsrc/devel/ncursesw/Makefile
@
text
@d1 1
a1 1
$NetBSD$
d3 3
a5 3
--- ./misc/run_tic.in.orig	2017-10-24 00:16:22.000000000 +0000
+++ ./misc/run_tic.in
@@@@ -124,13 +124,13 @@@@ fi
d9 2
a10 14
-if test -d "$TERMINFO"
-then
-	( cd "$TERMINFO" && rm -fr ? 2>/dev/null )
-elif test -f "$TERMINFO.db"
-then
-	( rm -f "$TERMINFO.db" 2>/dev/null )
-fi
+#if test -d "$TERMINFO"
+#then
+#	( cd "$TERMINFO" && rm -fr ? 2>/dev/null )
+#elif test -f "$TERMINFO.db"
+#then
+#	( rm -f "$TERMINFO.db" 2>/dev/null )
+#fi
d14 1
a14 1
@@@@ -172,6 +172,9 @@@@ else
@


1.17
log
@Fix build for OpenBSD >= 5.5. It doesn't have sys/ttydev.h. Regenerate
patchset and checksums.
@
text
@d1 1
a1 1
$NetBSD: patch-aa,v 1.16 2011/02/28 11:02:46 adam Exp $
d3 1
a3 1
--- misc/run_tic.in.orig	Wed Feb 23 23:30:15 2011
d5 1
a5 1
@@@@ -122,7 +122,7 @@@@ fi
d14 1
a14 2
@@@@ -163,6 +163,9 @@@@ else
 	exit 1
d17 1
a17 1
+
d20 1
a20 1
 
d23 1
@


1.16
log
@Changes 5.8:
Interface changes
* turn on _XOPEN_CURSES definition in curses.h.
* change _nc_has_mouse to has_mouse, reflect its use in C++ and Ada95.
* add is_pad and is_subwin functions for opaque access to the WINDOW structure.
* add tiparm, based on review of X/Open Curses Issue 7.

Library Improvements
* add a terminal driver for Windows console, which supports a MinGW port to
  Windows.
* add extended functions which specify the SCREEN pointer for several curses
  functions which use the global SP.
* improve the NCURSES_NO_UTF8_ACS feature by adding a check for an extended
  terminfo capability U8.
* improve performance of tigetstr, etc., by using hashing code from tic.
* add WACS_xxx definitions to wide-character configuration for thick- and
  double-lines.
* modify init_pair to allow caller to create extra color pairs beyond the
  color_pairs limit, which use default colors.

Improvements to Programs
* add tabs program.
* modify tic's -I/-C dump to reformat acsc strings into canonical form (sorted,
  unique mapping).
* add checks in tic for inconsistent cursor-movement controls, and for
  inconsistent printer-controls.
* add special case to _nc_infotocap (used by tic and infocmp) to recognize the
  setaf/setab strings from xterm+256color and xterm+88color, and provide a
  reduced version which works with termcap.
@
text
@d1 1
a1 1
$NetBSD: patch-aa,v 1.15 2007/01/08 11:01:05 adam Exp $
d3 1
a3 1
--- misc/run_tic.in.orig	2006-10-28 21:43:30.000000000 +0200
d5 1
a5 1
@@@@ -122,7 +122,7 @@@@ TICDIR=`echo $TERMINFO | sed -e 's%/shar
d14 2
a15 1
@@@@ -164,6 +164,9 @@@@ else
d18 1
a18 1
 
d21 1
a21 1
+
a23 1
 # all systems support symbolic links, and those that do provide a variety
@


1.15
log
@Changes 5.6:
Hashed-databases are supported for storing terminal descriptions.
Support for magic-cookies such as hpterm was improved.
Support for rpath in shared libraries was revised.
Many bugfixes were made for memory leaks, wide-character support, portability,
  and more.
@
text
@d1 1
a1 1
$NetBSD$
d5 1
a5 1
@@@@ -96,7 +96,7 @@@@ TICDIR=`echo $TERMINFO | sed -e 's%/shar
d14 1
a14 1
@@@@ -138,6 +138,9 @@@@ else
@


1.14
log
@Update to 5.5. Solaris PLIST should be checked for correctness.

This  release  is  designed  to  be upward compatible from ncurses 5.0
through   5.4;  very  few  applications  will  require  recompilation,
depending   on  the  platform.  These  are  the  highlights  from  the
change-log since ncurses 5.4 release.

Interface changes:
  * terminfo   installs  "xterm-new"  as  "xterm"  entry  rather  than
    "xterm-old" (aka xterm-r6).
  * terminfo  data  is  installed using the tic -x option (few systems
    still use ncurses 4.2).
  * modify  C++  binding to work with newer C++ compilers by providing
    initializers  and  using  modern casts. Old-style header names are
    still  used  in  this  release  to allow compiling with not-so-old
    compilers.
  * modify parameter type in c++ binding for insch() and mvwinsch() to
    be  consistent  with  underlying  ncurses  library  (was  char, is
    chtype).
  * change NCursesWindow::err_handler() to a virtual function.
  * form  and  menu  libraries  now  work  with  wide-character  data.
    Applications  which  bypassed the form library and manipulated the
    FIELD.buf  data  directly  will  not  work properly with libformw,
    since   that   no   longer   points  to  an  array  of  char.  The
    set_field_buffer()  and field_buffer() functions translate to/from
    the actual field data.
  * add  symbol  to  curses.h which can be used to suppress include of
    stdbool.h, e.g.,
             #define NCURSES_ENABLE_STDBOOL_H 0
             #include <curses.h>

  * change  SP->_current_attr  to  a pointer, adjust ifdef's to ensure
    that  libtinfo.so  and  libtinfow.so have the same ABI. The reason
    for  this  is  that  the  corresponding  data which belongs to the
    upper-level ncurses library has a different size in each model.
  * winnstr()   now   returns  multibyte  character  strings  for  the
    wide-character configuration.
  * assume_default_colors()      no      longer      requires     that
    use_default_colors() be called first.
  * data_ahead() now works with wide-characters.
  * slk_set()  and  slk_wset()  now  accept  and  store  multibyte  or
    multicolumn characters.
  * start_color()  now returns OK if colors have already been started.
    start_color() also returns ERR if it cannot allocate memory.
  * pair_content()  now returns -1 for consistency with init_pair() if
    it corresponds to the default-color.
  * unctrl()  now returns null if its parameter does not correspond to
    an unsigned char.

New features and improvements:
  * library
       + environment     variable     NCURSES_NO_UTF8_ACS     supports
         miscellaneous   terminal  emulators  which  ignore  alternate
         character set escape sequences when in UTF-8 mode.
       + modify  initialization  of  key  lookup  table  so that if an
         extended  capability (tic -x) string is defined, and its name
         begins  with  'k',  ncurses  will automatically treat it as a
         key.
       + change  GPM  initialization,  using  dl  library  to  load it
         dynamically at runtime.
       + form, menu and panel libraries support debug-tracing.
  * add   NCURSES-Programming-HOWTO.html   by   Pradeep   Padala  (see
    http://tldp.org/HOWTO/NCURSES-Programming-HOWTO/).
  * programs:
  * infocmp:
       + The  -i  option  now matches 8-bit controls against its table
         entries, e.g., so it can analyze the xterm-8bit entry.
       + add  "-x"  option to infocmp like tic's "-x", for use in "-F"
         comparisons.  This  modifies  infocmp to only report extended
         capabilities  if  the  -x  option  is given, making this more
         consistent  with  tic.  Some scripts may break, since infocmp
         previous gave this information without an option.
  * tic:
       + modify  termcap-parsing  to retain 2-character aliases at the
         beginning of an entry if the "-x" option is used in tic.
       + filter  out  long  extended names when translating to termcap
         format.  Only  two  characters  are  permissible  for termcap
         capability names.
       + correct  translation  of  "%%" in terminfo format to termcap,
         e.g., using "tic -C".
       + modify  the  "-c  -v" options to ignore delays when comparing
         strings.  Also  modify  it  to  ignore a canceled sgr string,
         e.g.,  for terminals which cannot properly combine attributes
         in one control sequence.
       + add  a  check  for  improperly  ended  strings, i.e., where a
         following line begins in column 1.
       + add a check in tic for terminfo entries having an sgr0 but no
         sgr string. This confuses Tru64 and HPUX curses when combined
         with  color,  e.g., making them leave line-drawing characters
         in odd places.
       + add  check (with debug configuration) that provides about the
         runtime  changes  that  would  be  made  to  sgr0 for termcap
         applications.
  * tset:
       + add  -c  and  -w  options  to allow user to suppress ncurses'
         resizing  of the terminal emulator window in the special case
         where it is not able to detect the true size.

Major bug fixes:
  * improve  logic  in tgetent() which adjusts the termcap "me" string
    to  work with ISO-2022 string used in xterm-new. This is a feature
    that was incompletely implemented in ncurses 5.3. ncurses attempts
    to  provide  termcap clients with the portion of the sgr0 (termcap
    "me") string that does not reset line-drawing.
  * cells  in  the  WINDOW  which  are  continuations of a multicolumn
    character   are   encoded   differently,  making  repainting  more
    reliable.
  * amend  change to setupterm() in ncurses 5.4 (20030405) which would
    reuse  the value of cur_term if the same output was selected. This
    now  reuses  it  only  when  setupterm() is called from tgetent(),
    which  has no notion of separate SCREENs. Note that tgetent() must
    be called after initscr() or newterm() to use this feature.
  * make  setcchar() now works when its wchar_t* parameter is pointing
    to a string which contains more data than can be converted.
  * win_wchnstr() now works for more than one cell.
  * resizeterm() now processes all levels of window hierarchy.
  * disable  GPM  mouse support when $TERM happens to be prefixed with
    "xterm".  Gpm_Open()  would otherwise assert that it can deal with
    mouse events in this case.
  * add  SP->_screen_acs_map[], used to ensure that mapping of missing
    line-drawing   characters   is   handled  properly.  For  example,
    ACS_DARROW  is  absent  from  xterm-new, and it was coincidentally
    displayed the same as ACS_BTEE.

Portability:
  * configure script:
       + new options:

           --enable-largefile
                   set  compiler  and  linker  flags  to use largefile
                   support.

           --enable-ext-colors
                   Allow  encoding  of  256  foreground and background
                   colors,    e.g.,   with   the   xterm-256color   or
                   xterm-88color terminfo entries. This requires ABI 6
                   because it changes the size of cchar_t.

           --enable-ext-mouse
                   This  defines NCURSES_MOUSE_VERSION 2, and modifies
                   the encoding of mouse events to support wheel mice,
                   which may transmit buttons 4 and 5. This works with
                   xterm and similar terminal emulators. This requires
                   ABI  6  because  it  changes  the encoding of mouse
                   events.

           --with-chtype
                   overriding of the non-LP64 model's use of chtype

           --with-mmask-t
                   overriding of the non-LP64 model's use of mmask_t

           --without-xterm-new
                   Installs  "xterm-old"  as  the "xterm" entry of the
                   terminfo database.

       + The  --with-termlib option now accepts a value which sets the
         name  of the terminfo library. This would allow a packager to
         build libtinfow.so renamed to coincide with libtinfo.so
       + fixes/improvements for cross-compiling:
            o suppress     $suffix     in     misc/run_tic.sh     when
              cross-compiling.  This  allows cross-compiles to use the
              host's  tic  program  to  handle the "make install.data"
              step.
            o correct       BUILD_CPPFLAGS       substitution       in
              ncurses/Makefile.in,  to  allow  cross-compiling  from a
              separate directory tree.
  * library:
       + add  ifdef's  for  _LP64  in curses.h to avoid using wasteful
         64-bits  for  chtype  and  mmask_t,  but add configure option
         --disable-lp64 in case anyone used that configuration.
       + modify  C++  binding to use some C internal functions to make
         it compile properly on Solaris (and other platforms).
       + remove  check  in  newwin()  that prevents allocating windows
         that extend beyond the screen (Solaris does this).
       + check  for  nl_langinfo(CODESET),  use  it if available. This
         replaces  ad  hoc  tests of environment variables to check if
         the  terminal is setup for UTF-8 encoding. Applications which
         do  not  call  setlocale()  should be corrected, to make them
         work properly with UTF-8 encoding.
         In  particular,  applications  which  assume (and do not call
         setlocale())  that Latin-1 codes are printable will no longer
         work  in a UTF-8 locale since the ad hoc check of environment
         variables  to  see  if  the locale was UTF-8 is not used when
         nl_langinfo(CODESET) is available.
       + use  setlocale() to query the program's current locale rather
         than  using  getenv().  This supports applications which rely
         upon  legacy treatment of 8-bit characters when the locale is
         not initialized.
@
text
@d1 1
a1 1
$NetBSD: patch-aa,v 1.13 2004/03/03 13:36:09 adam Exp $
d3 1
a3 1
--- misc/run_tic.in.orig	2005-09-18 01:13:49.000000000 +0200
d9 2
a10 2
-( cd $TERMINFO && rm -fr ? 2>/dev/null )
+#( cd $TERMINFO && rm -fr ? 2>/dev/null )
@


1.13
log
@Changes 5.4:
* Interface changes
* New features and improvements: library, programs
* Major bug fixes
(See ANNOUNCE for details)
@
text
@d1 1
a1 1
$NetBSD$
d3 1
a3 1
--- misc/run_tic.in.orig	2003-09-06 22:31:44.000000000 +0000
d5 1
a5 1
@@@@ -91,7 +91,7 @@@@ TICDIR=`echo $TERMINFO | sed -e 's%/shar
d12 4
a15 4
 # If we're not installing into /usr/share/, we'll have to adjust the location
 # of the tabset files in terminfo.src (which are in a parallel directory).
@@@@ -123,6 +123,9 @@@@ else
 	exit 1
@


1.12
log
@Educate this package to co-exist with the "screen" package under SunOS
and fix some package lists problems there.
@
text
@d3 3
a5 3
--- misc/run_tic.in.orig	Tue Oct 10 00:57:35 2000
+++ misc/run_tic.in	Sun Sep  1 20:19:08 2002
@@@@ -81,7 +81,7 @@@@
d14 1
a14 2
@@@@ -112,6 +112,9 @@@@
 	echo '? tic could not build '$TERMINFO
d17 1
a17 1
+
d20 1
a20 1
 
d23 1
@


1.11
log
@Patch with ncurses-5.1-20001014.patch.gz.  This has a few minor bug fixes,
but mostly comprises patches to ease building on NetBSD pkgsrc.  Tom Dickey
has been kind enough to accept our patches back into the main source tree.
Many thanks to him.
@
text
@d3 13
a15 3
--- misc/run_tic.in.orig	Mon Oct  9 18:57:35 2000
+++ misc/run_tic.in
@@@@ -113,6 +113,9 @@@@
d18 1
a18 1
 
d21 1
a21 1
+
a23 1
 # all systems support symbolic links, and those that do provide a variety
@


1.10
log
@Update ncurses to 5.1 (20001009).  Changes from version 5.0 include better
support for termcap, new extensions for color, several bug fixes, minor API
changes, buffer-overrun checks.
@
text
@d3 12
a14 70
--- INSTALL.orig	Thu Oct 12 04:52:50 2000
+++ INSTALL
@@@@ -104,6 +104,8 @@@@
 
 	libncurses_p.a (profile)
 
+	libncurses.la (libtool)
+
     If you do not specify any models, the normal and debug libraries will be
     configured.  Typing `configure' with no arguments is equivalent to:
 
@@@@ -126,6 +128,13 @@@@
     and SunOS with gcc, but more work needs to be done to make shared libraries
     work on other systems.
 
+    If you have libtool installed, you can type
+
+	./configure --with-libtool
+
+    to generate the appropriate static and/or shared libraries for your
+    platform using libtool.
+
     You can make curses and terminfo fall back to an existing file of termcap
     definitions by configuring with --enable-termcap.  If you do this, the
     library will search /etc/termcap before the terminfo database, and will
@@@@ -176,7 +185,8 @@@@
     The terminfo(5) manual page must be preprocessed with tbl(1) before
     being formatted by nroff(1).  Modern man(1) implementations tend to do
     this by default, but you may want to look at your version's manual page
-    to be sure.
+    to be sure.  You may also install the manual pages after preprocessing
+    with tbl(1) by specifying the configure option --with-manpage-tbl.
 
     If the system already has a curses library that you need to keep using
     for some bizarre binary-compatibility reason, you'll need to distinguish
@@@@ -494,6 +504,10 @@@@
 	NOTE:  a few systems build shared libraries with fixed pathnames; this
 	option probably will not work for those configurations.
 
+     --with-libtool
+	Generate libraries with libtool.  If this option is selected, then
+	it overrides all other library model specifications.
+
     --with-manpage-format=XXX
 	Tell the configure script how you would like to install man-pages.  The
 	option value must be one of these:  gzip, compress, BSDI, normal,
@@@@ -513,6 +527,11 @@@@
 	this on systems that do not support symbolic links will result in
 	copying the man-page for each alias.
 
+    --with-manpage-tbl
+	Tell the configure script that you with to preprocess the manpages
+	by running them through tbl to generate tables understandable by
+	nroff.
+
     --with-normal
 	Generate normal (i.e., static) libraries (default).
 
@@@@ -557,6 +576,11 @@@@
     --without-ada
 	Suppress the configure script's check for Ada95, do not build the
 	Ada95 binding and related demo.
+
+    --without-curses-h
+	Don't install the ncurses header with the name "curses.h".  Rather,
+	install as "ncurses.h" and modify the installed headers and manpages
+	accordingly.
 
     --without-cxx
 	XSI curses declares "bool" as part of the interface.  C++ also declares
@


1.9
log
@USE_LIBTOOL instead of USE_PKGLIBTOOL.
@
text
@d3 67
a69 66
--- c++/Makefile.in.orig	Sat Oct 23 16:13:02 1999
+++ c++/Makefile.in	Fri Jul 14 15:55:55 2000
@@@@ -77,10 +77,10 @@@@
 LINK		= @@LINK_PROGS@@ $(CXX) @@CXXLDFLAGS@@
 
 LIBROOT	= ncurses++
-LIBNAME	= @@LIB_PREFIX@@$(LIBROOT).a
+LIBNAME	= @@LIB_PREFIX@@$(LIBROOT).la
 
-LDFLAGS		= @@EXTRA_LDFLAGS@@ -L../lib -L$(libdir) \
-	-l$(LIBROOT) \
+LDFLAGS		= @@EXTRA_LDFLAGS@@ -L$(libdir) \
+	$(LIBNAME) \
 	@@TEST_ARGS@@ @@LDFLAGS@@ \
 	@@LD_MODEL@@ @@LIBS@@ @@EXTRA_LIBS@@ @@LOCAL_LDFLAGS@@ $(CXXLIBS)
 
@@@@ -94,7 +94,7 @@@@
 AUTO_SRC	= \
 		etip.h
 
-all:		$(AUTO_SRC) ../lib/$(LIBNAME) demo$x
+all:		$(AUTO_SRC) $(LIBNAME) demo$x
 
 sources :	$(AUTO_SRC)
 
@@@@ -111,9 +111,8 @@@@
 	$(MODEL)/cursesapp.o \
 	$(MODEL)/cursesmain.o
 
-../lib/$(LIBNAME) : $(LIB_OBJS)
-	$(AR) $(AR_OPTS) $@@ $?
-	$(RANLIB) $@@
+$(LIBNAME) : $(LIB_OBJS)
+	cd ../lib && $(LINK) -o lib$(LIBROOT).la $(LIB_OBJS:.o=.lo) -rpath $(INSTALL_PREFIX)$(libdir) -version-info $(NCURSES_MAJOR):$(NCURSES_MINOR)
 
 OBJS_DEMO = $(MODEL)/demo.o
 
@@@@ -121,7 +120,7 @@@@
 	$(cursesf_h) $(cursesm_h) $(cursesapp_h)
 
 demo$x:	$(OBJS_DEMO) \
-	../lib/$(LIBNAME)  \
+	$(LIBNAME)  \
 	@@TEST_DEPS@@
 	@@ECHO_LINK@@ $(LINK) -o $@@ $(OBJS_DEMO) $(LDFLAGS_DEFAULT)
 
@@@@ -133,18 +132,18 @@@@
 	$(srcdir)/../mkinstalldirs $@@
 
 install \
-install.libs:: ../lib/$(LIBNAME) $(INSTALL_PREFIX)$(libdir)
-	$(INSTALL) ../lib/$(LIBNAME) $(INSTALL_PREFIX)$(libdir)/$(LIBNAME)
+install.libs:: $(LIBNAME) $(INSTALL_PREFIX)$(libdir)
+	$(LIBTOOL) $(INSTALL_DATA) $(LIBNAME) $(INSTALL_PREFIX)$(libdir)/$(LIBNAME)
 
 uninstall \
 uninstall.libs::
-	-rm -f $(INSTALL_PREFIX)$(libdir)/$(LIBNAME)
+	-$(LIBTOOL) rm -f $(INSTALL_PREFIX)$(libdir)/$(LIBNAME)
 
 mostlyclean ::
 	-rm -f core tags TAGS *~ *.ln *.atac trace
 
 clean :: mostlyclean
-	-rm -f demo$x $(AUTO_SRC) ../lib/$(LIBNAME) $(LIB_OBJS) $(OBJS_DEMO)
+	-rm -f demo$x $(AUTO_SRC) $(LIBNAME) $(LIB_OBJS) $(OBJS_DEMO)
d71 2
a72 2
 distclean :: clean
 	-rm -f Makefile
@


1.8
log
@Update ncurses to 5.0.  From the release notes:

   We decided to release ncurses as a new whole number release (5.0)
   because it incorporates several interface changes, including some that
   would invalidate existing shared libraries. These are the highlights
   from the change-log since ncurses 4.2 release.

   Interface changes:
     * The principal source of changes to the interface comes from the
       release of X/Open Curses in 1997. Earlier versions of ncurses (4.0
       and before) were based on a draft version of the specification.
       The release version adds parameters to some functions to support
       the evolving internationalization of curses. These summarize the
       impact:
          + modified several prototypes to correspond with 1997 version
            of X/Open Curses (affects ABI since developers have used
            attr_get).
          + corrected prototypes for slk_* functions, using chtype rather
            than attr_t.
          + the slk_attr_{set,off,on} functions need an additional void*
            parameter according to XSI.
          + correct macros for wattr_set, wattr_get, separate wattrset
            macro from these to preserve behavior that allows attributes
            to be combined with color pair numbers.
          + reviewed/updated curses.h, term.h against X/Open Curses Issue
            4 Version 2. This includes making some parameters
            NCURSES_CONST rather than const, e.g., in termcap.h.
          + reviewed/corrected macros in curses.h as per XSI document.
          + add set_a_attributes and set_pglen_inch to terminfo
            structure, as per XSI and Solaris 2.5.
     * The newest version of the X/Open Curses is implemented on Solaris
       and other vendor's systems. It adds new features to the terminfo
       descriptions:
          + implement tparm %l format.
          + implement tparm printf-style width and precision for %s, %d,
            %x, %o as per XSI.
     * We made additional changes to reduce impact by future interface
       changes:
          + rename key_names[] array to _nc_key_names since it is not
            part of the curses interface.
          + move macro winch to a function, to hide details of struct
            ldat
     * modify configure script to embed ABI in shared libraries for HP-UX
       10.x (detailed request by Tim Mooney).
     * modify configuration of shared libraries on Digital Unix so that
       versioning is embedded in the library, rather than implied by
       links (patch by Tim Mooney).

   New features:
     * enable sigwinch handler by default.
     * turn on hashmap scrolling code by default
     * improved support for termcap applications
          + modify tput to accept termcap names as an alternative to
            terminfo names.
          + provide support for termcap PC variable by copying it from
            terminfo data and using it as the padding character in tputs.
          + provide support for termcap ospeed variable by copying it
            from the internal cur_term member, and using ospeed as the
            baudrate reference for the delay_output and tputs functions.
          + change name-comparisons in lib_termcap to compare no more
            than 2 characters.
          + add configure option --enable-tcap-names, which essentially
            allows users to define new capabilities as in termcap.
     * add mouse support to ncurses menus.
     * add mouse and dll support for OS/2 EMX
     * modify terminfo parsing to accept octal and hexadecimal constants
     * add configure option --enable-no-padding, to allow environment
       variable $NCURSES_NO_PADDING to eliminate non-mandatory padding,
       thereby making terminal emulators (e.g., for vt100) a little more
       efficient.
     * modify lib_color.c to eliminate dependency on orig_colors and
       orig_pair, since SVr4 curses does not require these either, but
       uses them when they are available.
     * add -f option to infocmp and tic, which formats the terminfo
       if/then/else/endif so that they are readable (with newlines and
       tabs).
     * modify tic to compile into %'char' form in preference to
       %{number}, since that is a little more efficient.

   Major bug fixes:
     * modify lib_tstp.c to block SIGTTOU when handling SIGTSTP, fixes a
       problem where ncurses applications which were run via a shell
       script would hang when given a ^Z. Also, check if the terminal's
       process group is consistent, i.e., a shell has not taken ownership
       of it, before deciding to save the current terminal settings in
       the SIGTSTP handler.
     * suppress sc/rc capabilities from terminal description if they
       appear in smcup/rmcup. This affects only scrolling optimization,
       to fix a problem reported by several people with xterm's alternate
       screen, though the problem is more general.
     * modify relative_move and tputs to avoid an interaction with the
       BSD-style padding. The relative_move function could produce a
       string to replace on the screen which began with a numeric
       character, which was then interpreted by tputs as padding.
     * modify setupterm so that cancelled strings are treated the same as
       absent strings, cancelled and absent booleans false (does not
       affect tic, infocmp).
     * modify lib_vidattr.c to allow for terminal types (e.g.,
       xterm-color) which may reset all attributes in the 'op'
       capability, so that colors are set before turning on bold and
       other attributes, but still after turning attributes off.
     * use 'access()' to check if ncurses library should be permitted to
       open or modify files with fopen/open/link/unlink/remove calls, in
       case the calling application is running in setuid mode.
     * correction to doupdate, for case where terminal does not support
       insert/delete character. The logic did not check that there was a
       difference in alignment of changes to old/new screens before
       repainting the whole non-blank portion of the line. Modified to
       fall through into logic that reduces by the portion which does not
       differ.
@
text
@d4 3
a6 7
+++ c++/Makefile.in	Sat Jan 15 11:24:46 2000
@@@@ -74,13 +74,13 @@@@
 REL_VERSION     = @@cf_cv_rel_version@@
 ABI_VERSION	= @@cf_cv_abi_version@@
 
-LINK		= @@LINK_PROGS@@ $(CXX) @@CXXLDFLAGS@@
+LINK		= @@LINK_PROGS@@ --cplusplus $(CXX) @@CXXLDFLAGS@@
@


1.7
log
@    * Update "devel/ncurses" to latest release 4.2.
    * Libtoolize library build.
@
text
@d3 70
a72 42
--- progs/Makefile.in.orig	Wed Feb 11 07:14:03 1998
+++ progs/Makefile.in	Tue Jun 29 08:59:34 1999
@@@@ -84,7 +84,7 @@@@
 CFLAGS_DEFAULT	= $(CFLAGS_@@DFT_UPR_MODEL@@)
 
 LD		= @@LD@@
-LINK		= $(CC)
+LINK		= $(LIBTOOL) --mode=link $(CC)
 LDFLAGS		= @@EXTRA_LDFLAGS@@ \
 		@@PROG_ARGS@@ @@LDFLAGS@@ @@LD_MODEL@@ @@LIBS@@ @@EXTRA_LIBS@@
 
@@@@ -102,7 +102,7 @@@@
 AUTO_SRC = \
 	termsort.c
 
-PROGS = tic$x toe$x infocmp$x clear$x tput$x tset$x
+PROGS = tic$x toe$x infocmp$x
 
 TESTPROGS = mvcur$x tctest$x hardscroll$x hashmap$x
 
@@@@ -122,21 +122,15 @@@@
 uninstall.libs:
 
 install.progs: $(PROGS) $(INSTALL_PREFIX)$(bindir)
-	$(INSTALL_PROGRAM) tic$x     $(INSTALL_PREFIX)$(bindir)/tic$x
-	$(INSTALL_PROGRAM) toe$x     $(INSTALL_PREFIX)$(bindir)/toe$x
-	$(INSTALL_PROGRAM) infocmp$x $(INSTALL_PREFIX)$(bindir)/infocmp$x
-	$(INSTALL_PROGRAM) clear$x   $(INSTALL_PREFIX)$(bindir)/clear$x
-	$(INSTALL_PROGRAM) tput$x    $(INSTALL_PREFIX)$(bindir)/tput$x
-	$(INSTALL_PROGRAM) tset$x    $(INSTALL_PREFIX)$(bindir)/tset$x
+	$(LIBTOOL) --mode=install $(INSTALL_PROGRAM) tic$x     $(INSTALL_PREFIX)$(bindir)/tic$x
+	$(LIBTOOL) --mode=install $(INSTALL_PROGRAM) toe$x     $(INSTALL_PREFIX)$(bindir)/toe$x
+	$(LIBTOOL) --mode=install $(INSTALL_PROGRAM) infocmp$x $(INSTALL_PREFIX)$(bindir)/infocmp$x
 	@@echo "linking captoinfo to tic"
 	-@@rm -f $(INSTALL_PREFIX)$(bindir)/captoinfo$x
 	(cd $(INSTALL_PREFIX)$(bindir) && $(LN_S) tic$x captoinfo$x)
 	@@echo "linking infotocap to tic"
 	-@@rm -f $(INSTALL_PREFIX)$(bindir)/infotocap$x
 	(cd $(INSTALL_PREFIX)$(bindir) && $(LN_S) tic$x infotocap$x)
-	@@echo "linking reset to tset"
-	-@@rm -f $(INSTALL_PREFIX)$(bindir)/reset$x
-	(cd $(INSTALL_PREFIX)$(bindir) && $(LN_S) tset$x reset$x)
d74 2
a75 2
 uninstall.progs:
 	-@@rm -f $(INSTALL_PREFIX)$(bindir)/tic$x
@


1.6
log
@Add NetBSD RCS Ids.
@
text
@d3 12
a14 27
--- c++/Makefile.in.orig	Wed Nov 26 13:39:11 1997
+++ c++/Makefile.in	Wed Nov 26 13:39:59 1997
@@@@ -50,6 +50,8 @@@@
 LINK		= $(CXX)
 LDFLAGS		= @@LDFLAGS@@ @@LD_MODEL@@ @@LIBS@@ @@LOCAL_LDFLAGS@@
 
+ABI_VERSION	= @@nc_cv_abi_version@@
+
 all: demo
 
 OBJS_DEMO = \
--- test/Makefile.in.orig	Sat Nov 16 22:05:54 1996
+++ test/Makefile.in	Fri Jan  9 12:13:01 1998
@@@@ -39,7 +39,9 @@@@
 
 CPPFLAGS	= @@CPPFLAGS@@ -DHAVE_CONFIG_H -I$(srcdir)
 
-CCFLAGS		= $(CFLAGS) $(CPPFLAGS) $(CFLAGS_@@DFT_UPR_MODEL@@)
+CCFLAGS		= $(CFLAGS) $(CPPFLAGS) $(CFLAGS_NORMAL)
+
+ABI_VERSION	= @@nc_cv_abi_version@@
 
 LOCAL_LIBS	= @@TEST_DEPS@@
 
--- progs/Makefile.in.orig	Sat Jun 15 21:40:53 1996
+++ progs/Makefile.in	Fri Jan  9 12:41:20 1998
@@@@ -79,12 +79,12 @@@@
d18 4
a21 2
-PROGS = tic toe infocmp clear tput tset
+PROGS = tic toe infocmp
d23 2
a24 1
 TESTPROGS = mvcur tctest hardscroll hashmap
d26 10
a35 13
 # Default library, for linking applications
-LIB_CURSES = ../lib/libncurses@@DFT_DEP_SUFFIX@@
+LIB_CURSES = -L../lib -lncurses
 
 ################################################################################
 all:	$(AUTO_SRC) $(PROGS) 
@@@@ -98,15 +98,9 @@@@
 	$(INSTALL_PROGRAM) tic     $(INSTALL_PREFIX)$(bindir)/tic
 	$(INSTALL_PROGRAM) toe     $(INSTALL_PREFIX)$(bindir)/toe
 	$(INSTALL_PROGRAM) infocmp $(INSTALL_PREFIX)$(bindir)/infocmp
-	$(INSTALL_PROGRAM) clear   $(INSTALL_PREFIX)$(bindir)/clear
-	$(INSTALL_PROGRAM) tput    $(INSTALL_PREFIX)$(bindir)/tput
-	$(INSTALL_PROGRAM) tset    $(INSTALL_PREFIX)$(bindir)/tset
d37 5
a41 2
 	-@@rm -f $(INSTALL_PREFIX)$(bindir)/captoinfo
 	-@@ln $(INSTALL_PREFIX)$(bindir)/tic $(INSTALL_PREFIX)$(bindir)/captoinfo
d43 2
a44 2
-	-@@rm -f $(INSTALL_PREFIX)$(bindir)/reset
-	-@@ln $(INSTALL_PREFIX)$(bindir)/tset $(INSTALL_PREFIX)$(bindir)/reset
d46 2
a47 60
 $(INSTALL_PREFIX)$(bindir) :
 	$(srcdir)/../mkinstalldirs $@@
@@@@ -120,40 +114,40 @@@@
 	$(MODEL)/dump_entry.o \
 	$(LIB_CURSES)
 tic: $(DEPS_TIC)
-	@@ECHO_LINK@@ $(LINK) $(CFLAGS_DEFAULT) $(DEPS_TIC) $(LDFLAGS) -o $@@
+	@@ECHO_LINK@@ $(LINK) $(CFLAGS_NORMAL) $(DEPS_TIC) $(LDFLAGS) -o $@@
 
 DEPS_TOE = \
 	$(MODEL)/toe.o \
 	$(MODEL)/dump_entry.o \
 	$(LIB_CURSES)
 toe: $(DEPS_TOE)
-	@@ECHO_LINK@@ $(LINK) $(CFLAGS_DEFAULT) $(DEPS_TOE) $(LDFLAGS) -o $@@
+	@@ECHO_LINK@@ $(LINK) $(CFLAGS_NORMAL) $(DEPS_TOE) $(LDFLAGS) -o $@@
 
 DEPS_CLEAR = \
 	$(MODEL)/clear.o \
 	$(LIB_CURSES)
 clear: $(DEPS_CLEAR)
-	@@ECHO_LINK@@ $(LINK) $(CFLAGS_DEFAULT) $(DEPS_CLEAR) $(LDFLAGS) -o $@@
+	@@ECHO_LINK@@ $(LINK) $(CFLAGS_NORMAL) $(DEPS_CLEAR) $(LDFLAGS) -o $@@
 
 DEPS_TPUT = \
 	$(MODEL)/tput.o \
 	$(LIB_CURSES)
 tput: $(DEPS_TPUT)
-	@@ECHO_LINK@@ $(LINK) $(CFLAGS_DEFAULT) $(DEPS_TPUT) $(LDFLAGS) -o $@@
+	@@ECHO_LINK@@ $(LINK) $(CFLAGS_NORMAL) $(DEPS_TPUT) $(LDFLAGS) -o $@@
 
 DEPS_INFOCMP = \
 	$(MODEL)/infocmp.o \
 	$(MODEL)/dump_entry.o \
 	$(LIB_CURSES)
 infocmp: $(DEPS_INFOCMP)
-	@@ECHO_LINK@@ $(LINK) $(CFLAGS_DEFAULT) $(DEPS_INFOCMP) $(LDFLAGS) -o $@@
+	@@ECHO_LINK@@ $(LINK) $(CFLAGS_NORMAL) $(DEPS_INFOCMP) $(LDFLAGS) -o $@@
 
 DEPS_TSET = \
 	$(MODEL)/tset.o \
 	$(MODEL)/dump_entry.o \
 	$(LIB_CURSES)
 tset: $(DEPS_TSET)
-	@@ECHO_LINK@@ $(LINK) $(CFLAGS_DEFAULT) $(DEPS_TSET) $(LDFLAGS) -o $@@
+	@@ECHO_LINK@@ $(LINK) $(CFLAGS_NORMAL) $(DEPS_TSET) $(LDFLAGS) -o $@@
 
 termsort.c: $(srcdir)/MKtermsort.sh
 	sh -c "$(srcdir)/MKtermsort.sh $(AWK) $(srcdir)/../include/Caps" >$@@
--- panel/Makefile.in	1998/03/06 22:13:13	1.1
+++ panel/Makefile.in	1998/03/06 22:13:29
@@@@ -35,7 +35,7 @@@@
 THIS		= Makefile
 
 MODEL		= @@DFT_LWR_MODEL@@
-INSTALL_PREFIX	= @@INSTALL_PREFIX
+INSTALL_PREFIX	= @@INSTALL_PREFIX@@
 srcdir		= @@srcdir@@
 prefix		= @@prefix@@
 exec_prefix	= @@exec_prefix@@
@


1.5
log
@Fix a typo in the panel/Makefile.in file (INSTALL_PREFIX lacked a
trailing '@@') - pointed out by Rob Windsor.  Move configure script
mods to patch-ab, and coalesce them.
@
text
@d1 2
@


1.4
log
@As pointed out by Charles Hannum, program files which are not
intended to be in a shared object should not be compiled as
Position Independent Code.

Attempt to fix ncurses' man page problems once and for all.  The
configure script tries to be smart, and checks the date(1) manual page
to see if it's been compressed, and, if it has been, installs ncurses
manual pages compressed.  I've removed this check, so that all pages
are installed (as far as ncurses thinks) uncompressed, and then use
the standard pkgsrc mechanisms for compressing them.
@
text
@d105 11
a115 25
--- configure.orig	Sun Dec  1 02:08:35 1996
+++ configure	Fri Jan  9 13:51:38 1998
@@@@ -1283,12 +1283,7 @@@@
     do
        nc_test=`echo $nc_name | sed -e 's/*//'`
        if test "x$nc_test" = "x$nc_name" ; then
-	  case "$nc_name" in
-	  *.gz) nc_form=gzip;     nc_name=`basename $nc_name .gz`;;
-	  *.Z)  nc_form=compress; nc_name=`basename $nc_name .Z`;;
-	  *.0)	nc_form=BSDI; nc_format=yes;;
-	  *)    nc_form=cat;;
-	  esac
+	  nc_form=cat
 	  break
        fi
     done
@@@@ -1392,7 +1387,7 @@@@
 BSDI)
 cat >>man/edit_man.sh <<NC_EOF
 	# BSDI installs only .0 suffixes in the cat directories
-	target="\`echo \$target|sed -e 's/\.[1-9]\+.\?/.0/'\`"
+	target="\`echo \$target|sed -e 's/\.[1-9]\(\.gz|\.Z\)\{0,1\}/.0\1/'\`"
 NC_EOF
   ;;
 esac
@


1.3
log
@The binaries produced looked for libcurses.so in ../lib, which is nonsense.
Fixed after Frederick Bruckman <fb@@enteract.com> told me via email.
@
text
@d1 24
d26 1
a26 1
+++ progs/Makefile.in	Wed Nov 26 12:18:25 1997
d58 72
a129 22
--- test/Makefile.in.orig	Wed Nov 26 13:02:17 1997
+++ test/Makefile.in	Wed Nov 26 13:04:53 1997
@@@@ -41,6 +41,8 @@@@
 
 CCFLAGS		= $(CFLAGS) $(CPPFLAGS) $(CFLAGS_@@DFT_UPR_MODEL@@)
 
+ABI_VERSION	= @@nc_cv_abi_version@@
+
 LOCAL_LIBS	= @@TEST_DEPS@@
 
 LINK		= $(CC)
--- c++/Makefile.in.orig	Wed Nov 26 13:39:11 1997
+++ c++/Makefile.in	Wed Nov 26 13:39:59 1997
@@@@ -50,6 +50,8 @@@@
 LINK		= $(CXX)
 LDFLAGS		= @@LDFLAGS@@ @@LD_MODEL@@ @@LIBS@@ @@LOCAL_LDFLAGS@@
 
+ABI_VERSION	= @@nc_cv_abi_version@@
+
 all: demo
 
 OBJS_DEMO = \
@


1.2
log
@Upgrade to ncurses-1.9.9g.

Add MANCOMPRESSED, as newer version gzips the manual pages.

Remember to merge the new shared objects in with ldconfig.

Add version numbers to the shared objects in the derived Makefiles.
@
text
@d14 1
a14 1
+LIB_CURSES = ../lib/libncurses@@DFT_DEP_SUFFIX@@@@nc_cv_abi_version@@
@


1.1
log
@Initial revision
@
text
@d1 3
a3 3
--- progs/Makefile.in.orig	Sun Feb 11 00:08:16 1996
+++ progs/Makefile.in	Sat Oct 25 01:56:53 1997
@@@@ -54,7 +54,7 @@@@
d10 1
a10 1
 TESTPROGS = mvcur tctest hardscroll
d12 13
a24 7
@@@@ -73,15 +73,9 @@@@
 	$(INSTALL_PROGRAM) tic $(bindir)/tic
 	$(INSTALL_PROGRAM) toe $(bindir)/toe
 	$(INSTALL_PROGRAM) infocmp $(bindir)/infocmp
-	$(INSTALL_PROGRAM) clear $(bindir)/clear
-	$(INSTALL_PROGRAM) tput $(bindir)/tput
-	$(INSTALL_PROGRAM) tset $(bindir)/tset
d26 2
a27 2
 	-@@rm -f $(bindir)/captoinfo
 	-@@ln $(bindir)/tic $(bindir)/captoinfo
d29 2
a30 2
-	-@@rm -f $(bindir)/reset
-	-@@ln $(bindir)/tset $(bindir)/reset
d32 1
a32 1
 $(bindir) :
d34 22
@


1.1.1.1
log
@Import what FreeBSD has in base
@
text
@@
