Even Doom itself had the engine rewritten to work on some of the consoles it was actually released on. Most people consider "it runs Doom" to be "it runs the PC version of Doom, modified" but there were other engines.
The most famous may be SNES Doom, https://doom.fandom.com/wiki/Super_NES