If that's what you're trying to do, you might want to explore cross compiling Mac apps on Linux:
http://stackoverflow.com/questions/2786240/how-to-compile-in...
See also Mozilla Bug 921040 - Cross-compile Firefox for Mac on Linux. https://bugzilla.mozilla.org/show_bug.cgi?id=921040