blob: 40147695e7a2baa6e9b6ec8e988524f316d9581b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
|
PORTNAME= links
PORTVERSION= 2.29
PORTEPOCH= 1
CATEGORIES= www
MASTER_SITES= http://links.twibright.com/download/
MAINTAINER= portmaster@BSDforge.com
COMMENT= Lynx-like text WWW browser
WWW= http://links.twibright.com/
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
CONFLICTS_INSTALL= links1
LIB_DEPENDS= libzstd.so:archivers/zstd
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-ssl --without-pmshell --without-atheos \
--without-gpm --without-fb --without-windows
USES= cpe localbase:ldflags ssl tar:bz2
CPE_VENDOR= twibright
PLIST_FILES= bin/links man/man1/links.1.gz
OPTIONS_DEFINE= BROTLI CIPHERSTRING DIRECTFB IPV6 SVG SVGALIB THREADS TRANS \
UTF8 X11
OPTIONS_DEFAULT= UTF8 X11
BROTLI_LIB_DEPENDS= libbrotlidec.so:archivers/brotli
BROTLI_CONFIGURE_WITH= brotli
CIPHERSTRING_DESC= Select the OpenSSL ciphers used via CIPHERSTRING
DIRECTFB_DESC= DirectFB graphics support
TRANS_DESC= Hack for background transparency
DIRECTFB_LIB_DEPENDS= libdirectfb.so:devel/directfb
DIRECTFB_CONFIGURE_WITH=directfb
IPV6_CONFIGURE_WITH= ipv6
SVG_CONFIGURE_WITH= librsvg
SVG_USES= gnome
SVG_USE= gnome=librsvg2,glib20,gdkpixbuf2,cairo
SVGALIB_LIB_DEPENDS= libvga.so:graphics/svgalib
SVGALIB_CONFIGURE_WITH= svgalib
THREADS_CFLAGS= -DHAVE_PTHREADS
THREADS_LDFLAGS=-pthread
TRANS_EXTRA_PATCHES= ${FILESDIR}/extra-terminal.c.diff
UTF8_CONFIGURE_ENABLE= utf8
X11_USES= xorg
X11_USE= xorg=x11,xorgproto
X11_LIB_DEPENDS= libevent.so:devel/libevent \
libfontconfig.so:x11-fonts/fontconfig \
libfreetype.so:print/freetype2
X11_CONFIGURE_WITH= x
X11_PLIST_FILES= share/pixmaps/links.xpm
.include <bsd.port.options.mk>
#CIPHERSTRING must be a valid OpenSSL cipher string(see ciphers(1)):
CIPHERSTRING?= HIGH:!SSLv2:!aNULL:!eNULL:@STRENGTH
.if ${PORT_OPTIONS:MDIRECTFB} || ${PORT_OPTIONS:MSVGALIB} || ${PORT_OPTIONS:MX11}
LIB_DEPENDS+= libavif.so:graphics/libavif \
libpng.so:graphics/png \
libtiff.so:graphics/tiff \
libwebp.so:graphics/webp
USES+= jpeg pkgconfig
CONFIGURE_ARGS+= --enable-graphics
.else
.if ${PORT_OPTIONS:MSVG}
IGNORE= option SVG requires one of DIRECTFB, SVGALIB, or X11
.endif
CONFIGURE_ARGS+= --disable-graphics --without-libavif \
--without-libjpeg --without-librsvg \
--without-libtiff --without-libwebp
.endif
.if ${PORT_OPTIONS:MX11}
DESKTOP_ENTRIES="links" \
"${COMMENT}" \
"${PREFIX}/share/pixmaps/links.xpm" \
"links -g" \
"Network;WebBrowser;" \
false
.endif
post-patch:
@${REINPLACE_CMD} -e "s!/etc/!${PREFIX}/etc/!" ${WRKSRC}/os_dep.h
.if ${PORT_OPTIONS:MCIPHERSTRING}
@${REINPLACE_CMD} -e '/SSL_CTX_set_options/ \
s/;/; SSL_CTX_set_cipher_list(ctx, "${CIPHERSTRING}");/' \
${WRKSRC}/https.c
.endif
.if ${PORT_OPTIONS:MX11}
post-install:
${INSTALL_DATA} ${WRKSRC}/graphics/links.xpm ${STAGEDIR}${PREFIX}/share/pixmaps/links.xpm
.endif
.include <bsd.port.mk>
|