A flexible asymmetric approach to methyl 5-alkyltetramates and its application in the synthesis of cytotoxic marine natural product belamide A.