Extraction of a weak phase from B → D ( * ) π