def METHOD_NAME(self):
    def imageformats_deps():
        components = []
        components.append("zlib::zlib")
        if self.options.with_jpeg == "libjpeg":
            components.append("libjpeg::libjpeg")
        elif self.options.with_jpeg == "libjpeg-turbo":
            components.append("libjpeg-turbo::jpeg")
        elif self.options.with_jpeg == "mozjpeg":
            components.append("mozjpeg::libjpeg")
        if self.options.with_jpeg2000:
            components.append("openjpeg::openjpeg")
        if self.options.with_png:
            components.append("libpng::libpng")
        if self.options.with_webp:
            components.append("libwebp::libwebp")
        if self.options.with_openexr or self.options.with_tiff:
            components.append("openexr::openexr")
        if self.options.with_raw:
            components.append("libraw::libraw")
        if self.options.with_jxr:
            components.append("jxrlib::jxrlib")
        if self.options.with_tiff:
            components.append("libtiff::libtiff")
        return components
    self.cpp_info.components["FreeImage"].libs = ["freeimage"]
    self.cpp_info.components["FreeImage"].requires = imageformats_deps()
    self.cpp_info.components["FreeImagePlus"].libs = ["freeimageplus"]
    self.cpp_info.components["FreeImagePlus"].requires = ["FreeImage"]
    if not self.options.shared:
        self.cpp_info.components["FreeImage"].defines.append("FREEIMAGE_LIB")