Why not use Migration Assistant to transfer all your stuff, including your iPhoto Library to your new Mac?
Failing that, just drag and drop your iPhoto Library file to an external drive and then into your Pictures Folder on the new Mac.
Of course, your new Mac will come with Photos, not iPhoto. When you open Photos for the first time, it will offer to import all your pictures from the iPhoto Library.