Synchronize from iPhone to Mac
You can easily take a backup of your iPhone on your new Mac.

 

To transfer your media to your new iTunes, follow this tutorial in order to do so. If I understand your question correctly, this is what you need.