remove ports from opdefines and pre-arg-tests