blob: 154b85be9af5d6bbe517b89f057c754ef892c12b (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# $NetBSD: options.mk,v 1.5 2019/11/02 22:18:24 rillig Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.psi
PKG_SUPPORTED_OPTIONS+= aspell enchant whiteboard xscreensaver
PKG_SUGGESTED_OPTIONS+= aspell enchant
# from an idea stolen from ../../misc/openoffice3.
PSI_SUPPORTED_LANGUAGES= be cs de eo es es-es fr it ja mk pl pt-br ru \
sl sv uk ur-pk vi zh-cn zh-tw
.for l in ${PSI_SUPPORTED_LANGUAGES}
PKG_SUPPORTED_OPTIONS+= lang-${l}
PLIST_VARS+= ${l}
.endfor
.include "../../mk/bsd.options.mk"
# handle the languages first
# bit of special logic, as the dialects of languages are handled
# as lang_DIALECT (aka, lower underscore UPPER) in the PSI translations
.for lang in ${PKG_OPTIONS:Mlang-*:S/lang-//g}
PLIST.${lang} = yes
. if ${lang:M??-??}
LANG_FILES+= psi_${lang:C/-.*//g}_${lang:C/.*-//g:tu}.qm
. else
LANG_FILES+= psi_${lang}.qm
. endif
.endfor
# enable aspell
.if !empty(PKG_OPTIONS:Maspell)
CONFIGURE_ARGS+= --with-aspell-inc=${BUILDLINK_PREFIX.aspell}/include
CONFIGURE_ARGS+= --with-aspell-lib=${BUILDLINK_PREFIX.aspell}/lib
.include "../../textproc/aspell/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-aspell
.endif
# enable enchant
.if !empty(PKG_OPTIONS:Menchant)
.include "../../textproc/enchant2/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-enchant
.endif
# enable whiteboarding
.if !empty(PKG_OPTIONS:Mwhiteboard)
CONFIGURE_ARGS+= --enable-whiteboarding
.endif
# enable xscreensaver extension
.if empty(PKG_OPTIONS:Mxscreensaver)
CONFIGURE_ARGS+= --disable-xss
.endif
# enable growl
# .if empty(PKG_OPTIONS:Mgrowl)
# CONFIGURE_ARGS+= --with-growl=${BUILDLINK_PREFIX.growl}
# .else
# CONFIGURE_ARGS+= --disable-growl
# .endif
|