well, this worked for me (complete build/package):
>diff --git a/graphics/graphviz/options.mk b/graphics/graphviz/options.mk
>index 0ccd5ef..586f4cb 100644
>--- a/graphics/graphviz/options.mk
>+++ b/graphics/graphviz/options.mk
>@@ -114,6 +114,7 @@ USING_SWIG= no
> .if !empty(PKG_OPTIONS:Mlua)
> USING_SWIG= yes
> .include "../../lang/lua/buildlink3.mk"
>+.include "../../lang/lua/tool.mk"
> PLIST.lua= yes
> .else
> CONFIGURE_ARGS+= --disable-lua
I believe, though, that lua/buildlink3.mk should probably directly include
lua/tool.mk... just to avoid this sort of hassle!