Revisiting this thread to share a more straight forward and simple way of locally patching stuff in pkgsrc for new NetBSD users.
How to quickly patch a program in pkgsrc:
cd to program directory (I'll be using the file manager noice as an example)
cd pkgsrc/sysutils/noice/
run make patch
make patch
cd into work directory where the source files are
cd work/noice-0.8/
Edit the source files to your liking. Optionally if you already have .diff patch files prepared, inside the directory just run patch -p1 < yourpatch.diff
cd back to program root directory
cd -
Compile and install the program
make install
And it's done!
This is a quick and easy way to patch simple programs in pkgsrc that doesn't come with a configuration file (eg suckless software) .LOCALPATCHES
as discussed above is a more powerful way to patch stuff in pkgsrc when you are compiling software in bulk.