WoLf or Wake On Lan Forwarder is a small app that runs on most machines and waits for a magic packet on one interface then forwards on the local network.
To fetch from GitHub
git clone https://github.com/depicus/WoLF.git
To compile on
gcc wolf.c -o wolf
then to run
or simply fire up the XCode project file.
as per OSX