aboutsummaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authortrevor <trevor@FreeBSD.org>2003-10-04 22:50:25 +0800
committertrevor <trevor@FreeBSD.org>2003-10-04 22:50:25 +0800
commit0b96bdfadbfcf8b374b9ef0e255c412cee9c59a3 (patch)
tree74063285947907755658e89a83ecde06a1d33747 /audio
parent1292bdc40e08627767085ed1f6b3e8ec1c974752 (diff)
downloadfreebsd-ports-gnome-0b96bdfadbfcf8b374b9ef0e255c412cee9c59a3.tar.gz
freebsd-ports-gnome-0b96bdfadbfcf8b374b9ef0e255c412cee9c59a3.tar.zst
freebsd-ports-gnome-0b96bdfadbfcf8b374b9ef0e255c412cee9c59a3.zip
Avoid Perl.
PR: 47651 Submitted by: Simon Schubert of ath.cx Concatenate the two regexes in post-patch.
Diffstat (limited to 'audio')
-rw-r--r--audio/spiralloops/Makefile17
1 files changed, 11 insertions, 6 deletions
diff --git a/audio/spiralloops/Makefile b/audio/spiralloops/Makefile
index 7575ee103b36..f4f6b71ca848 100644
--- a/audio/spiralloops/Makefile
+++ b/audio/spiralloops/Makefile
@@ -32,12 +32,17 @@ BROKEN= "Does not compile (bad C++ code)"
.endif
post-patch:
- ${PERL} -pi -e "s:-ldl::g; s:^CFLAGS:XCFLAGS:g; s:^CXXFLAGS:XCXXFLAGS:g; s:usr/X11R6:${PREFIX}:g" ${WRKSRC}/Makefile.in
- ${PERL} -pi -e 's|-O3|${PTHREAD_CFLAGS}|g ; \
- s|CFLAGS =|CFLAGS +=|g ; \
- s|CXXFLAGS=|CXXFLAGS+=|g ; \
- s|-lm|${PTHREAD_LIBS} -lm|g ; \
- s|/usr/X11R6|${X11BASE}|g' ${WRKSRC}/Makefile.in
+ ${MV} ${WRKSRC}/Makefile.in ${WRKSRC}/Makefile.in.orig
+ ${SED} -E "s:-ldl::g; \
+ s:^CFLAGS:XCFLAGS:g; \
+ s:^CXXFLAGS:XCXXFLAGS:g; \
+ s:usr/X11R6:${PREFIX}:g; \
+ s:-O3:${PTHREAD_CFLAGS}:g; \
+ s:CFLAGS =:CFLAGS +=:g; \
+ s:CXXFLAGS=:CXXFLAGS+=:g; \
+ s:-lm:${PTHREAD_LIBS} -lm:g; \
+ s:/usr/X11R6:${X11BASE}:g" \
+ < ${WRKSRC}/Makefile.in.orig > ${WRKSRC}/Makefile.in
pre-install:
${ECHO_CMD} bin/SpiralLoops > ${PLIST}