Import patches from pkgsrc

* Adjust paths to modern conventions.
* Avoid opening /dev/console.
* Consistently provide lowercase and MixedCase options.
* Don't abuse an int as a pointer (optarg).
* Fix compilation errors on NetBSD and DragonFly BSD.
* Fix documentation.
* Import headers and remove redundant declarations.

Signed-off-by: Masanori Ogino <mogino@acm.org>
This commit is contained in:
Masanori Ogino 2023-11-27 10:29:45 +09:00
commit 381c676eda
26 changed files with 143 additions and 98 deletions

View file

@ -32,12 +32,12 @@
* $SonyDate: 1997/01/23 11:20:57 $
*/
SJ3TOP = /usr/local
SJ3TOP = $(PREFIX)
SJ3BINDIR = $(SJ3TOP)/bin
SJ3HDRDIR = $(SJ3TOP)/include
SJ3LIBDIR = $(SJ3TOP)/lib
SJ3CONFDIR = $(SJ3TOP)/lib/sj3
SJ3DICTDIR = $(SJ3CONFDIR)/dict
SJ3CONFDIR = $(SJ3TOP)/share/sj3
SJ3DICTDIR = $(IMDICTDIR)/sj3
/*
* Change for FreeBSD.
@ -45,10 +45,11 @@ SJ3DICTDIR = $(SJ3CONFDIR)/dict
* return NULL, use it in library libxpg4
* Patched by Hidekazu Kuroki(hidekazu@cs.titech.ac.jp) 1996/8/10
*/
#if 0
#if defined(FreeBSDArchitecture)
CODE_LIBS = -lxpg4
SJ3OWNER = root
SJ3OWNER = bin
SJ3GROUP = bin
#else
@ -62,3 +63,4 @@ SJ3GROUP = staff
#endif
#endif
#endif