use sed -i

This commit is contained in:
jasper 2015-07-18 15:31:16 +00:00
parent 3012003bd6
commit 0bd434ad5a
6 changed files with 15 additions and 15 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.5 2014/11/11 14:24:39 dcoppa Exp $
# $OpenBSD: Makefile,v 1.6 2015/07/18 15:31:16 jasper Exp $
COMMENT= tool to programme a wide range of amateur radios
@ -25,7 +25,7 @@ RUN_DEPENDS= ${COMMON_DEPS} \
NO_TEST= Yes
post-extract:
perl -pi -e 's,/usr/share,${PREFIX}/share,' \
sed -i 's,/usr/share,${PREFIX}/share,' \
${WRKSRC}/chirpui/mainapp.py
.include <bsd.port.mk>

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.51 2015/01/24 13:46:44 schwarze Exp $
# $OpenBSD: Makefile,v 1.52 2015/07/18 15:31:16 jasper Exp $
COMMENT= handle external logins, send and receive faxes
@ -38,8 +38,8 @@ pre-configure:
pre-install:
.for i in faxq.1 faxrm.1 faxqueue.5 fax.1 faxq-helper.8 mgetty.texi
perl -pi -e "s,faxrm,mgetty-faxrm,g" ${WRKSRC}/doc/${i}
perl -pi -e "s,usage\: faxrm,usage\: mgetty-faxrm,g" ${WRKSRC}/fax/faxrm.in
sed -i "s,faxrm,mgetty-faxrm,g" ${WRKSRC}/doc/${i}
sed -i "s,usage\: faxrm,usage\: mgetty-faxrm,g" ${WRKSRC}/fax/faxrm.in
.endfor
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/mgetty+sendfax

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.75 2015/05/22 11:31:11 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.76 2015/07/18 15:31:16 jasper Exp $
SHARED_ONLY= Yes
@ -53,8 +53,8 @@ post-extract:
rm ${WRKSRC}/bindings/Perl/Pilot.xs.orig
pre-configure:
perl -pi -e "s,!!CFLAGS!!,${CFLAGS},g" ${WRKSRC}/bindings/Perl/Makefile.PL.in
perl -pi -e "s,Libs: ,Libs: -pthread ,g" \
sed -i "s,!!CFLAGS!!,${CFLAGS},g" ${WRKSRC}/bindings/Perl/Makefile.PL.in
sed -i "s,Libs: ,Libs: -pthread ,g" \
${WRKSRC}/pilot-link.pc.in ${WRKSRC}/pilot-link-pp.pc.in
post-install:

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.24 2015/01/24 13:46:44 schwarze Exp $
# $OpenBSD: Makefile,v 1.25 2015/07/18 15:31:17 jasper Exp $
COMMENT= SNPP client/server (alphanum pager software)
@ -18,7 +18,7 @@ CONFIGURE_STYLE=gnu
NO_TEST= Yes
pre-build:
@perl -pi -e 's,!!SYSCONFDIR!!,${SYSCONFDIR},g' ${WRKSRC}/qpage.man
@sed -i 's,!!SYSCONFDIR!!,${SYSCONFDIR},g' ${WRKSRC}/qpage.man
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/qpage ${PREFIX}/bin

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.8 2013/05/16 11:01:09 sthen Exp $
# $OpenBSD: Makefile,v 1.9 2015/07/18 15:31:17 jasper Exp $
COMMENT= RFC 2217 compliant serial port redirector
@ -16,7 +16,7 @@ MASTER_SITES= http://www.ibiblio.org/pub/Linux/system/serial/
NO_TEST= Yes
pre-build:
@perl -pi -e "s,%%LOCALBASE%%,${LOCALBASE},g" ${WRKSRC}/sredird.8
@sed -i "s,%%LOCALBASE%%,${LOCALBASE},g" ${WRKSRC}/sredird.8
do-build:
${CC} ${CFLAGS} -Wall -o ${WRKSRC}/sredird ${WRKSRC}/sredird.c

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.22 2015/07/15 17:23:31 jasper Exp $
# $OpenBSD: Makefile,v 1.23 2015/07/18 15:31:17 jasper Exp $
COMMENT= logbook program for amateur radio operators
@ -29,7 +29,7 @@ CONFIGURE_STYLE= gnu
CONFIGURE_ENV= UPDATE_DESKTOP_DATABASE=/usr/bin/true
pre-configure:
perl -pi -e 's,.-Wno-unused-but-set-variable,,' \
sed -i 's,.-Wno-unused-but-set-variable,,' \
${WRKSRC}/configure
# Needed for strptime(3); prevents a buttload of patches
perl -pi -e 's,^(#define _XOPEN_SOURCE)$$,\1\n#define _XOPEN_SOURCE_EXTENDED 1,g' \