History log of /freebsd-current/lib/ncurses/ncurses/Makefile
Revision Date Author Comments
# c086d1cb 12-Sep-2023 Kyle Evans <kevans@FreeBSD.org>

ncurses: avoid hardcoded assumptions about the layout of .OBJDIR

Abstract out the details of the FreeBSD build into a $TINFO_OBJDIR that
external builds can override if they orchestrate the build a bit
differently and have a different objdir layout as a result. This makes
the ncurses build a little bit more flexible without requiring weird
backflips.

Reviewed by: bapt, sjg
Sponsored by: NetApp, Inc.
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D41834


# d0b2dbfa 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line sh pattern

Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/


# 235c8f66 27-Jun-2023 John Baldwin <jhb@FreeBSD.org>

ncurses: Silence -Wunused-but-set-variable for various files.

Presumably these will be fixed upstream eventually.

Differential Revision: https://reviews.freebsd.org/D40664


# fde3fc69 24-Nov-2021 Baptiste Daroussin <bapt@FreeBSD.org>

ncurses: to not create a libncursesw.a in the OBJDIR

It breaks intree partial builds for every library depending on ncurses
because ncursesw.a (built without PIC) will be the first the library
path for the linker to resolve -lncursesw


# c0cf36bc 25-Oct-2021 Baptiste Daroussin <bapt@FreeBSD.org>

ncurses: rework static linker script generation

Rework the generation of the linker script to make it in par with
ldscript, this also forces the regeneration of the .aldscript in the obj
dir which might in the past have ended up empty.

Tested by: manu


# 9082bc4c 10-Oct-2021 Baptiste Daroussin <bapt@FreeBSD.org>

ncurses: fix typo in makefile


# 9294a2c7 09-Oct-2021 Baptiste Daroussin <bapt@FreeBSD.org>

ncurses: convert libncursesw.a into a static ldscript

Introduce the notion of static linker scripts to allow libncursesw.a to
track its dependency on libtinfow.a

this allows the build of older freebsd source tree to happen and make
static linking in part with dynamic linking which already provides a
ldscript

This fixes a bootstrapping FreeBSD 12 or 13 on recent FreeBSD 14

Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D32435


# 27803b54 03-Oct-2021 Baptiste Daroussin <bapt@FreeBSD.org>

ncurses: fix path where to find curses.h at bootstrap

after the split, curses.h is now generated by tinfo Makefile, but
still used for a file generated in ncurses lib. Adjust the path to
make sure curses.h is always found


# 396851c2 22-Sep-2021 Baptiste Daroussin <bapt@FreeBSD.org>

ncurses: split libtinfo from libncurses

many external program expects libncurses to not be provided as a single
library. Instead of fixing all ports, distribute ncurses the way
upstream distributes it

Turn libncursesw.so into a ldscript which will link automatically as
needed to libtinfow so so this change is seamless at compile time.

Differential Revision: https://reviews.freebsd.org/D32098


# d2eb5dbd 25-Feb-2021 Baptiste Daroussin <bapt@FreeBSD.org>

ncurses: fix generation of term.h

All variable were not properly expanded

Submitted by: cy (initial version)


# 220c6d92 25-Feb-2021 Renato Botelho <garga@FreeBSD.org>

ncurses: Silence MKuserdefs.sh call

Remove -x flag from sh used to execute MKuserdefs.sh during ncurses
build and stop polluting make -s output

Reviewed by: bapt, manu
Approved by: bapt
Differential Revision: https://reviews.freebsd.org/D28885


# 61f66a1f 12-Jan-2021 Baptiste Daroussin <bapt@FreeBSD.org>

ncurses: Add support for terminfo database

Along with the termcap database, ncurses will now lookup for the
terminfo database, note that the terminfo database is being looked
up first and then it fallsback on the termcap one.

While here drop our custom reader for the termcap database, over the
time it is needed maintenance to be able to catchup with changes on ncurses
side.

Install the ncurses tools which are needed to deal with the terminfo
database: tic, infocmp, toe

Replace our termcap only aware tools with the ncurses counterpart:
tput, tabs, tset, clear and reset

In particular they can your the extra capabilities described in the
terminfo database, which does not exist in termcap

Note that to add a new terminfo information to the database from ports
the ports will just need to add their extra information into:
/usr/local/share/site-terminfo/<firstletteroftheterm>/<term>

Tested by: jbeich, manu


# 821aa63a 04-Jan-2021 Baptiste Daroussin <bapt@FreeBSD.org>

ncurses: only keep the version with widechar support

Only keep the widechar version of ncurses as libncursesw.so.9

Keep the old name to avoid breaking the ABI compatibility (the non
widechar version libncurses.so.9 is not binary compatible with
libncursesw.so.9) since all ports and base are already only linking
against the widechar version we can simply remove libncurses.so.9

Since the .9 version only lived in the dev branch and never ended in a
release, it is simply removed and not added to any binary compat
package.

Add symlinks to keep build time compatibility for anyone linking against
-lncurses


# 338b2223 03-Aug-2020 John Baldwin <jhb@FreeBSD.org>

Pass the full CFLAGS to cpp for MKlib_gen.sh.

GCC's cpp was exiting immediately when it failed to find requested
includes (<ncurses_cfg.h> and <ncurses_defs.h>). clang-cpp emitted an
error for the missing header files but continued processing the file
(thus not honoring any macros defined in the missing headers).

Arguably, the awk script is buggy since it doesn't check the return
value of the command it executes.

Reviewed by: kevans
Differential Revision: https://reviews.freebsd.org/D25731


# e0989ec9 20-Feb-2020 Baptiste Daroussin <bapt@FreeBSD.org>

ncurses: bump shlib number to version 9

ABI has change in between ncurses 5 or 6. While theorically ncurses 6 is buildable with
backward compatibility, I fail at building in a way where the application linked against
the previous version of ncurses are rendering properly.
Let's go on the new ABI which provides all the latest features.

A compat12x package is cooking for backward compatibility


# 9b61ffab 19-Feb-2020 Baptiste Daroussin <bapt@FreeBSD.org>

lib_gen.c now also depends on ncurses_dll.h specify it to prevent some breakage
if ncurses_dll.h is already present in base while building


# c63c5ab0 15-Jun-2019 Bryan Drewery <bdrewery@FreeBSD.org>

Fix .depend files to work for build tools.

This is somewhat of a follow-up to r335746.

MFC after: 2 weeks
Sponsored by: DellEMC


# 60b905ae 23-Oct-2018 Alex Richardson <arichardson@FreeBSD.org>

Fix ncurses fallback.c build with a strict build shell

The script uses shift three times and when building with a strict /bin/sh
shifting without any arguments will cause the script to fail. In this case
the target will fail and we write an empty output file. When doing a
NO_CLEAN build after this will mean fallback.c is up to date and clang
will happily compile the empty input file which leads to strange build
errors later.

Fixed by passing three empty arguments to MkFallback.sh and only creating
fallback.c if MKfallback.sh succeeds.

Aproved By: brooks (mentor)
Differential Revision: https://reviews.freebsd.org/D16867


# 96a0acc4 27-Jun-2018 Bryan Drewery <bdrewery@FreeBSD.org>

Don't use CCACHE for linking.

MFC after: 2 weeks
Sponsored by: Dell EMC


# 5bde33db 19-Jan-2017 Enji Cooper <ngie@FreeBSD.org>

Use SRCTOP-relative paths and .CURDIR with :H instead of ".." specified paths

This implifies pathing in make/displayed output

MFC after: 3 weeks
Sponsored by: Dell EMC Isilon


# 29df9f6b 09-May-2016 Bryan Drewery <bdrewery@FreeBSD.org>

DIRDEPS_BUILD: Run the staged bootstrap-tools version of build-tools.

This avoids running target binaries.

Sponsored by: EMC / Isilon Storage Division


# d1dd034d 14-Apr-2016 Bryan Drewery <bdrewery@FreeBSD.org>

META_MODE: Don't rebuild build-tools targets during normal build.

This avoids 'build command changed' due to CFLAGS/CC changes during the
normal build. Without this the build-tools targets end up rebuilding
for the *target* rather than keeping the native versions built in
build-tools.

Sponsored by: EMC / Isilon Storage Division


# 46a0387a 24-Mar-2016 Bryan Drewery <bdrewery@FreeBSD.org>

CCACHE_BUILD: Don't use ccache when generating some files with CC -E.

At least for ncurses this fixes a build error due to it trying to run
'ccache --version' to work around a gcc 5 bug using the fix in r287205.

Sponsored by: EMC / Isilon Storage Division


# c389411c 05-Feb-2016 Glen Barber <gjb@FreeBSD.org>

Remove libc, librtld_db, libthr packages, and further increase
the constraints on what needs to be installed in a specific to
maintain consistency during upgrades.

Create a new clibs package containing libraries that are needed
as a bare minimum for consistency.

With much help and input from: kib
Sponsored by: The FreeBSD Foundation


# 534ec42f 25-Sep-2015 Bryan Drewery <bdrewery@FreeBSD.org>

Add missing CLEANFILES.

MFC after: 1 week
X-MFC-With: r288199
Sponsored by: EMC / Isilon Storage Division


# 2d6f8164 21-Jun-2015 Antoine Brodin <antoine@FreeBSD.org>

Install ncurses html documentation again after r284345


# 18b2ee82 15-Jun-2015 Baptiste Daroussin <bapt@FreeBSD.org>

Revert r284417 it is not necessary anymore


# 4232f826 15-Jun-2015 Baptiste Daroussin <bapt@FreeBSD.org>

Enforce overwritting SHLIBDIR

Since METAMODE has been added, sys.mk loads bsd.mkopt.mk which ends load loading
bsd.own.mk which then defines SHLIBDIR before all the Makefile.inc everywhere.

This makes /lib being populated again.

Reported by: many


# e7d939bd 06-Jul-2014 Marcel Moolenaar <marcel@FreeBSD.org>

Remove ia64.

This includes:
o All directories named *ia64*
o All files named *ia64*
o All ia64-specific code guarded by __ia64__
o All ia64-specific makefile logic
o Mention of ia64 in comments and documentation

This excludes:
o Everything under contrib/
o Everything under crypto/
o sys/xen/interface
o sys/sys/elf_common.h

Discussed at: BSDcan


# c6063d0d 05-May-2014 Warner Losh <imp@FreeBSD.org>

Use src.opts.mk in preference to bsd.own.mk except where we need stuff
from the latter.


# a58f61bf 25-Apr-2014 Warner Losh <imp@FreeBSD.org>

Eliminate last vestigies of NO_MAN= in the tree. Also, remove
ineffectual NOMAN= lines. These don't change the build at all.


# 3bdf7758 12-Apr-2014 Warner Losh <imp@FreeBSD.org>

NO_MAN= has been deprecated in favor of MAN= for some time, go ahead
and finish the job. ncurses is now the only Makefile in the tree that
uses it since it wasn't a simple mechanical change, and will be
addressed in a future commit.


# 935f512c 24-Jan-2013 Brooks Davis <brooks@FreeBSD.org>

Only install manpages and html documentation in the ncurses/*w (wchar)
builds so that it is only installed once. This is consistent with the
existing decision to only install headers in the that case.


# 5ade06af 08-Nov-2012 Simon J. Gerraty <sjg@FreeBSD.org>

Avoid two makefiles trying to install the same headers


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# fe0506d7 09-Mar-2010 Marcel Moolenaar <marcel@FreeBSD.org>

Create the altix project branch. The altix project will add support
for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting
is a two-module system, consisting of a base compute module and a
CPU expansion module. SGI's NUMAFlex architecture can be an excellent
platform to test CPU affinity and NUMA-aware features in FreeBSD.


# 3ca3047a 19-Jul-2009 Ken Smith <kensmith@FreeBSD.org>

Bump the version of all non-symbol-versioned shared libraries in
preparation for 8.0-RELEASE. Add the previous version of those
libraries to ObsoleteFiles.inc and bump __FreeBSD_Version.

Reviewed by: kib
Approved by: re (rwatson)


# d7f03759 19-Oct-2008 Ulf Lilleengen <lulf@FreeBSD.org>

- Import the HEAD csup code which is the basis for the cvsmode work.


# 7913e263 13-Feb-2008 Rong-En Fan <rafan@FreeBSD.org>

- Remove duplicate tputs.3 from MLINK. As we use termcap in the bsae, remove
the one links to curs_terminfo.

Submitted by: David Naylor <blackdragon at highveldmail.co.za>
MFC after: 3 days


# 67c700c1 11-Feb-2008 Rong-En Fan <rafan@FreeBSD.org>

- Update build glues for ncurses 5.6 snapshot 20080209
- While I'm here, sort macro defines in ncurses_cfg.h


# 862f33ce 30-Dec-2007 Rong-En Fan <rafan@FreeBSD.org>

- Update build glue for 5.6-20071222


# 4f6d329f 20-Oct-2007 Ruslan Ermilov <ru@FreeBSD.org>

- Convert NO_INSTALLLIB option to a new syntax: makefiles should
test MK_INSTALLLIB, users can set WITHOUT_INSTALLLIB. The old
NO_INSTALLLIB is still supported as several makefiles set it.

- While here, fix an install when instructed not to install libs
(usr.bin/lex/lib/Makefile).

PR: bin/114200
Submitted by: Henrik Brix Andersen


# 37d9f47f 20-Jul-2007 Rong-En Fan <rafan@FreeBSD.org>

- Correctly substitute variables like @NCURSES_MAJOR@ in manual pages

PR: doc/114711
Submitted by: Yuri Pankov <yuri at darklight.org.ru>
Approved by: re (bmah)
MFC after: 3 days


# fbccb146 16-Jun-2007 Rong-En Fan <rafan@FreeBSD.org>

- Bump ncurses share library version for the coming RELENG_7

Pointed out by: jhb
Approved by: delphij (mentor)


# 4409495b 24-May-2007 Rong-En Fan <rafan@FreeBSD.org>

- When I introduce wide character enabled ncurses into base, all headers
are installed twice (once in non-widec version, onec in widec version).
Headers with widec enabled are compatible with non-widec version
for libraries. However, if you do a repeat build/install, the curses.h
is always overwritten. The reason is that headers and statics libraries
are installed with -S option to preserve their mtime if no actual changes,
which saves time when doing incremental builds. The curses.h is installed
by non-widec ncurses first, then by widec ncurses. So next time, it happens
again. You see something like this:

# pwd
/usr/src/lib/ncurses
# make -s installincludes INSTALL="install -v"
===> ncurses (installincludes)
install: curses.h -> /usr/include/curses.h
===> ncursesw (installincludes)
install: curses.h -> /usr/include/curses.h
# make -s installincludes INSTALL="install -v"
===> ncurses (installincludes)
install: curses.h -> /usr/include/curses.h
===> ncursesw (installincludes)
install: curses.h -> /usr/include/curses.h

The solution is to disable installing headers in non-widec version. Now
you see this:

# pwd
/usr/src/lib/ncurses
# make -s installincludes INSTALL="install -v"
===> ncurses (installincludes)
===> ncursesw (installincludes)
# make -s installincludes INSTALL="install -v"
===> ncurses (installincludes)
===> ncursesw (installincludes)

For form/panel/menu libraries, the headers are the same for both version.
To be consistent with ncurses, I also disable the installation in non-widec
version.

Reported by: des
Reviewed by: ru
Thanks to: ru
Approved by: delphij (mentor)
MFC after: 2 weeks


# 3580dcaf 16-Apr-2007 Ruslan Ermilov <ru@FreeBSD.org>

Add a missing backslash and unbreak the build.


# c4c63fb4 16-Apr-2007 Rong-En Fan <rafan@FreeBSD.org>

- Add missing man page links
- Remove link for define_key.3 which is a real man page
- Some whitespace nits

Approved by: delphij (mentor)


# 31b4134f 08-Mar-2007 Rong-En Fan <rafan@FreeBSD.org>

Enable ncurses wide character support

Approved by: delphij (mentor)
Tested by: kris on pointyhat (early version), current@


# 557158de 09-Mar-2007 Rong-En Fan <rafan@FreeBSD.org>

- style.Makefile(9) fix
- first line is $FreeBSD$
- Reorder special variables: DPADD, LPADD, CFLAGS
- Use = instead of += for variables that are initially empty
- Use space instead of tab after :
- Use one tab after =
- Use .SUFFIXES for section 3 manual page which simplifies Makefile a lot
- Use SHAREDIR instead of /usr/share
- Remove SRCDIR in INCS since we set .PATH properly
- Use plural in variable name when it stands for more that one source file

Reviewed by: ru
Approved by: delphij (mentor)


# 438e97c0 01-Feb-2007 Rong-En Fan <rafan@FreeBSD.org>

Remove old libmytinfo link.

Approved by: delphij (mentor)
Requested by: ache


# f737c0d5 20-Jan-2007 Rong-En Fan <rafan@FreeBSD.org>

Introduce new ncurses build glues which are part of ncurses 5.6 update.

Approved by: delphij
Inspired by: DragonFly's and lib/bind


# 5740a2b6 18-Mar-2006 Ruslan Ermilov <ru@FreeBSD.org>

Convert NO_PROFILE and NO_LIB32 to new style.


# fcaa4668 18-Mar-2006 Ruslan Ermilov <ru@FreeBSD.org>

Provide alternate default for SHLIBDIR before bsd.own.mk does this.

Reported by: phk


# e1fe3dba 17-Mar-2006 Ruslan Ermilov <ru@FreeBSD.org>

Reimplementation of world/kernel build options. For details, see:

http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061725.html

The src.conf(5) manpage is to follow in a few days.

Brought to you by: imp, jhb, kris, phk, ru (all bugs are mine)


# a84020c2 22-Jul-2005 Ken Smith <kensmith@FreeBSD.org>

Bump the shared library version number of all libraries that have not
been bumped since RELENG_5.

Reviewed by: ru
Approved by: re (not needed for commit check but in principle...)


# 582ef25f 20-Dec-2004 Ruslan Ermilov <ru@FreeBSD.org>

NOHTML -> NO_HTML


# 2c74b2cb 21-Dec-2004 Ruslan Ermilov <ru@FreeBSD.org>

NOINSTALLLIB -> NO_INSTALLLIB


# ab7a2947 21-Dec-2004 Ruslan Ermilov <ru@FreeBSD.org>

NODOCCOMPRESS -> NO_DOCCOMPRESS
NOINFO -> NO_INFO
NOINFOCOMPRESS -> NO_INFOCOMPRESS
NOLINT -> NO_LINT
NOPIC -> NO_PIC
NOPROFILE -> NO_PROFILE


# a35d8893 24-Oct-2004 Ruslan Ermilov <ru@FreeBSD.org>

For variables that are only checked with defined(), don't provide
any fake value.


# 1c9c8d50 18-Oct-2004 Ruslan Ermilov <ru@FreeBSD.org>

Replaced afterinstall: with FILES.


# b3a71bf3 30-Aug-2003 Ruslan Ermilov <ru@FreeBSD.org>

Unbreak the NOINSTALLLIB install.

PR: 50945
Submitted by: Rene de Vries <rene@tunix.nl>
Reminded by: jmallett


# 4f4a104e 18-Aug-2003 David E. O'Brien <obrien@FreeBSD.org>

style.Makefile(5)


# 41d8423f 17-Aug-2003 Gordon Tetlow <gordon@FreeBSD.org>

Stage 3 of dynamic root support. Make all the libraries needed to run
binaries in /bin and /sbin installed in /lib. Only the versioned files
reside in /lib, the .so symlink continues to live /usr/lib so the
toolchain doesn't need to be modified.


# 3a624f5e 06-Jun-2003 Jun Kuriyama <kuriyama@FreeBSD.org>

Use
cat ${.ALLSRC} > ${.TARGET}
rather than
ln -sf ${.ALLSRC} ${.TARGET}
not to depends on absolute-path of symbolic links.

Commented by: marcel, obrien, bde


# bba777dd 30-Apr-2003 David E. O'Brien <obrien@FreeBSD.org>

Symlink with -f.


# 27220696 18-Apr-2003 Ruslan Ermilov <ru@FreeBSD.org>

Make this compile under cs_CZ.ISO8859-2 locale.

Reported by: Pav Lucistnik <pav@oook.cz>

We hit this problem earlier, in PR misc/45460.


# 30aaff11 05-Apr-2003 Warner Losh <imp@FreeBSD.org>

Migrate to a new way of dealing with building from old revisions of
FreeBSD. This method attempts to centralize all the necessary hacks
or work arounds in one of two places in the tree (src/Makefile.inc1
and src/tools/build). We build a small compatibility library
(libbuild.a) as well as selectively installing necessary include
files. We then include this directory when building host binaries.

This removes all the past release compatibilty hacks from various
places in the tree. We still build on tip of stable and current. I
will work with those that want to support more, although I anticipate
it will just work.

Many thanks to ru@, obrien@ and jhb@ for providing valuable input at
various stage of implementation, as well as for working together to
positively effect a change for the better.


# e478cf0a 25-Feb-2003 Ruslan Ermilov <ru@FreeBSD.org>

Fixed CLEANFILES.

Submitted by: cron


# b448dd2f 13-Nov-2002 Ruslan Ermilov <ru@FreeBSD.org>

Actually check if stdbool.h exists when BOOTSTRAPPING.


# 4192cfff 13-Nov-2002 Ruslan Ermilov <ru@FreeBSD.org>

Bootstrapping aid for 4.0-RELEASE.


# 224af215 27-Sep-2002 Peter Wemm <peter@FreeBSD.org>

Zap now-unused SHLIB_MINOR


# c099da11 25-Sep-2002 Mark Murray <markm@FreeBSD.org>

Try not to lint(1) contrib'ed sources. This Is Very Messy.


# 55ca7e1f 24-Sep-2002 Andrey A. Chernov <ache@FreeBSD.org>

Set _POSIX2_VERSION=199209 before calling MKkey_defs.sh as workaround of
obsolete +POS sort syntax.


# cef7a339 18-Sep-2002 Maxime Henrion <mux@FreeBSD.org>

Add a missing file into the CLEANFILES variable.

Approved by: peter


# 66422f5b 16-Sep-2002 Peter Wemm <peter@FreeBSD.org>

Initiate deorbit burn for the i386-only a.out related support. Moves are
under way to move the remnants of the a.out toolchain to ports. As the
comment in src/Makefile said, this stuff is deprecated and one should not
expect this to remain beyond 4.0-REL. It has already lasted WAY beyond
that.

Notable exceptions:
gcc - I have not touched the a.out generation stuff there.
ldd/ldconfig - still have some code to interface with a.out rtld.
old as/ld/etc - I have not removed these yet, pending their move to ports.
some includes - necessary for ldd/ldconfig for now.

Tested on: i386 (extensively), alpha


# abbd8902 21-Aug-2002 Mike Barcroft <mike@FreeBSD.org>

o Merge <machine/ansi.h> and <machine/types.h> into a new header
called <machine/_types.h>.
o <machine/ansi.h> will continue to live so it can define MD clock
macros, which are only MD because of gratuitous differences between
architectures.
o Change all headers to make use of this. This mainly involves
changing:
#ifdef _BSD_FOO_T_
typedef _BSD_FOO_T_ foo_t;
#undef _BSD_FOO_T_
#endif
to:
#ifndef _FOO_T_DECLARED
typedef __foo_t foo_t;
#define _FOO_T_DECLARED
#endif

Concept by: bde
Reviewed by: jake, obrien


# d2893b16 29-Jul-2002 Ruslan Ermilov <ru@FreeBSD.org>

Drop support for COPY, -c has been the default mode of install(1)
for a long time now.

Approved by: bde


# 0b87f799 17-Jul-2002 Ruslan Ermilov <ru@FreeBSD.org>

s/${INSTALL} -c/${INSTALL} ${COPY}/


# c9e2508f 02-Jun-2002 Andrey A. Chernov <ache@FreeBSD.org>

Add NCURSES_OSPEED replace command to MANFILTER


# e43996e5 20-May-2002 Peter Wemm <peter@FreeBSD.org>

Initial update of bmake glue for ncurses-5.2-20020518. More to come.


# c7b111cb 12-May-2002 Ruslan Ermilov <ru@FreeBSD.org>

Added new bsd.incs.mk which handles installing of header files
via INCS. Implemented INCSLINKS (equivalent to SYMLINKS) to
handle symlinking include files. Allow for multiple groups of
include files to be installed, with the powerful INCSGROUPS knob.
Documentation to follow.

Added standard `includes' and `incsinstall' targets, use them
in Makefile.inc1. Headers from the following makefiles were
not installed before (during `includes' in Makefile.inc1):

kerberos5/lib/libtelnet/Makefile
lib/libbz2/Makefile
lib/libdevinfo/Makefile
lib/libform/Makefile
lib/libisc/Makefile
lib/libmenu/Makefile
lib/libmilter/Makefile
lib/libpanel/Makefile

Replaced all `beforeinstall' targets for installing includes
with the INCS stuff.

Renamed INCDIR to INCSDIR, for consistency with FILES and SCRIPTS,
and for compatibility with NetBSD. Similarly for INCOWN, INCGRP,
and INCMODE.

Consistently use INCLUDEDIR instead of /usr/include.

gnu/lib/libstdc++/Makefile and gnu/lib/libsupc++/Makefile changes
were only lightly tested due to the missing contrib/libstdc++-v3.
I fully tested the pre-WIP_GCC31 version of this patch with the
contrib/libstdc++.295 stuff.

These changes have been tested on i386 with the -DNO_WERROR "make
world" and "make release".


# c31acb79 14-Sep-2001 Ruslan Ermilov <ru@FreeBSD.org>

Unbreak build-tools -- build and use up-to-date ${HEADERS}.
These might not be present in /usr/include, or they may be
incompatible with the version we are building (for library
upgrades/downgrades).

This stopped the RELENG_4 buildworld on a -CURRENT box.
Well, this only fixes the issue if MFC'ed. :-)


# 7dd144d7 11-Jun-2001 Peter Wemm <peter@FreeBSD.org>

Turn on the extra 'const' settings for various curses functions. While
this is not strictly compliant with XSI curses, it enables us to pass
const strings to many more functions that are actually const safe than
before. This should be harmless.

Requested by: lots of folks


# e34dcf28 07-Jun-2001 Maxim Sobolev <sobomax@FreeBSD.org>

Create curs_termcap.3 --> termcap.3 MLINK, so many manpages in our tree that
reference to termcap.3 will not be pointing to nowhere.

MFC after: 1 week


# 4402efc3 17-May-2001 David E. O'Brien <obrien@FreeBSD.org>

Use the correct FreeBSD definitions for wint_t and wchar_t.


# c1323a52 17-May-2001 Peter Wemm <peter@FreeBSD.org>

Argh. Fix a long-standing man page filter botch. See terminfo(5) for
the effect.


# 2493e893 17-May-2001 Peter Wemm <peter@FreeBSD.org>

Update for ncurses 5.2-20010512 import


# 4a558355 27-Mar-2001 Ruslan Ermilov <ru@FreeBSD.org>

MAN[1-9] -> MAN.


# 962079cf 04-Dec-2000 Thomas Gellekum <tg@FreeBSD.org>

Add some missing functions in MLINKS. Link assume_default_colors.3
and use_default_colors.3 to default_colors.3 instead of dft_fgbg.3.
The former seems to be newer and/or better maintained.


# f68135e5 11-Oct-2000 Peter Wemm <peter@FreeBSD.org>

Fix a buildworld hiccup with build-tools that wasn't present in standalone
library builds.


# 5148785c 11-Oct-2000 Peter Wemm <peter@FreeBSD.org>

Update bmake glue after ncurses 5.1-20001009 import.


# 6c388e84 04-Aug-2000 Ruslan Ermilov <ru@FreeBSD.org>

src/Makefile.inc1 sets DESTDIR=${WORLDTMP} for `buildworld' stage
causing pre-processed manual pages, like terminfo(5), to point to
the temporary build tree.


# c8e97871 03-Jul-2000 Peter Wemm <peter@FreeBSD.org>

Add new man pages


# d6a123ad 03-Jul-2000 Peter Wemm <peter@FreeBSD.org>

Get this to compile in the 5.1-20000701-prerelease environment.


# 55609eba 02-Mar-2000 Peter Wemm <peter@FreeBSD.org>

Make a link from curses.3 -> ncurses.3 so that 'man 3 curses' does
something remotely useful.


# b02c95d4 26-Jan-2000 Peter Wemm <peter@FreeBSD.org>

Add the new version.c file for curses_version(3)


# 55904856 10-Jan-2000 Brian Feldman <green@FreeBSD.org>

This is the second half of unbreaking the world build. Add a -DNOHTML
corollary for -DNOINFO and -DNOMAN. I'll fix this properly (add
specific HTML doc magic) in the .mk files later; right now, just
unbreak the world.


# c9215ae2 10-Jan-2000 Brian Feldman <green@FreeBSD.org>

*draws his sword*
I smite thee, vile buildworld breakage!

The story is that these were added to beforeinstall improperly. In our
beforeinstall, a full mtree has not been populated. Since the tree is
not populated, we explode from missing directories on doc install. It
should not be done in beforeinstall (includes) anyway.


# a8abed94 09-Jan-2000 Alexey Zelkin <phantom@FreeBSD.org>

Install html files to /usr/share/doc/ncurses/


# 73a84e4f 20-Dec-1999 Marcel Moolenaar <marcel@FreeBSD.org>

Make sure curses.h is generated when making build-tools make_keys
and make_hash depend on it.


# 895a9593 13-Dec-1999 Marcel Moolenaar <marcel@FreeBSD.org>

Add a `build-tools' target for make_hash and make_keys.


# b3682048 11-Dec-1999 Marcel Moolenaar <marcel@FreeBSD.org>

Install include files with mode 444.


# a10b671d 29-Nov-1999 Peter Wemm <peter@FreeBSD.org>

EEK! termios mode wasn't activated..

Noticed by: Christian Weisgerber <naddy@mips.rhein-neckar.de>


# bcf73362 26-Sep-1999 Peter Wemm <peter@FreeBSD.org>

Try and catch a make -j problem in 'make depend'.

Tested by: Dirk-Willem van Gulik <dirkx@va-179.skylink.it>


# b78515bd 31-Aug-1999 Peter Wemm <peter@FreeBSD.org>

Add a missing dependency for make_hash which could make various forms of
make -jN fail. This fixes the present problem only, not the larger one
of when those internal tools are built and the cross-compiling etc.

Submitted by: luoqi


# 0c5ed048 30-Aug-1999 Dmitrij Tejblum <dt@FreeBSD.org>

Make SYMLINKS relative. SYMLINKS are supposed to be relative, and for this
reason ${DESTDIR} isn't added to the symlink source.


# 99af2e21 30-Aug-1999 Peter Wemm <peter@FreeBSD.org>

Use src/contrib/ncurses, v5.0.990821 prerelease.

This isn't quite finished yet, there are still some unresolved problems
with ospeed and the sgtty.h (non-posix) terminal interface. Mostly
this only causes problems with src/games.

The other tools and libraries (libform,libpanel,libmenu) will come
shortly but are seperate.

Beware, there be dragons here! (The build will be broken for a short
while)


# 7f3dea24 27-Aug-1999 Peter Wemm <peter@FreeBSD.org>

$Id$ -> $FreeBSD$


# 682c5f7c 20-Mar-1998 Bruce Evans <bde@FreeBSD.org>

Renamed the generated include file keys.tries to keys.tries.h so
that it can be put in SRCS for dependency generation to work
properly. Don't use beforedepend, as usual.


# 4fcbf66f 20-Oct-1997 Andrey A. Chernov <ache@FreeBSD.org>

Remove terminfo manpage we don't have it


# 0e7e6efe 25-Aug-1997 Andrey A. Chernov <ache@FreeBSD.org>

Fix saving/restoring tty modes, allow initscr be called twice,
from ncurses 4.1


# cefcce61 24-Aug-1997 Andrey A. Chernov <ache@FreeBSD.org>

Add winnstr family and fake resizeterm from ncurses 4.1 for compatibility
with recent applications.
Bump minor number.


# 7e546392 22-Feb-1997 Peter Wemm <peter@FreeBSD.org>

Revert $FreeBSD$ to $Id$


# 1130b656 14-Jan-1997 Jordan K. Hubbard <jkh@FreeBSD.org>

Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.


# 5b963fa1 05-Sep-1996 Bruce Evans <bde@FreeBSD.org>

Fixed DPADD.


# 345be915 29-Aug-1996 Peter Wemm <peter@FreeBSD.org>

cmp -s || install -c ==> install -C


# 3d98454e 26-Aug-1996 Peter Wemm <peter@FreeBSD.org>

Delete -DGOOD_SELECT from CFLAGS, we don't have it. This is used to
indicate that select() returns the leftover time remaining in the timeval
arg of select, we don't do that (yet :-).


# dd6e5b0f 27-May-1996 Wolfram Schneider <wosch@FreeBSD.org>

remove MLINKS tparm.3 due name clash with libtermcap


# c211e812 08-Feb-1996 Mike Pritchard <mpp@FreeBSD.org>

Added some missing MLINKS for section 3 man pages.
Also corrected a few minor formatting errors, file location and cross
references in some of the section 3 man pages.

This shuts up a lot of the output from "manck" for section 3.


# 97cefc58 05-Aug-1995 Bruce Evans <bde@FreeBSD.org>

Install source files with the -c flag, not with the optional flag ${COPY}.


# 11d07acb 08-May-1995 Andrey A. Chernov <ache@FreeBSD.org>

Bump major number instead of minor


# fbe36800 03-May-1995 Andrey A. Chernov <ache@FreeBSD.org>

Bump minor number


# 7ca7a193 20-Apr-1995 Andrey A. Chernov <ache@FreeBSD.org>

Add a bit more docs


# c6493ee4 13-Feb-1995 Andrey A. Chernov <ache@FreeBSD.org>

Add missing lib_window.c to SRCS


# 43f9c027 03-Dec-1994 Andrey A. Chernov <ache@FreeBSD.org>

termcap.h now belongs to system


# 795172f7 01-Dec-1994 Andrey A. Chernov <ache@FreeBSD.org>

Upgrade to version 1.8.6


# 1f36118a 28-Nov-1994 Andrey A. Chernov <ache@FreeBSD.org>

wscrl: implement partial scrolling via al/dl
winsdel: implemented via wscrl
winsertln/deleteln: implemented as macros via winsdel


# 3a1ed324 28-Oct-1994 Andrey A. Chernov <ache@FreeBSD.org>

Add -I${.CURDIR}


# 9c9986c2 11-Oct-1994 Andrey A. Chernov <ache@FreeBSD.org>

LDADD: = -> +=


# f8e42f87 11-Oct-1994 Andrey A. Chernov <ache@FreeBSD.org>

Fix two problems pointed by Bruce:
keys.tries generated in ${.CURDIR} which may be readonly
lib_options.{po,so} not properly rebuilded if keys.tries deleted
and no .depend


# 6ede2007 09-Oct-1994 Andrey A. Chernov <ache@FreeBSD.org>

Merge term.h & nterm.h


# 7afcaa86 09-Oct-1994 Andrey A. Chernov <ache@FreeBSD.org>

Add copyright.c to be always linked in


# c0e33523 07-Oct-1994 Andrey A. Chernov <ache@FreeBSD.org>

Moved from ports with several enhancements