summaryrefslogtreecommitdiff
path: root/textproc/enchant2/options.mk
blob: 60e8b1f641662b6c000e44b906773fb58f6e200a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# $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