use sed -i

This commit is contained in:
jasper 2015-07-19 00:02:24 +00:00
parent aa04a60af2
commit b61883f145
2 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.3 2013/03/11 11:41:33 espie Exp $
# $OpenBSD: Makefile,v 1.4 2015/07/19 00:02:24 jasper Exp $
COMMENT= creative voip blaster driver/software
DISTNAME= fobbit-0.61
@ -18,7 +18,7 @@ WRKSRC= ${WRKDIST}/src
WANTLIB=c
pre-configure:
@perl -pi -e 's|_PREFIX_|${PREFIX}|g;' ${WRKSRC}/ini.c ${WRKSRC}/vb.ini
@sed -i 's|_PREFIX_|${PREFIX}|g;' ${WRKSRC}/ini.c ${WRKSRC}/vb.ini
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/fobbit

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.30 2014/09/13 18:09:22 brad Exp $
# $OpenBSD: Makefile,v 1.31 2015/07/19 00:02:24 jasper Exp $
COMMENT-main = mature and flexible open source SIP server
@ -167,7 +167,7 @@ RUN_DEPENDS$i += kamailio-${VERSION}:telephony/kamailio
.endfor
pre-configure:
@perl -pi -e 's,#!/bin/bash,#!/bin/sh,;' \
@sed -i -e 's,#!/bin/bash,#!/bin/sh,;' \
-e 's,exit -1,exit 255,' ${WRKSRC}/utils/kamctl/kam*
.include <bsd.port.mk>