As mentioned before there is no box mapping for procedural brick texture in cycles like the box mapping option in image texture.
Unwrapping is not efficient for walls and buildings because of the extra work and size dependency.
There is a work around here named Triplanar mapping that mix three copies of texture projected from three axis to wrap around the object.
I made a simplified version which mix only the projection UVs and doesn’t need texture duplication.
Some math node with greater than .5 operation added to axis masks to prevent fading and doubling on flat faces which are not perpendicular to the projection axis.
Here are some screen shots and the blend file
Box Mapping.blend (576.6 KB)
Original Node Graph at Triplanar mapping
Default Object mapped UV (Projected from Z axis)
Box mapped UVs (Mixed from X and Y axis projection)
Default Object mapped brick texture
Box mapped brick texture
With Procedural brick texture model modification and extrusion are free-hand and without UV distortion