Same way as slot ports, by the length.
Two 4 inch ports would work fine for two 12 inch CRV's. In a 4 cubic foot box just cut one of the straight sections in half for a tune around 34 hz.
This is a 4 cubic foot box that I built for a guy with two 12's and two 4 inch aero's.