Ok, I have made some progress. macosx was defined in gluegen-cpptasks-base.xml:1043. I have replaced it (and all occurrences in the code) with j3d_macosx and was able to build gluegen.
But still having problems with jogl. It looks like jogl generates some *_JNI.c files which are using macosx macro.
...
#elif defined(macosx)
...
Could you please point me to place in the jogl source tree where I can change macro name from macosx to j3d_macosx.
Cheers,
Andrei
These are log files, in case you want to take a look
https://dl.dropboxusercontent.com/u/24418451/j3d/gluegen.buid.loghttps://dl.dropboxusercontent.com/u/24418451/j3d/jogl.build.log