CEGUI could use freeimage for image loading which already is in portage. The attached patch changes the latest ebuild to support freeimage as well. Reproducible: Always
Created attachment 318932 [details, diff] cegui-add_freeimage_support.patch
Frankly I think freeimage is unmaintainable until upstream stops assuming that the system libraries aren't preferred over the included ones. It could work, but they'd have to support it in their build system instead of us having to patch it in. Having cegui have an additional dep on freeimage would be a step backwards until then. Note that we used to have freeimage support in cegui and then disabled it.