From 773e7652187ac248a9f2dda32ee8b29c13d41535 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juhani=20Krekel=C3=A4?= Date: Sat, 28 Aug 2021 18:43:25 +0300 Subject: [PATCH] Sortix patches --- Makefile.in | 2 -- configure | 4 ++-- language.c | 3 +++ tix.port | 5 +++++ 4 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 tix.port diff --git a/Makefile.in b/Makefile.in index 63acc3b..1953ae2 100644 --- a/Makefile.in +++ b/Makefile.in @@ -35,8 +35,6 @@ mandir = @mandir@ includedir = @includedir@ oldincludedir = /usr/include -DESTDIR = - pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ diff --git a/configure b/configure index 354c422..6c380c8 100755 --- a/configure +++ b/configure @@ -124,7 +124,7 @@ libdir='${exec_prefix}/lib' includedir='${prefix}/include' oldincludedir='/usr/include' infodir='${prefix}/info' -mandir='${prefix}/man' +mandir='${prefix}/share/man' # Initialize some other variables. subdirs= @@ -241,7 +241,7 @@ Directory and file names: --includedir=DIR C header files in DIR [PREFIX/include] --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] --infodir=DIR info documentation in DIR [PREFIX/info] - --mandir=DIR man documentation in DIR [PREFIX/man] + --mandir=DIR man documentation in DIR [PREFIX/share/man] --srcdir=DIR find the sources in DIR [configure dir or ..] --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names diff --git a/language.c b/language.c index cab6d63..b2aa7d7 100644 --- a/language.c +++ b/language.c @@ -2,6 +2,7 @@ * (c) 2002 Mikulas Patocka * This file is a part of the Links program, released under GPL. */ +#include #include "links.h" @@ -130,6 +131,8 @@ int get_default_charset(void) lang = cast_uchar getenv("LC_CTYPE"); if (!lang) lang = cast_uchar getenv("LANG"); + if (!lang) + lang = cast_uchar nl_langinfo(CODESET); if (!lang) { i = 0; goto ret_i; diff --git a/tix.port b/tix.port new file mode 100644 index 0000000..4278140 --- /dev/null +++ b/tix.port @@ -0,0 +1,5 @@ +NAME=links +BUILD_LIBRARIES='libssl libbrotli? libevent? liblzip? liblzma? libz? libzstd?' +BUILD_SYSTEM=configure +LOCATION_INDEPENDENT=true +LICENSE=GPL-2.0-or-later