First of all, unless I'm missing something it's either xforms or gtk+, so having both in RDEPEND is wrong. Second, while I'm not 100% sure it's correct, passing LDFLAGS through LDOPTIONS to emake seems to work without additional patching. Finally, it seems (on x86, not 100% sure about prefix), that a much simpler patch for bundled libs works. I'll attach it. I reversed the order - I'm patching Imakefile_base first, then rename it. (AFAICT, there's no point in patching Makefile.in, as nothing seems to use it)
Created attachment 225929 [details, diff] fix for bundled libs
You are right, xforms is a leftover from old versions. The LDFLAGS/LDOPTIONS things depends, what LDOPTIOSN are used for. I will lookinto that.
Fixed Thanks for reporting