Lazarus has an automatic Delphi-to-Lazarus converter: menu "Tools" > "Delphi Conversion" > "Convert Delphi Project to Lazarus Project". Although the converter creates backups of the original files I'd strongly recommend that you work only in a copy of the Delphi project folder - there is some chance that you might select incorrect options for the converter and you'd have to start all over.