This would be a very ambitious project but what if the post spacing for the sun shade also matched the span you want for your hammock?

http://www.woodsshop.com/patiostructuredesigns.htm