# $NetBSD: options.mk,v 1.1 2018/11/01 09:36:47 bsiegert Exp $ PKG_OPTIONS_VAR= PKG_OPTIONS.enchant2 PKG_SUPPORTED_OPTIONS= aspell enchant-zemberek hunspell # Package also supports the following: # hspell - Hebrew spelling # uspell - Yiddish spelling # voikko - Finnish spelling PKG_SUGGESTED_OPTIONS= hunspell .include "../../mk/bsd.options.mk" PLIST_VARS+= aspell .if !empty(PKG_OPTIONS:Maspell) CONFIGURE_ARGS+= --with-aspell .include "../../textproc/aspell/buildlink3.mk" PLIST.aspell= yes .else CONFIGURE_ARGS+= --without-aspell .endif PLIST_VARS+= zemberek .if !empty(PKG_OPTIONS:Menchant-zemberek) CONFIGURE_ARGS+= --with-zemberek .include "../../sysutils/dbus-glib/buildlink3.mk" PLIST.zemberek= yes .else CONFIGURE_ARGS+= --without-zemberek .endif PLIST_VARS+= hunspell .if !empty(PKG_OPTIONS:Mhunspell) CONFIGURE_ARGS+= --with-hunspell CONFIGURE_ARGS+= --with-hunspell-dir=${BUILDLINK_PREFIX.hunspell}/share/hunspell .include "../../textproc/hunspell/buildlink3.mk" DEPENDS+= hunspell-en_US-[0-9]*:../../textproc/hunspell-en_US PLIST.hunspell= yes .else CONFIGURE_ARGS+= --without-hunspell .endif