What is the meaning of the word "retrofit"?

Definitions:

  1. fit in or on an existing structure, such as an older house copy to clipboard verb
    • The mansion was retrofitted with modern plumbing copy to clipboard
  2. provide with parts, devices, or equipment not available or in use at the time of the original manufacture copy to clipboard verb
    • They car companies retrofitted all the old models with new carburetors copy to clipboard
  3. substitute new or modernized parts or equipment for older ones copy to clipboard verb
    • The laboratory retrofitted to meet the safety codes copy to clipboard
  4. the act of adding a component or accessory to something that did not have it when it was manufactured copy to clipboard noun
    • the court ordered a retrofit on all automobiles copy to clipboard