Yes shape does matter, depending on how you want it to sound of course.
Studies show that the largest parameter of a subwoofer enclosure should be the depth, in a ported configuration of course..
In a ported box you should not be able to see any part of the woofer through the port. If you can then adequare pressure will not build in the box and the speaker will fart.
Also, make sure the location of the ports is symmetrical if using two or more and that they are equal spaces apart.
I know that sounds dumb but once a friend of mine put the port lopsided and too close to the speaker (this was in a triple JL8w6 config) and the speaker moved lopsided and ended up destroying the woofer.
Mind you JL audios subs are pretty flimsy but it makes sense, unbalanced air pressure will make the sub pump in an unbalanced fashion. So I would advise it would be a good idea to move the port as far away from the woofer as you can..
Onto sealed boxes.. Well from experience they usually sound better with a small depth, mainly because usually when people are going sealed they are after the punch and accuracy of a woofer (you do sacrifice power handling though).
Also good advice is to pad out the box with nylon padding (the stuff used to stuff teddy bears) as this takes away any backlash type sounds from a sealed enclosure.
Also what it does (again scientifically proven) is make the sub think it's in a larger enclosure allowing it to drop deeper in HZ in a small sealed enclosure.
Think that doesnt make sense? well here is how it works.
Because the mass of the nylon padding is denser than air the air must slow down to travel through it.. This creates a 'depth' of the pressure wave as it bounces back and forth from the resonance of the cone.
Hence the air is dropped out of the bottom of the sub inside the box and takes longer to travel through the padding, hit the solid panels and bounce back as it would with no padding.
All of these facts come from a technical training manual put together by Gene Czerwinski (Cerwin Vega !) and James B Lansing (JBL) After a short stint in the army they both went to college together and went on to open their own companies.
Cool huh?
Hi BTW.