Simple changes to be homebrew friendly

.. 
Thanks @seclorum for your interest, please, Could you create a new file makefile.homebrew with changes? In this way, the original makefile.macports can be restored.
Additionally, it can be modified the makefile to check if homebrew or macports is installed and execute makefile.macports or makefile.homebrew.
Thanks!