pkgsrc/textproc/enchant2/options.mk
bsiegert cf88156f95 Import wip/enchant as textproc/enchant2.
This is the newer 2.x release series of enchant. The package does not
conflict with the older 1.x (textproc/enchant). The goal is to move
all reverse-depends to this version, then delete enchant 1.
2018-11-01 09:36:47 +00:00

40 lines
1.1 KiB
Makefile

# $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