ATMega1284P with Arduino IDE?

For wiring up 1284p to existing Arduino as ISP:

324, 664, and 1284 are all supported in Arduino IDE for some versions now, you shouldn't need to modify file if you have recent version that shows under board setting these chips.

EDIT: used wrong image, it was for programming 328 not 1284