The attached patches to the Makefile makes lcms and jpeg optional (they are already in the C source file), and respect LDFLAGS requested by user. I'm also attaching a patch to the ebuild to apply them. HTH, Diego
Created attachment 141305 [details, diff] Ebuild patch
Created attachment 141307 [details, diff] dcraw-8.73-optlibs.patch
Created attachment 141309 [details, diff] dcraw-8.73-respectldflags.patch
Thanks Diego :) Will take care sometime soon...
I suppose this can be marked as solved, the patches are applied for a while now :)