Custom Arduino with ATmega2560

MegaCore provides board definitions for any ATmega2560 configuration you could want: