Working and tested formula, used inreplace for the Makefile