update script to understand basever and branch macros
build with system mesa (9.0 seems building ok)