From 3eae406cebbf2ed89cefe245cd0b2557186f84b6 Mon Sep 17 00:00:00 2001 From: Mario Sergio Fujikawa Ferreira Date: Wed, 3 Jul 2002 17:33:24 +0000 Subject: USE_REINPLACE --- audio/liba52-devel/Makefile | 5 +++-- audio/liba52/Makefile | 5 +++-- audio/toolame/Makefile | 7 ++++--- 3 files changed, 10 insertions(+), 7 deletions(-) (limited to 'audio') diff --git a/audio/liba52-devel/Makefile b/audio/liba52-devel/Makefile index e08ca119a9c0..245a00ffb9db 100644 --- a/audio/liba52-devel/Makefile +++ b/audio/liba52-devel/Makefile @@ -15,6 +15,7 @@ DISTNAME= a52dec-${PORTVERSION:S/.b/b/} MAINTAINER= lioux@FreeBSD.org USE_GMAKE= yes +USE_REINPLACE= yes GNU_CONFIGURE= yes CONFIGURE_ARGS= --disable-oss --enable-shared USE_LIBTOOL= yes @@ -48,11 +49,11 @@ pre-everything:: post-patch: .ifndef(WITH_OPTIMIZED_CFLAGS) - @${PERL} -pi.orig -e 's!-O3!${CFLAGS}!;s!-mcpu=[^"]+"!"!' \ + @${REINPLACE_CMD} -E -e 's!-O3!${CFLAGS}!' -e 's!-mcpu=[^"]+"!"!' \ ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} .endif .ifndef(WITHOUT_DJBFFT) - @${PERL} -pi -e 's|(fftc4.h)|djbfft/\1|' ${WRKSRC}/liba52/imdct.c + @${REINPLACE_CMD} -E -e 's|(fftc4.h)|djbfft/\1|' ${WRKSRC}/liba52/imdct.c .endif post-configure: diff --git a/audio/liba52/Makefile b/audio/liba52/Makefile index e08ca119a9c0..245a00ffb9db 100644 --- a/audio/liba52/Makefile +++ b/audio/liba52/Makefile @@ -15,6 +15,7 @@ DISTNAME= a52dec-${PORTVERSION:S/.b/b/} MAINTAINER= lioux@FreeBSD.org USE_GMAKE= yes +USE_REINPLACE= yes GNU_CONFIGURE= yes CONFIGURE_ARGS= --disable-oss --enable-shared USE_LIBTOOL= yes @@ -48,11 +49,11 @@ pre-everything:: post-patch: .ifndef(WITH_OPTIMIZED_CFLAGS) - @${PERL} -pi.orig -e 's!-O3!${CFLAGS}!;s!-mcpu=[^"]+"!"!' \ + @${REINPLACE_CMD} -E -e 's!-O3!${CFLAGS}!' -e 's!-mcpu=[^"]+"!"!' \ ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} .endif .ifndef(WITHOUT_DJBFFT) - @${PERL} -pi -e 's|(fftc4.h)|djbfft/\1|' ${WRKSRC}/liba52/imdct.c + @${REINPLACE_CMD} -E -e 's|(fftc4.h)|djbfft/\1|' ${WRKSRC}/liba52/imdct.c .endif post-configure: diff --git a/audio/toolame/Makefile b/audio/toolame/Makefile index ea4e2ea51f0c..36ef768bea4d 100644 --- a/audio/toolame/Makefile +++ b/audio/toolame/Makefile @@ -16,6 +16,7 @@ EXTRACT_SUFX= .tgz MAINTAINER= lioux@FreeBSD.org USE_GMAKE= yes +USE_REINPLACE= yes ALL_TARGET= ${PORTNAME} DOC_FILES= CHANGES COPYING FUTURE GPL HISTORY README README.VBR @@ -35,14 +36,14 @@ pre-everything:: post-patch: .ifndef(WITH_OPTIMIZED_CFLAGS) - @${PERL} -pi -e 's|\$$\(TWEAKS\)||' \ + @${REINPLACE_CMD} -E -e 's|\$$\(TWEAKS\)||' \ ${WRKSRC}/Makefile .endif .ifndef(WITH_PROFILED) - @${PERL} -pi -e 's|\$$\(PG\)||' \ + @${REINPLACE_CMD} -E -e 's|\$$\(PG\)||' \ ${WRKSRC}/Makefile .endif - @${PERL} -pi.orig -e \ + @${REINPLACE_CMD} -E -e \ 's@^CC\s.+|\$$\((ARCH|DMALLOCLIB|DMAL|OPTIM|WARNING)\)@@g' \ ${WRKSRC}/Makefile -- cgit v1.2.3