I checked on motors when I had my Boxster. (just in case...) They were about $6k in junkyards and $10k+ at dealer.
A rebuild at a local shop might be cheaper.
But at that price range I bet you could do a V8. That would be awesome. I didn't know about that stuff back then.