A good approach for these, I think, would be to build the door and it's frame as
a sort of mini prehung door. Build the door, then build the case/frame around
it with the clearances you want, then install that 'unit', and then build/frame the wall
to fit that. Much less aggravating than trying to build a door to fit a pre-existing
opening. For a Foamie build, you can also do such for making a window or for
the opening for a manufactured window. Of course, I do also advocate using a
light perimeter frame of rot resistant wood species, or of aluminum square tubing,
around all openings or structural panels for ease of joining them together and installing
windows and doors. I also like the idea of double perimeter sealing if possible.
Click on Image to enlarge, then use "CTL+", if you need to enlarge that further.

Cheers,
Norm/mezmo
If you have a house - you have a hobby.