def METHOD_NAME(self):
    if not self.options.get_safe("fPIC") and self.settings.os != "Windows":
        replace_in_file(self, os.path.join(self.source_folder, "PcapPlusPlus.mk.common"),
                              "-fPIC", "")
    apply_conandata_patches(self)
    if self.settings.os != "Windows":
        rename(self, os.path.join(self.source_folder, self._configure_sh_script), os.path.join(self.source_folder, "configure"))
    else:
        props_file = os.path.join(self.generators_folder, "conantoolchain.props")
        vcxproj_templates = glob.glob(f"{self.source_folder}/mk/vs/*.vcxproj.template")
        for template_file in vcxproj_templates:
            # Load conan-generated conantoolchain.props before Microsoft.Cpp.props 
            # so that we have precedence over PlatformToolset version
            replace_in_file(self, template_file, '<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />', 
                            f'<Import Project="{props_file}" />\n<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />')