use sed -i

This commit is contained in:
jasper 2015-07-18 14:57:48 +00:00
parent 92956bfd5f
commit a09a73a4a3
2 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.7 2015/03/16 18:07:37 naddy Exp $
# $OpenBSD: Makefile,v 1.8 2015/07/18 14:57:48 jasper Exp $
COMMENT= simplified-traditional chinese translate tool
@ -25,6 +25,6 @@ CONFIGURE_STYLE=gnu
FAKE_FLAGS= includedir=${PREFIX}/include/cconv/
post-patch:
@perl -i -pe 's:UTF-TW:UTF8-TW:g' ${WRKSRC}/main.c
@sed -i 's:UTF-TW:UTF8-TW:g' ${WRKSRC}/main.c
.include <bsd.port.mk>

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.12 2015/01/22 18:41:16 naddy Exp $
# $OpenBSD: Makefile,v 1.13 2015/07/18 14:57:48 jasper Exp $
COMMENT= convert between GB and BIG-5 codes
@ -23,7 +23,7 @@ ALL_TARGET= hc b2g g2b
NO_TEST= Yes
pre-patch:
perl -pi -e 's|malloc.h|stdlib.h|' ${WRKSRC}/hclib.c
sed -i 's|malloc.h|stdlib.h|' ${WRKSRC}/hclib.c
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/hc