Sync the Makefile with the current ports one

intorduces some ports framework changes