def METHOD_NAME(self):
    if self.options.enable_lib:
        self.cpp_info.set_property("pkg_config_name", "libpkgconf")
        if Version(self.version) >= "1.7.4":
            self.cpp_info.includedirs.append(os.path.join("include", "pkgconf"))
        self.cpp_info.libs = ["pkgconf"]
        if not self.options.shared:
            self.cpp_info.defines = ["PKGCONFIG_IS_STATIC"]
    else:
        self.cpp_info.includedirs = []
        self.cpp_info.libdirs = []
    bindir = os.path.join(self.package_folder, "bin")
    self.output.info("Appending PATH env var: {}".format(bindir))
    self.env_info.PATH.append(bindir)
    exesuffix = ".exe" if self.settings.os == "Windows" else ""
    pkg_config = os.path.join(bindir, "pkgconf" + exesuffix).replace("\\", "/")
    self.output.info("Setting PKG_CONFIG env var: {}".format(pkg_config))
    self.buildenv_info.define_path("PKG_CONFIG", pkg_config)
    pkgconf_aclocal = os.path.join(self.package_folder, "bin", "aclocal")
    self.buildenv_info.prepend_path("ACLOCAL_PATH", pkgconf_aclocal)
    # TODO: evaluate if `ACLOCAL_PATH` is enough and we can stop using `AUTOMAKE_CONAN_INCLUDES`
    self.buildenv_info.prepend_path("AUTOMAKE_CONAN_INCLUDES", pkgconf_aclocal)
    # TODO: remove in conanv2
    automake_extra_includes = unix_path_package_info_legacy(self, pkgconf_aclocal.replace("\\", "/"))
    self.output.info("Appending AUTOMAKE_CONAN_INCLUDES env var: {}".format(automake_extra_includes))
    self.env_info.PKG_CONFIG = pkg_config
    self.env_info.AUTOMAKE_CONAN_INCLUDES.append(automake_extra_includes)
    # TODO: to remove in conan v2 once pkg_config generator removed
    if self.options.enable_lib:
        self.cpp_info.names["pkg_config"] = "libpkgconf"