Add links port.
This commit is contained in:
parent
352cd69fec
commit
6f43cc3806
|
@ -0,0 +1,53 @@
|
||||||
|
diff -Paur --no-dereference -- links.upstream/configure links/configure
|
||||||
|
--- links.upstream/configure
|
||||||
|
+++ links/configure
|
||||||
|
@@ -122,7 +122,7 @@
|
||||||
|
includedir='${prefix}/include'
|
||||||
|
oldincludedir='/usr/include'
|
||||||
|
infodir='${prefix}/info'
|
||||||
|
-mandir='${prefix}/man'
|
||||||
|
+mandir='${prefix}/share/man'
|
||||||
|
|
||||||
|
# Initialize some other variables.
|
||||||
|
subdirs=
|
||||||
|
@@ -239,7 +239,7 @@
|
||||||
|
--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 -Paur --no-dereference -- links.upstream/language.c links/language.c
|
||||||
|
--- links.upstream/language.c
|
||||||
|
+++ links/language.c
|
||||||
|
@@ -2,6 +2,7 @@
|
||||||
|
* (c) 2002 Mikulas Patocka
|
||||||
|
* This file is a part of the Links program, released under GPL.
|
||||||
|
*/
|
||||||
|
+#include <langinfo.h>
|
||||||
|
|
||||||
|
#include "links.h"
|
||||||
|
|
||||||
|
@@ -130,6 +131,8 @@
|
||||||
|
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 -Paur --no-dereference -- links.upstream/Makefile.in links/Makefile.in
|
||||||
|
--- links.upstream/Makefile.in
|
||||||
|
+++ links/Makefile.in
|
||||||
|
@@ -35,8 +35,6 @@
|
||||||
|
includedir = @includedir@
|
||||||
|
oldincludedir = /usr/include
|
||||||
|
|
||||||
|
-DESTDIR =
|
||||||
|
-
|
||||||
|
pkgdatadir = $(datadir)/@PACKAGE@
|
||||||
|
pkglibdir = $(libdir)/@PACKAGE@
|
||||||
|
pkgincludedir = $(includedir)/@PACKAGE@
|
|
@ -0,0 +1,11 @@
|
||||||
|
NAME=links
|
||||||
|
BUILD_LIBRARIES='libssl libbrotli? libevent? liblzma? libz? libzstd? liblzip?'
|
||||||
|
VERSION=2.28
|
||||||
|
DISTNAME=links-$VERSION
|
||||||
|
COMPRESSION=tar.bz2
|
||||||
|
ARCHIVE=$DISTNAME.$COMPRESSION
|
||||||
|
SHA256SUM=2fd5499b13dee59457c132c167b8495c40deda75389489c6cccb683193f454b4
|
||||||
|
UPSTREAM_SITE=http://links.twibright.com/download
|
||||||
|
UPSTREAM_ARCHIVE=$ARCHIVE
|
||||||
|
BUILD_SYSTEM=configure
|
||||||
|
LOCATION_INDEPENDENT=true
|
Loading…
Reference in New Issue