When we port a software from one computer to another computer or from one operating system to another operating system, it tries to adapt to the new environment of the machine by checking the required the configurations of the machine and then checking the available files in the software to run the machine.
The porting of a software also checks whether the software is compatible with the machine or not and if not then why.