I haven’t yet had a chance to try to get Cg compiling on OSX. It might be as simple as adding the lines:
#define CG_LIBS
#define CG_FRAMEWORK Cg
#define HAVE_CG 1
to your Config.pp. If that doesn’t work, you can always bail on Cg with:
#define HAVE_CG
David