pkgsrc/www/w3m/options.mk
wiz b31ad0cbf5 Updated w3m to 0.5.3.0.20161031.
Switch from dead sourceforge original to debian-maintained github version.

* new features
 - support OSC 5379 remote imaging and sixel graphics
 - support SGR style mouse handler
 - support 32-bit color images
 - support FreeBSD framebuffer
 - support button element
 - support meta charset
 - add extbrowser4..9
 - add display_borders to display 0 pixel table borders
 - add siteconf feature
 - add German translation for options setting panel
 - add translations for de, zh_CN and zh_TW
* bug fixes
 - fix segfaults with malformed text
 - disable SSLv2 and SSLv3 by default [CVE-2014-3566]
 - set ssl_verify_server to 1 by default
 - disable RC4, export ciphers, and keys < 128 bits
 - use SSL_OP_NO_COMPRESSION due to "CRIME attack" [CVE-2012-4929]
 - use SSL_MODE_RELEASE_BUFFERS
 - disable USE_EGD for LibreSSL
 - appease gcc -Werror=format-security
 - option -s is now "squeeze multiple blank lines" to work as pager, and
   -j and -e are obsolete, so use -O{s|j|e} to specify display charset
 - accept single quoted meta refresh URL
 - assume "text" if a form input type is unknown
 - accept cookies by default
 - set use_dictcommand to 1 by default
 - set default_url to 1 by default
 - set argv_is_url to 1 by default
 - set alt_entity to 0 by default
 - fix build problems with Boehm GC 7.2, imlib2 1.4.6 and glibc 2.14
 - fix parallel make failure
 - fix incorrect ucs_ambwidth_map
 - and many fixes
2016-11-06 19:26:35 +00:00

59 lines
1.7 KiB
Makefile

# $NetBSD: options.mk,v 1.15 2016/11/06 19:26:35 wiz Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.w3m
PKG_SUPPORTED_OPTIONS= inet6 migemo w3m-lynx-key
PKG_SUGGESTED_OPTIONS= inet6
.if ${_W3M_USE_IMAGE} == "YES"
PKG_OPTIONS_REQUIRED_GROUPS+= imagelib
PKG_SUGGESTED_OPTIONS+= w3m-image-gtk2
.else
PKG_OPTIONS_OPTIONAL_GROUPS+= imagelib
.endif
PKG_OPTIONS_GROUP.imagelib= w3m-image-gdk-pixbuf w3m-image-imlib \
w3m-image-imlib2 w3m-image-gtk2
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Minet6)
CONFIGURE_ARGS+= --enable-ipv6
.else
CONFIGURE_ARGS+= --disable-ipv6
.endif
.if !empty(PKG_OPTIONS:Mmigemo)
.include "../../lang/ruby/rubyversion.mk"
DEPENDS+= ${RUBY_PKGPREFIX}-migemo-[0-9]*:../../textproc/migemo
CONFIGURE_ARGS+= --with-migemo="${LOCALBASE}/bin/migemo -t egrep ${LOCALBASE}/share/migemo/migemo-dict"
.else
CONFIGURE_ARGS+= --without-migemo
.endif
.if !empty(PKG_OPTIONS:Mw3m-lynx-key)
CONFIGURE_ARGS+= --enable-keymap=lynx
.else
CONFIGURE_ARGS+= --enable-keymap=w3m
.endif
PLIST_VARS+= image
.if !empty(PKG_OPTIONS:Mw3m-image-*)
. for _imagelib in ${PKG_OPTIONS_GROUP.imagelib}
. if !empty(PKG_OPTIONS:M${_imagelib})
_W3M_IMAGELIB= ${_imagelib:C|^w3m-image-||}
. endif
. endfor
USE_X11= YES
CONFIGURE_ARGS+= --enable-image=x11 --with-imagelib=${_W3M_IMAGELIB:Q}
PLIST.image= yes
BUILDLINK_DEPMETHOD.libXt?= build
. include "../../x11/libXt/buildlink3.mk"
. if empty(_W3M_IMAGELIB:Mgtk2)
. include "../../graphics/${_W3M_IMAGELIB}/buildlink3.mk"
. else
USE_TOOLS+= pkg-config
. include "../../x11/${_W3M_IMAGELIB}/buildlink3.mk"
. include "../../graphics/gdk-pixbuf2-xlib/buildlink3.mk"
. endif
.else
CONFIGURE_ARGS+= --disable-image
.endif