openbsd-ports

Working directory for my changes to OpenBSD ports
Log | Files | Refs

commit 12fb6dcf522e35cca813286eb08803c97e8c11a1
Author: Shokara Kou <kou@13f0.net>
Date:   Thu, 19 May 2022 21:37:27 -0400

add links+

Diffstat:
Awww/links+/CVS/Entries | 4++++
Awww/links+/CVS/Repository | 1+
Awww/links+/CVS/Root | 1+
Awww/links+/Makefile | 47+++++++++++++++++++++++++++++++++++++++++++++++
Awww/links+/distinfo | 2++
Awww/links+/patches/CVS/Entries | 3+++
Awww/links+/patches/CVS/Repository | 1+
Awww/links+/patches/CVS/Root | 1+
Awww/links+/patches/patch-html_c | 12++++++++++++
Awww/links+/patches/patch-https_c | 16++++++++++++++++
Awww/links+/pkg/CVS/Entries | 4++++
Awww/links+/pkg/CVS/Repository | 1+
Awww/links+/pkg/CVS/Root | 1+
Awww/links+/pkg/DESCR | 9+++++++++
Awww/links+/pkg/MESSAGE.x11 | 2++
Awww/links+/pkg/PLIST | 15+++++++++++++++
16 files changed, 120 insertions(+), 0 deletions(-)

diff --git a/www/links+/CVS/Entries b/www/links+/CVS/Entries @@ -0,0 +1,4 @@ +/Makefile/1.71/Mon Jun 28 07:35:35 2021// +/distinfo/1.41/Mon Jun 28 07:35:35 2021// +D/patches//// +D/pkg//// diff --git a/www/links+/CVS/Repository b/www/links+/CVS/Repository @@ -0,0 +1 @@ +ports/www/links+ diff --git a/www/links+/CVS/Root b/www/links+/CVS/Root @@ -0,0 +1 @@ +/cvs diff --git a/www/links+/Makefile b/www/links+/Makefile @@ -0,0 +1,47 @@ +# $OpenBSD: Makefile,v 1.71 2021/06/28 07:35:35 sthen Exp $ + +COMMENT= graphics and text browser +VER= 2.26 +DISTNAME= links-${VER} +PKGNAME= links+-${VER} +CATEGORIES= www + +HOMEPAGE= http://links.twibright.com/ + +MAINTAINER= Tim Meunier <trondd@kagu-tsuchi.com> + +# GPLv2+ +PERMIT_PACKAGE= Yes + +WANTLIB= bz2 c crypto event lzma pthread ssl z + +MASTER_SITES= http://links.twibright.com/download/ + +LIB_DEPENDS= archivers/bzip2 \ + archivers/xz + +CONFIGURE_STYLE= gnu +CONFIGURE_ARGS+= --with-ssl --without-brotli --without-lzip --without-zstd +CONFIGURE_ARGS+= --without-freetype --without-librsvg --without-libtiff +CONFIGURE_ARGS+= --without-svgalib --without-openmp + +FLAVORS= no_x11 +FLAVOR?= + +.if !${FLAVOR:Mno_x11} +LIB_DEPENDS+= graphics/jpeg \ + graphics/png +CONFIGURE_ARGS+= --with-x --enable-graphics +WANTLIB+= X11 jpeg>=62 m png + +MESSAGE= ${PKGDIR}/MESSAGE.x11 +.endif + +MAKE_FLAGS= CFLAGS="${CFLAGS} -DEVENT_DEPRECATED" +NO_TEST= Yes + +post-install: + ${INSTALL_DATA_DIR} ${PREFIX}/share/links+ + ${INSTALL_DATA} ${WRKSRC}/doc/links_cal/* ${PREFIX}/share/links+ + +.include <bsd.port.mk> diff --git a/www/links+/distinfo b/www/links+/distinfo @@ -0,0 +1,2 @@ +SHA256 (links-2.26.tar.gz) = xCpNuiHc+0UlA0E5SJzUfzCqDF+dBbN9Ti6q6pQ/4rE= +SIZE (links-2.26.tar.gz) = 7104653 diff --git a/www/links+/patches/CVS/Entries b/www/links+/patches/CVS/Entries @@ -0,0 +1,3 @@ +/patch-html_c/1.17/Thu Apr 26 00:35:53 2018// +/patch-https_c/1.7/Sun Sep 23 20:12:32 2018// +D diff --git a/www/links+/patches/CVS/Repository b/www/links+/patches/CVS/Repository @@ -0,0 +1 @@ +ports/www/links+/patches diff --git a/www/links+/patches/CVS/Root b/www/links+/patches/CVS/Root @@ -0,0 +1 @@ +/cvs diff --git a/www/links+/patches/patch-html_c b/www/links+/patches/patch-html_c @@ -0,0 +1,12 @@ +$OpenBSD: patch-html_c,v 1.17 2018/04/26 00:35:53 bcallah Exp $ +Index: html.c +--- html.c.orig ++++ html.c +@@ -1004,6 +1004,7 @@ static void html_a(unsigned char *a) + format_.target = stracpy(format_.target_base); + } + /*format_.attr ^= AT_BOLD;*/ ++ format_.attr |= AT_UNDERLINE; + set_link_attr(); + } else if (!ev) kill_html_stack_item(&html_top); + if ((al = get_attr_val(a, cast_uchar "name"))) { diff --git a/www/links+/patches/patch-https_c b/www/links+/patches/patch-https_c @@ -0,0 +1,16 @@ +$OpenBSD: patch-https_c,v 1.7 2018/09/23 20:12:32 sthen Exp $ +Index: https.c +--- https.c.orig ++++ https.c +@@ -264,6 +264,11 @@ links_ssl *getSSL(void) + RAND_write_file(cast_const_char f_randfile); + } + } ++#elif defined(HAVE_RAND_FILE_NAME) && defined(HAVE_RAND_LOAD_FILE) && defined(HAVE_RAND_WRITE_FILE) ++ unsigned char f_randfile[PATH_MAX]; ++ const unsigned char *f = (const unsigned char *)RAND_file_name(cast_char f_randfile, sizeof(f_randfile)); ++ if (RAND_load_file(cast_const_char f_randfile, -1)) ++ RAND_write_file(cast_const_char f_randfile); + #endif + + #if defined(HAVE_RAND_ADD) diff --git a/www/links+/pkg/CVS/Entries b/www/links+/pkg/CVS/Entries @@ -0,0 +1,4 @@ +/DESCR/1.3/Sat Oct 20 11:44:23 2007// +/MESSAGE.x11/1.1/Mon Jul 12 22:02:27 2010// +/PLIST/1.4/Fri Oct 10 23:08:26 2008// +D diff --git a/www/links+/pkg/CVS/Repository b/www/links+/pkg/CVS/Repository @@ -0,0 +1 @@ +ports/www/links+/pkg diff --git a/www/links+/pkg/CVS/Root b/www/links+/pkg/CVS/Root @@ -0,0 +1 @@ +/cvs diff --git a/www/links+/pkg/DESCR b/www/links+/pkg/DESCR @@ -0,0 +1,9 @@ +Links main features: +- Graphics and text browser +- Easy and quick user control via pull-down menu in both text and + graphics mode, in 25 languages. +- Tables, frames in both graphics and text mode, builtin image + display in graphics mode + +Flavors: + no_x11 - disable X support. diff --git a/www/links+/pkg/MESSAGE.x11 b/www/links+/pkg/MESSAGE.x11 @@ -0,0 +1,2 @@ +To calibrate your monitor with links+, run: + ${PREFIX}/bin/links -g ${PREFIX}/share/links+/calibration.html diff --git a/www/links+/pkg/PLIST b/www/links+/pkg/PLIST @@ -0,0 +1,15 @@ +@comment $OpenBSD: PLIST,v 1.4 2008/10/10 23:08:26 sthen Exp $ +@conflict links-* +@bin bin/links +@man man/man1/links.1 +share/links+/ +share/links+/adjusted.png +share/links+/black-control-rocking.png +share/links+/black-icon.png +share/links+/calibration.html +share/links+/elbow.png +share/links+/kalibrace.html +share/links+/picture-crank-0.png +share/links+/picture-crank-up.png +share/links+/picture-icon.png +share/links+/test_pattern.png