use sed -i

This commit is contained in:
jasper 2015-07-18 21:54:37 +00:00
parent 9f5f8bb929
commit ec5bd9a906
2 changed files with 4 additions and 5 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.5 2015/01/21 06:13:48 bentley Exp $
# $OpenBSD: Makefile,v 1.6 2015/07/18 21:54:37 jasper Exp $
SHARED_ONLY= Yes
@ -27,6 +27,6 @@ NO_TEST= Yes
pre-configure:
${SUBST_CMD} ${WRKSRC}/Makefile
perl -pi -e "s|/usr/bin/python|${MODPY_BIN}|" ${WRKSRC}/bg5pdf
sed -i "s|/usr/bin/python|${MODPY_BIN}|" ${WRKSRC}/bg5pdf
.include <bsd.port.mk>

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.7 2015/03/31 09:45:12 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.8 2015/07/18 21:54:37 jasper Exp $
COMMENT= convert Big5/GB encoded files to postscript
@ -22,8 +22,7 @@ CONFIGURE_STYLE=none
NO_TEST= Yes
pre-configure:
perl -pi -e \
"s|/usr/local/bin/python.*|${MODPY_BIN}|" ${WRKSRC}/bg5ps
sed -i "s|/usr/local/bin/python.*|${MODPY_BIN}|" ${WRKSRC}/bg5ps
${SUBST_CMD} ${WRKSRC}/bg5ps.conf
MAKE_FLAGS= CFLAGS="${CFLAGS} -I${LOCALBASE}/include/freetype1" \