Your question prompts me to ask a question. Is this reveal on the pull side? If you are mounting the closer on the pull side of the door, having a reveal that is several inches deep is a problem. However, if you are mounting the closer on the header (also called top jamb installation), there are many closers that have extended arms for this application.
In older buildings, I have run into unique situations that prevent any kind of satisfactory install. One can either improvise or compromise. Maybe the compromise is using a corner bracket in an opening that is not tall enough to allow a corner bracket, or maybe it is opting for spring hinges instead.
One thing to avoid is installing the closer contrary to the installation instructions with the idea of adapting the closer to the non-standard situation. This always results in the closer not working properly.