EditorConfig is a nice way to spec basic file settings in a format that is recognized (through plugins) by every major editor that would conceivably be hacking on FreeBSD ports.
Basically, this config sets up:
Always: eol=LF, UTF-8, newline at end of file, and no trailing whitespace (before newlines)
Makefiles: 8 char tabs
Mk/ stuff: 4 char tabs
pkg-* files: Hard wrap at 80 chars
UPDATING/CHANGES: 2 char tabs, tabs become spaces