As far as running Hatari from the command line, I did the exact same command as you did and it worked.
However, I do see some differences. When you run configure, it finds /usr/bin/cc which is linked to clang. However, my configure finds gcc first which is linked to llvm. On the hatari-devel list, I thought there was a discussion regarding compile errors when using clang. I installed the XCode command-line tools which could explain how I have gcc on my system. I do not remember the discussion that well since I simply want to compile Hatari to play my old ST games. I do not have any other purpose besides that.
You see more warnings when compiling PrefsController (OS X preferences window) than I do. This could be because you are using a different compiler than I am.
Here are the dependencies I am aware of: It has been awhile since I had to find the pieces in order to compile Hatari the first time.
- XCode (I think the command-line tools get you gcc as an option)
- XQuartz (XQuartz.macosforge.org) - I believe that Hatari uses X11 for something. I could be mistaken about that though.
- CMake (I had to upgrade from my old version to 2.8.8 when compiling Hatari 1.6.2. I see no reason why you could not install the latest version)
You do not need the SDL development version. As you say, it is not available for OS X. If you want to compile the framework from source like jvernet (Hatari user that compiles Hatari universal binary), then you need the SDL source code. I do not enjoy pain that much.
My XCode project simply copies in the SDL framework provided by the SDL project so Hatari runs even if you do not install SDL.
After your explanation, I can see why you want to be able to compile it from source. I hope this helps you. Unfortunately, I do not have time to learn OS X development. I know enough to be dangerous and compile Hatari. Most of the requests I see here are from people who simply want an OS X binary to run old ST games like I do.