Make the changes suggested here: https://trac.macports.org/ticket/42887