several months ago. - Set LDFLAGS instead of LIBS and search STAGEDIR before LOCALBASE. - Replace a patch with REINPLACE_CMD. - Remove unneeded patches.