2016-11-06 20:26:35 +01:00
|
|
|
# $NetBSD: options.mk,v 1.15 2016/11/06 19:26:35 wiz Exp $
|
2005-06-02 20:24:18 +02:00
|
|
|
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.w3m
|
2010-03-15 09:41:05 +01:00
|
|
|
PKG_SUPPORTED_OPTIONS= inet6 migemo w3m-lynx-key
|
2012-06-12 17:45:54 +02:00
|
|
|
PKG_SUGGESTED_OPTIONS= inet6
|
2005-06-02 20:24:18 +02:00
|
|
|
|
2005-06-03 15:43:29 +02:00
|
|
|
.if ${_W3M_USE_IMAGE} == "YES"
|
2008-12-13 09:52:13 +01:00
|
|
|
PKG_OPTIONS_REQUIRED_GROUPS+= imagelib
|
2016-11-06 20:26:35 +01:00
|
|
|
PKG_SUGGESTED_OPTIONS+= w3m-image-gtk2
|
2008-12-13 09:52:13 +01:00
|
|
|
.else
|
|
|
|
PKG_OPTIONS_OPTIONAL_GROUPS+= imagelib
|
2005-06-03 15:43:29 +02:00
|
|
|
.endif
|
2008-12-13 09:52:13 +01:00
|
|
|
PKG_OPTIONS_GROUP.imagelib= w3m-image-gdk-pixbuf w3m-image-imlib \
|
|
|
|
w3m-image-imlib2 w3m-image-gtk2
|
2005-06-03 15:43:29 +02:00
|
|
|
|
2005-06-02 20:24:18 +02:00
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
2007-10-15 17:44:52 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Minet6)
|
|
|
|
CONFIGURE_ARGS+= --enable-ipv6
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-ipv6
|
|
|
|
.endif
|
|
|
|
|
2010-03-15 09:41:05 +01:00
|
|
|
.if !empty(PKG_OPTIONS:Mmigemo)
|
|
|
|
.include "../../lang/ruby/rubyversion.mk"
|
|
|
|
DEPENDS+= ${RUBY_PKGPREFIX}-migemo-[0-9]*:../../textproc/migemo
|
2015-11-25 13:54:07 +01:00
|
|
|
CONFIGURE_ARGS+= --with-migemo="${LOCALBASE}/bin/migemo -t egrep ${LOCALBASE}/share/migemo/migemo-dict"
|
2010-03-15 09:41:05 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-migemo
|
|
|
|
.endif
|
|
|
|
|
2005-06-02 20:24:18 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Mw3m-lynx-key)
|
|
|
|
CONFIGURE_ARGS+= --enable-keymap=lynx
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --enable-keymap=w3m
|
|
|
|
.endif
|
2005-06-03 15:43:29 +02:00
|
|
|
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST_VARS+= image
|
2008-12-13 09:52:13 +01:00
|
|
|
.if !empty(PKG_OPTIONS:Mw3m-image-*)
|
2005-06-03 16:26:30 +02:00
|
|
|
. for _imagelib in ${PKG_OPTIONS_GROUP.imagelib}
|
2005-06-03 15:43:29 +02:00
|
|
|
. if !empty(PKG_OPTIONS:M${_imagelib})
|
|
|
|
_W3M_IMAGELIB= ${_imagelib:C|^w3m-image-||}
|
|
|
|
. endif
|
|
|
|
. endfor
|
|
|
|
USE_X11= YES
|
2005-12-06 00:55:01 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-image=x11 --with-imagelib=${_W3M_IMAGELIB:Q}
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST.image= yes
|
2008-12-13 05:21:28 +01:00
|
|
|
BUILDLINK_DEPMETHOD.libXt?= build
|
|
|
|
. include "../../x11/libXt/buildlink3.mk"
|
2008-12-13 09:52:13 +01:00
|
|
|
. if empty(_W3M_IMAGELIB:Mgtk2)
|
|
|
|
. include "../../graphics/${_W3M_IMAGELIB}/buildlink3.mk"
|
|
|
|
. else
|
|
|
|
USE_TOOLS+= pkg-config
|
|
|
|
. include "../../x11/${_W3M_IMAGELIB}/buildlink3.mk"
|
2011-01-22 14:27:15 +01:00
|
|
|
. include "../../graphics/gdk-pixbuf2-xlib/buildlink3.mk"
|
2008-12-13 09:52:13 +01:00
|
|
|
. endif
|
2005-06-03 15:43:29 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-image
|
|
|
|
.endif
|