# $NetBSD: options.mk,v 1.2 2012/12/07 23:52:09 schnoebe Exp $ PKG_OPTIONS_VAR= PKG_OPTIONS.psi PKG_SUPPORTED_OPTIONS+= aspell enchant dbus 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/enchant/buildlink3.mk" .else CONFIGURE_ARGS+= --disable-enchant .endif # enable qdbus .if !empty(PKG_OPTIONS:Mdbus) .include "../../x11/qt4-qdbus/buildlink3.mk" .else CONFIGURE_ARGS+= --disable-qdbus .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