There is a third option. Create both p5-DBD-mysql4 and p5-DBD-mysql5 using the respective versions, and turn p5-DBD-mysql into a meta-port that uses DEFAULT_VERSIONS to select one of the two numbered ports. There is precedent for this in the current ports tree, but I can’t comment on how well it works or if it solves any of your problems.
-spw