Add waf_package to base for packages that use waf

This is pretty much a copy and paste of the autotools base package with
some minor changes.