use sed instead of perl

This commit is contained in:
jasper 2015-07-18 14:33:49 +00:00
parent d2a4520ea8
commit 59559f29c0
21 changed files with 52 additions and 55 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.21 2013/08/07 21:31:12 naddy Exp $
# $OpenBSD: Makefile,v 1.22 2015/07/18 14:33:49 jasper Exp $
COMMENT= command-line utility to rip and encode audio cds
@ -25,7 +25,7 @@ RUN_DEPENDS= audio/cdparanoia \
NO_TEST= Yes
do-configure:
perl -pi -e 's,/etc/,${SYSCONFDIR}/,' ${WRKSRC}/abcde
sed -i 's,/etc/,${SYSCONFDIR}/,' ${WRKSRC}/abcde
${SUBST_CMD} ${WRKSRC}/abcde ${WRKSRC}/cddb-tool
do-install:

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.64 2015/04/04 09:20:59 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.65 2015/07/18 14:33:49 jasper Exp $
CATEGORIES = audio x11 x11/kde
COMMENT = music player for KDE
@ -68,6 +68,6 @@ CONFIGURE_ARGS += --with-xine \
pre-configure:
cd ${WRKSRC} && find . -name '*.rb' -exec \
perl -pi -e 's,#!/usr/bin/env ruby,#!${RUBY},' {} \;
sed -i 's,#!/usr/bin/env ruby,#!${RUBY},' {} \;
.include <bsd.port.mk>

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.3 2014/05/09 09:00:19 sthen Exp $
# $OpenBSD: Makefile,v 1.4 2015/07/18 14:33:49 jasper Exp $
SHARED_ONLY = Yes
@ -28,8 +28,8 @@ BUILD_DEPENDS += devel/gtest
CONFIGURE_ARGS = -DBUILD_TESTS:Bool=Yes -DBUILD_EXAMPLES=ON
post-patch:
perl -pi -e 's,/usr/local,${LOCALBASE},' \
${WRKSRC}/cmake/modules/FindGTest.cmake
sed -i 's,/usr/local,${LOCALBASE},' \
${WRKSRC}/cmake/modules/FindGTest.cmake
do-test:
cd ${WRKBUILD}/tests && ./all_tests

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.8 2013/03/10 22:55:02 espie Exp $
# $OpenBSD: Makefile,v 1.9 2015/07/18 14:33:49 jasper Exp $
COMMENT-main= ncurses-based music player
COMMENT-flac= FLAC input plugin for cmus
@ -75,7 +75,7 @@ NO_TEST= Yes
post-patch:
@cp ${FILESDIR}/sndio.c ${WRKSRC}
perl -pi -e s,/usr,${LOCALBASE}, ${WRKSRC}/Doc/cmus.txt
perl -pi -e s,doc/cmus/examples,examples/cmus, ${WRKSRC}/Doc/cmus.txt
sed -i s,/usr,${LOCALBASE}, ${WRKSRC}/Doc/cmus.txt
sed -i s,doc/cmus/examples,examples/cmus, ${WRKSRC}/Doc/cmus.txt
.include <bsd.port.mk>

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.19 2015/07/18 04:46:56 jasper Exp $
# $OpenBSD: Makefile,v 1.20 2015/07/18 14:33:49 jasper Exp $
COMMENT= curses front-end for various audio players
@ -20,8 +20,8 @@ NO_TEST= Yes
PKG_ARCH= *
do-configure:
@perl -pi -e "s,/etc/,${SYSCONFDIR}/," ${WRKSRC}/cplay{,.1}
@perl -pi -e "s,^#!.*python,#!${MODPY_BIN}," ${WRKSRC}/cplay
@sed -i "s,/etc/,${SYSCONFDIR}/," ${WRKSRC}/cplay{,.1}
@sed -i "s,^#!.*python,#!${MODPY_BIN}," ${WRKSRC}/cplay
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/cplay ${PREFIX}/bin/

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.23 2013/03/10 22:55:02 espie Exp $
# $OpenBSD: Makefile,v 1.24 2015/07/18 14:33:49 jasper Exp $
COMMENT= general multi-lingual speech synthesis system
V= 1.95
@ -68,7 +68,7 @@ do-configure:
.endif
post-build:
@perl -pi -e s,'/bin/festival','${PREFIX}/bin/festival', ${WRKBUILD}/festival/bin/text2wave
@sed -i s,'/bin/festival','${PREFIX}/bin/festival', ${WRKBUILD}/festival/bin/text2wave
do-install:
.if ${FLAVOR:Mogi}

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.42 2015/06/11 13:20:50 kili Exp $
# $OpenBSD: Makefile,v 1.43 2015/07/18 14:33:49 jasper Exp $
COMMENT-main= library to access the contents of an iPod
COMMENT-python= python bindings for libgpod
@ -55,7 +55,7 @@ CONFIGURE_ARGS+=--enable-gdk-pixbuf \
pre-configure:
@find ${WRKDIST} -name \*.py | \
xargs perl -pi -e 's,/usr/bin/python,${MODPY_BIN},g'
xargs sed -i 's,/usr/bin/python,${MODPY_BIN},g'
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/py-gpod

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.7 2015/05/22 11:31:10 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.8 2015/07/18 14:33:50 jasper Exp $
COMMENT= library for audio metadata lookup (v5)
@ -27,7 +27,7 @@ NO_TEST= Yes
LIB_DEPENDS= net/neon
pre-configure:
perl -pi -e 's,/usr/local,${LOCALBASE},g' \
sed -i 's,/usr/local,${LOCALBASE},g' \
${WRKSRC}/cmake/modules/FindNeon.cmake
.include <bsd.port.mk>

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.3 2013/03/10 22:55:03 espie Exp $
# $OpenBSD: Makefile,v 1.4 2015/07/18 14:33:50 jasper Exp $
SHARED_ONLY = Yes
@ -25,7 +25,7 @@ MAKE_FLAGS = CPPFLAGS="${CPPFLAGS} -D_REENTRANT -fPIC"
NO_TEST = Yes
post-patch:
perl -pi -e 's#g\+\+ -shared#${CXX} -shared -fPIC#g' ${WRKSRC}/Makefile
sed -i 's#g\+\+ -shared#${CXX} -shared -fPIC#g' ${WRKSRC}/Makefile
do-install:
${INSTALL_PROGRAM_DIR} ${PREFIX}/lib/ladspa

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.7 2015/03/27 08:43:01 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.8 2015/07/18 14:33:50 jasper Exp $
COMMENT = graphical music player focused on a clean ui
DISTNAME = musique-1.4
@ -36,6 +36,6 @@ do-configure:
cd ${WRKDIST} && env -i ${CONFIGURE_ENV} qmake4 PREFIX=${PREFIX}
post-configure:
perl -pi -e "s,/usr/include,${LOCALBASE}/include,g" ${WRKSRC}/Makefile
sed -i "s,/usr/include,${LOCALBASE}/include,g" ${WRKSRC}/Makefile
.include <bsd.port.mk>

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.15 2015/07/16 23:57:18 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.16 2015/07/18 14:33:50 jasper Exp $
SHARED_ONLY= Yes
@ -19,6 +19,6 @@ RUN_DEPENDS= devel/p5-Inline
BUILD_DEPENDS= ${RUN_DEPENDS}
pre-configure:
@perl -pi -e 's,%%LOCALBASE%%,${LOCALBASE},' ${WRKSRC}/Header.pm
@sed -i 's,%%LOCALBASE%%,${LOCALBASE},' ${WRKSRC}/Header.pm
.include <bsd.port.mk>

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.1.1.1 2014/04/16 02:01:59 bcallah Exp $
# $OpenBSD: Makefile,v 1.2 2015/07/18 14:33:50 jasper Exp $
COMMENT = program for extreme audio stretching
DISTNAME = paulstretch-2.2-2
@ -28,7 +28,7 @@ LIB_DEPENDS = audio/libmad \
NO_TEST = Yes
post-patch:
perl -pi -e "s,g\+\+,${CXX} ${CXXFLAGS},g" \
sed -i "s,g\+\+,${CXX} ${CXXFLAGS},g" \
${WRKSRC}/compile_linux_kissfft.sh
do-build:

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.12 2015/05/20 03:29:07 bcallah Exp $
# $OpenBSD: Makefile,v 1.13 2015/07/18 14:33:50 jasper Exp $
GH_ACCOUNT = pithos
GH_PROJECT = pithos
@ -36,6 +36,6 @@ RUN_DEPENDS = audio/py-last${MODPY_FLAVOR}>=0.5.11 \
TEST_DEPENDS = audio/py-last${MODPY_FLAVOR}>=0.5.11
pre-configure:
perl -pi -e "s,/usr/s,s,g" ${WRKSRC}/setup.py
sed -i "s,/usr/s,s,g" ${WRKSRC}/setup.py
.include <bsd.port.mk>

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.67 2015/04/16 06:38:50 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.68 2015/07/18 14:33:50 jasper Exp $
# XXX
# util.c: implement pa_get_binary_name()
@ -133,7 +133,7 @@ pre-configure:
intltoolize --force
### END SNDIO ###
${SUBST_CMD} ${WRKSRC}/src/daemon/default.pa.in
perl -pi -e 's,/bin/bash,/usr/bin/env bash,' \
sed -i 's,/bin/bash,/usr/bin/env bash,' \
${WRKSRC}/shell-completion/bash/pulseaudio
post-install:

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.10 2013/03/10 22:55:05 espie Exp $
# $OpenBSD: Makefile,v 1.11 2015/07/18 14:33:50 jasper Exp $
COMMENT= Python ID3 tag reader/writer module
@ -23,7 +23,7 @@ DOCSDIR= ${PREFIX}/share/doc/py-tagger
EXAMPLESDIR= ${PREFIX}/share/examples/py-tagger
post-configure:
@perl -pi -e 's,/usr/bin/env python,${MODPY_BIN},g' \
@sed -i 's,/usr/bin/env python,${MODPY_BIN},g' \
${WRKBUILD}/mp3check.py
post-install:

View File

@ -1,10 +1,9 @@
# $OpenBSD: Makefile,v 1.13 2015/07/16 15:16:13 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.14 2015/07/18 14:33:50 jasper Exp $
COMMENT = free karaoke player
V = 0.7.5
MODPY_EGG_VERSION = ${V}
DISTNAME = pykaraoke-${V}
MODPY_EGG_VERSION = 0.7.5
DISTNAME = pykaraoke-${MODPY_EGG_VERSION}
CATEGORIES = audio
HOMEPAGE = http://kibosh.org/pykaraoke/
@ -12,8 +11,7 @@ HOMEPAGE = http://kibosh.org/pykaraoke/
# LGPL v2.1 or later
PERMIT_PACKAGE_CDROM = Yes
WANTLIB += ${MODPY_WANTLIB}
WANTLIB += SDL pthread
WANTLIB += SDL pthread ${MODPY_WANTLIB}
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=pykaraoke/}
EXTRACT_SUFX = .zip
@ -33,6 +31,6 @@ RUN_DEPENDS = x11/py-wxPython \
pre-configure:
${SUBST_CMD} ${WRKDIST}/setup.cfg
@perl -pi -e 's,python,${MODPY_BIN},g' ${WRKDIST}/install/*
@sed -i 's,python,${MODPY_BIN},g' ${WRKDIST}/install/*
.include <bsd.port.mk>

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.15 2015/05/01 10:58:16 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.16 2015/07/18 14:33:50 jasper Exp $
COMMENT= frontend to mpd written in Python
@ -23,7 +23,7 @@ PKG_ARCH= *
NO_TEST= Yes
do-configure:
@perl -pi -e 's,/usr/bin/python,${MODPY_BIN},g; \
@sed -i 's,/usr/bin/python,${MODPY_BIN},g; \
s,PREFIX,${PREFIX},g;' ${WRKSRC}/pympd
.include <bsd.port.mk>

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.4 2014/12/31 08:42:26 landry Exp $
# $OpenBSD: Makefile,v 1.5 2015/07/18 14:33:50 jasper Exp $
COMMENT = solfege and ear training program
DISTNAME = solfege-3.22.2
@ -35,11 +35,11 @@ USE_GMAKE = Yes
FAKE_FLAGS = sysconfdir=${LOCALBASE}/share/examples/solfege
post-patch:
perl -pi -e "s,cp,${LOCALBASE}/bin/gcp,g" ${WRKSRC}/Makefile.in
sed -i "s,cp,${LOCALBASE}/bin/gcp,g" ${WRKSRC}/Makefile.in
pre-configure:
cd ${WRKSRC} && ${SUBST_CMD} default.config run-solfege.py.in system.rc && \
perl -pi -e "s,/bin/bash,/bin/sh,g" \
sed -i "s,/bin/bash,/bin/sh,g" \
${WRKSRC}/exercises/standard/lesson-files/bin/csound-play-harmonic-interval.sh
do-test:

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.16 2015/06/25 14:44:23 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.17 2015/07/18 14:33:50 jasper Exp $
COMMENT= common interface to speech synthesis
@ -50,7 +50,7 @@ CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
FAKE_FLAGS= sysconfdir=${PREFIX}/share/examples/speech-dispatcher
pre-configure:
perl -pi -e 's,/usr/share,${LOCALBASE}/share,g;' \
sed -i 's,/usr/share,${LOCALBASE}/share,g;' \
-e 's,/usr/bin,${LOCALBASE}/bin,g' \
${WRKSRC}/config/modules/*.conf

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.46 2015/01/22 17:47:50 naddy Exp $
# $OpenBSD: Makefile,v 1.47 2015/07/18 14:33:50 jasper Exp $
COMMENT= Motif CD player
@ -14,10 +14,10 @@ WANTLIB= ICE SM Xau Xdmcp X11 Xaw Xext Xmu Xpm Xt c curses \
MASTER_SITES= http://distfiles.nl/
LIB_DEPENDS+= x11/openmotif
LIB_DEPENDS+= x11/openmotif
CONFIGURE_STYLE= imake
MAKE_ENV+=MOTIFLIB='-L${LOCALBASE}/lib -lXm'
MAKE_ENV+= MOTIFLIB='-L${LOCALBASE}/lib -lXm'
NO_TEST= Yes
XMCDLIB= ${PREFIX}/share/xmcd
@ -49,12 +49,11 @@ post-install:
cd ${PREFIX}/bin; \
rm -f xmcd cda cddbcmd dp2xmcd wm2xmcd; mv .xmcd_start xmcd; \
for i in cda cddbcmd dp2xmcd wm2xmcd; do ln -s xmcd $$i; done
perl -pi -e 's,\@PREFIX@,${TRUEPREFIX},; s,\@X11BASE@,${X11BASE},;' \
-e 's,\@SYSCONFDIR@,${SYSCONFDIR},;' \
sed -i 's,\@PREFIX@,${TRUEPREFIX},; s,\@X11BASE@,${X11BASE},;s,\@SYSCONFDIR@,${SYSCONFDIR},;' \
${PREFIX}/bin/xmcd ${PREFIX}/sbin/xmcdconfig \
${PREFIX}/lib/X11/app-defaults/XMcd \
${PREFIX}/man/man1/cda.1 ${PREFIX}/man/man1/xmcd.1
perl -pi -e 's,${WRKINST},,g' ${PREFIX}/bin/xmcd \
sed -i 's,${WRKINST},,g' ${PREFIX}/bin/xmcd \
${XMCDLIB}/scripts/genidx ${PREFIX}/sbin/xmcdconfig \
${PREFIX}/share/examples/xmcd/discog.html

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.35 2015/04/28 06:35:06 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.36 2015/07/18 14:33:50 jasper Exp $
COMMENT = audio player daemon with library management
BROKEN-sparc64 = waf build goes into an infinite loop
@ -75,7 +75,7 @@ do-configure:
post-configure:
# avoid linking to bogus libraries
perl -pi -e "s/SONAME_ST.*/SONAME_ST=''/" ${WRKSRC}/_build_/c4che/_cache.py
sed -i "s/SONAME_ST.*/SONAME_ST=''/" ${WRKSRC}/_build_/c4che/_cache.py
do-build:
cd ${WRKSRC} && ${MODPY_BIN} ./waf build