def METHOD_NAME(self):
    self.requires("zlib/1.2.13")
    if self.options.with_jpeg == "libjpeg":
        self.requires("libjpeg/9e")
    elif self.options.with_jpeg == "libjpeg-turbo":
        self.requires("libjpeg-turbo/2.1.5")
    elif self.options.with_jpeg == "mozjpeg":
        self.requires("mozjpeg/4.1.1")
    if self.options.with_jpeg2000:
        self.requires("openjpeg/2.5.0")
    if self.options.with_png:
        self.requires("libpng/1.6.40")
    if self.options.with_webp:
        self.requires("libwebp/1.3.1")
    if self.options.with_tiff or self.options.with_openexr:
        # can't upgrade to openexr/3.x.x because plugin tiff requires openexr/2.x.x header files
        self.requires("openexr/2.5.7")
    if self.options.with_raw:
        # can't upgrade to libraw >= 0.21 (error: no member named 'shot_select' in 'libraw_output_params_t')
        self.requires("libraw/0.20.2")
    if self.options.with_jxr:
        self.requires("jxrlib/cci.20170615")
    if self.options.with_tiff:
        self.requires("libtiff/4.5.1")