Specify the port uses nested function (fix build on freebsd 10 and 11) Use options helpers (this fix inverted option checking)