The seamless way to do it is to replicate your iTunes library on the other computer. When you plug in your iPhone, it'll sync as if you plugged it into the original Mac.
The instructions below use the example of modifying the iTunes library on my home Mac to work with my existing iPhone/PC setup. If your existing library is on a Mac, or both machines are of the same type, then the steps are identical.