aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chinese/zhcon/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/chinese/zhcon/Makefile b/chinese/zhcon/Makefile
index 112bc493a1a8..a914e96c643c 100644
--- a/chinese/zhcon/Makefile
+++ b/chinese/zhcon/Makefile
@@ -25,6 +25,7 @@ ONLY_FOR_ARCHS= i386
MAN1= zhcon.1
post-patch:
- ${REINPLACE_CMD} -e 's,/usr/local,${PREFIX},g' ${WRKSRC}/configure
+ @${REINPLACE_CMD} -Ee 's,(\s*=\s*)("?)/usr/local([^"]*)("?),\1\2${PREFIX}\3\4,g' \
+ ${WRKSRC}/${CONFIGURE_SCRIPT}
.include <bsd.port.mk>