Replace /usr/local with %%PREFIX%% and use post-patch to replace it by ${PREFIX}
Suggested by swills:
Doesn't have to be now, but at some point references to /usr/local
in these patches should be changed to %%PREFIX%%
and then a post-patch target should be added to use @REINPLACE_CMD
to change %%PREFIX%%
to the value of ${PREFIX}
.