Then yes substitute /usr/local by ${EPREFIX}/usr should be more sane.