http://www.music.mcgill.ca/~gary/rtmidi/index.html#compiling contains instructions for Mac OSX. The dependencies for Mac are: CoreMIDI, CoreAudio, CoreFoundation