ATMega2560 use all ports

Hello,
Ii've built my own PCB with Arduino Mega in it. By mistake, I've assembled some inputs and outputs on pins that Arduino don't use. Altough I can still use them with Port Manipulation, I would like to manually add them to pins_arduino.h

I've tried to that but it doesn't work.Can someone guide me in this?

Many thanks!