pkgsrc/www/elinks/options.mk

136 lines
3.1 KiB
Makefile
Raw Normal View History

# $NetBSD: options.mk,v 1.16 2012/11/04 21:50:53 wiz Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.elinks
PKG_SUPPORTED_OPTIONS+= bittorrent nntp finger gopher
PKG_SUPPORTED_OPTIONS+= inet6 x11 elinks-exmode expat
PKG_SUPPORTED_OPTIONS+= elinks-html-highlight elinks-root-exec
PKG_SUPPORTED_OPTIONS+= kerberos
PKG_SUPPORTED_OPTIONS+= python
PKG_OPTIONS_GROUP.tls= gnutls ssl
PKG_OPTIONS_GROUP.malloc= boehm-gc elinks-fastmem
PKG_OPTIONS_REQUIRED_GROUPS= tls
PKG_OPTIONS_OPTIONAL_GROUPS= malloc
Update to 0.12pre6. Remove javascript option since a) lang/see support was removed (see below) b) lang/spidermonkey and wip/spidermonkey185 aren't recognized ELinks 0.12pre6 --------------- Security fix: * bug 1124, CVE-2012-4545: Do not delegate GSSAPI credentials in HTTP Negotiate or GSS-Negotiate authentication. Reported by Marko Myllynen. (ELinks 0.12pre1 was the first release that supported GSSAPI; earlier releases are not vulnerable.) Fixed crashes and hangs: * critical bug 943: Don't let user JavaScripts call any methods of ``elinks.action'' in tabs that do not have the focus. If a tab was closed with ``elinks.action.tab_close'' while it had pop-up windows, ELinks could crash; as a precaution, don't allow other actions either. (ELinks 0.12pre1 was the first release that supported ``elinks.action''.) * critical bug 1083: Avoid an infinite loop when trying to decompress malformed data. Caused by the bug 1068 fix in ELinks 0.12pre3. * Fix a possible crash or information disclosure on big-endian 64-bit systems using HTTP Negotiate or GSS-Negotiate authentication. Incompatibilities: * Dropped support for SEE. (ELinks 0.12pre1 was the first release that supported SEE.) * Guile 2.0.0 (released on 2011-02-16) changed its license to LGPLv3-or-later, which is not compatible with the GPLv2 that covers ELinks. Also, Guile has deprecated many of the functions that ELinks calls. Other changes: * major bug 764: Correctly initialize options on big-endian 64-bit systems. * bug 983: Give preference to the Content-Type specified in the HTTP header over that specified via the HTML meta tag. * bug 1084: Allow option names containing '+' and '*' in the option manager. * bug 1112: Map most numeric character references € ... Ÿ to graphical characters also when the output charset is UTF-8. (ELinks 0.12pre1 was the first release that supported UTF-8 as the terminal charset, and ELinks 0.12pre5 was the first release that supported UTF-8 as the dump charset.) * minor bug 1113: Fix a small memory leak if a mailcap file is malformed. * minor bug 1114: Decode SGML entities and NCRs only once in link/@title and other attributes. * build: Fix several warnings reported by GCC 4.7.1. Harmless at runtime but could break the build if configured --enable-debug. (This version does not fix all such warnings.)
2012-11-03 15:43:25 +01:00
PKG_SUGGESTED_OPTIONS= ssl elinks-html-highlight elinks-exmode
PKG_SUGGESTED_OPTIONS+= expat boehm-gc inet6
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Minet6)
CONFIGURE_ARGS+= --enable-ipv6
.else
CONFIGURE_ARGS+= --disable-ipv6
.endif
.if !empty(PKG_OPTIONS:Mx11)
BUILDLINK_DEPMETHOD.libXt?= build
.include "../../x11/libX11/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
CONFIGURE_ARGS+= --with-x
.else
CONFIGURE_ARGS+= --without-x
.endif
.if !empty(PKG_OPTIONS:Mbittorrent)
CONFIGURE_ARGS+= --enable-bittorrent
.else
CONFIGURE_ARGS+= --disable-bittorrent
.endif
.if !empty(PKG_OPTIONS:Mnntp)
CONFIGURE_ARGS+= --enable-nntp
.else
CONFIGURE_ARGS+= --disable-nntp
.endif
Update to 0.12pre6. Remove javascript option since a) lang/see support was removed (see below) b) lang/spidermonkey and wip/spidermonkey185 aren't recognized ELinks 0.12pre6 --------------- Security fix: * bug 1124, CVE-2012-4545: Do not delegate GSSAPI credentials in HTTP Negotiate or GSS-Negotiate authentication. Reported by Marko Myllynen. (ELinks 0.12pre1 was the first release that supported GSSAPI; earlier releases are not vulnerable.) Fixed crashes and hangs: * critical bug 943: Don't let user JavaScripts call any methods of ``elinks.action'' in tabs that do not have the focus. If a tab was closed with ``elinks.action.tab_close'' while it had pop-up windows, ELinks could crash; as a precaution, don't allow other actions either. (ELinks 0.12pre1 was the first release that supported ``elinks.action''.) * critical bug 1083: Avoid an infinite loop when trying to decompress malformed data. Caused by the bug 1068 fix in ELinks 0.12pre3. * Fix a possible crash or information disclosure on big-endian 64-bit systems using HTTP Negotiate or GSS-Negotiate authentication. Incompatibilities: * Dropped support for SEE. (ELinks 0.12pre1 was the first release that supported SEE.) * Guile 2.0.0 (released on 2011-02-16) changed its license to LGPLv3-or-later, which is not compatible with the GPLv2 that covers ELinks. Also, Guile has deprecated many of the functions that ELinks calls. Other changes: * major bug 764: Correctly initialize options on big-endian 64-bit systems. * bug 983: Give preference to the Content-Type specified in the HTTP header over that specified via the HTML meta tag. * bug 1084: Allow option names containing '+' and '*' in the option manager. * bug 1112: Map most numeric character references € ... Ÿ to graphical characters also when the output charset is UTF-8. (ELinks 0.12pre1 was the first release that supported UTF-8 as the terminal charset, and ELinks 0.12pre5 was the first release that supported UTF-8 as the dump charset.) * minor bug 1113: Fix a small memory leak if a mailcap file is malformed. * minor bug 1114: Decode SGML entities and NCRs only once in link/@title and other attributes. * build: Fix several warnings reported by GCC 4.7.1. Harmless at runtime but could break the build if configured --enable-debug. (This version does not fix all such warnings.)
2012-11-03 15:43:25 +01:00
#.if !empty(PKG_OPTIONS:Mjavascript)
#.include "../../lang/spidermonkey/buildlink3.mk"
#CONFIGURE_ARGS+= --with-spidermonkey
#CONFIGURE_ARGS+= --enable-sm-scripting
#.else
#CONFIGURE_ARGS+= --without-spidermonkey
#CONFIGURE_ARGS+= --disable-sm-scripting
#.endif
.if !empty(PKG_OPTIONS:Mssl)
.include "../../security/openssl/buildlink3.mk"
CONFIGURE_ARGS+= --with-openssl=${BUILDLINK_PREFIX.openssl}
2006-12-16 12:23:45 +01:00
.elif !empty(PKG_OPTIONS:Mgnutls)
.include "../../security/gnutls/buildlink3.mk"
CONFIGURE_ARGS+= --without-openssl
2006-12-16 12:23:45 +01:00
.endif
# Requires fsplib, which is not currently in pkgsrc.
#
#.if !empty(PKG_OPTIONS:Mfsp)
#CONFIGURE_ARGS+= --enable-fsp
#.else
#CONFIGURE_ARGS+= --disable-fsp
#.endif
.if !empty(PKG_OPTIONS:Mfinger)
CONFIGURE_ARGS+= --enable-finger
.else
CONFIGURE_ARGS+= --disable-finger
.endif
.if !empty(PKG_OPTIONS:Mgopher)
CONFIGURE_ARGS+= --enable-gopher
.else
CONFIGURE_ARGS+= --disable-gopher
.endif
.if !empty(PKG_OPTIONS:Mexpat)
.include "../../textproc/expat/buildlink3.mk"
CONFIGURE_ARGS+= --enable-xbel
.else
CONFIGURE_ARGS+= --disable-xbel
.endif
.if !empty(PKG_OPTIONS:Melinks-html-highlight)
CONFIGURE_ARGS+= --enable-html-highlight
.else
CONFIGURE_ARGS+= --disable-html-hightlight
.endif
.if !empty(PKG_OPTIONS:Melinks-exmode)
CONFIGURE_ARGS+= --enable-exmode
.else
CONFIGURE_ARGS+= --disable-exmode
.endif
.if !empty(PKG_OPTIONS:Melinks-root-exec)
CONFIGURE_ARGS+= --disable-no-root
.else
CONFIGURE_ARGS+= --enable-no-root
.endif
.if !empty(PKG_OPTIONS:Mboehm-gc)
CONFIGURE_ARGS+= --with-gc=${BUILDLINK_PREFIX.boehm-gc:Q}
. include "../../devel/boehm-gc/buildlink3.mk"
.elif !empty(PKG_OPTIONS:Melinks-fastmem)
CONFIGURE_ARGS+= --enable-fastmem
.endif
.if !empty(PKG_OPTIONS:Mkerberos)
CONFIGURE_ARGS+= --with-gssapi
. include "../../mk/krb5.buildlink3.mk"
.else
CONFIGURE_ARGS+= --without-gssapi
.endif
.if !empty(PKG_OPTIONS:Mpython)
.include "../../lang/python/pyversion.mk"
CONFIGURE_ARGS+= --with-python=${PYTHONBIN}
.else
CONFIGURE_ARGS+= --without-python
.endif