diff options
author | David W. Chapman Jr. <dwcjr@FreeBSD.org> | 2002-09-01 16:07:59 +0000 |
---|---|---|
committer | David W. Chapman Jr. <dwcjr@FreeBSD.org> | 2002-09-01 16:07:59 +0000 |
commit | 534fffca27bb18f7529d548c46ee3326505a89c7 (patch) | |
tree | a09ac440edd299d85a3517dea62caa2b115543fc /games | |
parent | Update for a new patchset, which has only different comments. (diff) |
${PERL} -> ${REINPLACE_CMD}
PR: 40784
Submitted by: corecode@corecode.ath.cx
Reviewed by: flynn@energyhq.homeip.net
Notes
Notes:
svn path=/head/; revision=65426
Diffstat (limited to 'games')
-rw-r--r-- | games/gltron/Makefile | 3 | ||||
-rw-r--r-- | games/kpuzzle/Makefile | 7 | ||||
-rw-r--r-- | games/powerpak/Makefile | 5 | ||||
-rw-r--r-- | games/xlines/Makefile | 5 |
4 files changed, 12 insertions, 8 deletions
diff --git a/games/gltron/Makefile b/games/gltron/Makefile index e5c48861b83c..10b91c1b8109 100644 --- a/games/gltron/Makefile +++ b/games/gltron/Makefile @@ -24,6 +24,7 @@ SDL_CONFIG?= ${LOCALBASE}/bin/sdl11-config USE_X_PREFIX= yes USE_MESA= yes USE_GMAKE= yes +USE_REINPLACE= yes GNU_CONFIGURE= yes CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" \ SDL_CONFIG="${SDL_CONFIG}" @@ -32,7 +33,7 @@ CPPFLAGS= -I${LOCALBASE}/include -I${X11BASE}/include ${PTHREAD_CFLAGS} LDFLAGS= -L${LOCALBASE}/lib -L${X11BASE}/lib -lXext ${PTHREAD_LIBS} post-patch: - ${PERL} -pi -e "s+#include <SDL\/+#include <+g" ${WRKSRC}/*.[ch] + ${REINPLACE_CMD} -e "s+#include <SDL/+#include <+g" ${WRKSRC}/*.[ch] do-install: ${INSTALL_PROGRAM} ${WRKSRC}/gltron ${PREFIX}/bin diff --git a/games/kpuzzle/Makefile b/games/kpuzzle/Makefile index 47424223cef8..89a5b9babff5 100644 --- a/games/kpuzzle/Makefile +++ b/games/kpuzzle/Makefile @@ -15,13 +15,14 @@ MAINTAINER= kde@freebsd.org USE_KDELIBS_VER= 2 USE_BZIP2= yes USE_GMAKE= yes +USE_REINPLACE= yes GNU_CONFIGURE= yes post-patch: - @${PERL} -pi -e 's|-O2||g' ${WRKSRC}/configure + @${REINPLACE_CMD} -e 's|-O2||g' ${WRKSRC}/configure .for file in highscore.cpp kpuzzleapp.cpp - @${PERL} -pi -e 's|#include <malloc.h>||g' ${WRKSRC}/kpuzzle/${file} + @${REINPLACE_CMD} -e 's|#include <malloc.h>||g' ${WRKSRC}/kpuzzle/${file} .endfor - @${PERL} -pi -e 's|default|en|g' ${WRKSRC}/kpuzzle/doc/en/Makefile.in + @${REINPLACE_CMD} -e 's|default|en|g' ${WRKSRC}/kpuzzle/doc/en/Makefile.in .include <bsd.port.mk> diff --git a/games/powerpak/Makefile b/games/powerpak/Makefile index b812bdd9cc26..a35284c70058 100644 --- a/games/powerpak/Makefile +++ b/games/powerpak/Makefile @@ -21,13 +21,14 @@ LIB_DEPENDS= SDL-1.1.4:${PORTSDIR}/devel/sdl12 \ SDL_CONFIG= ${LOCALBASE}/bin/sdl11-config USE_FREETYPE= yes +USE_REINPLACE= yes INSTALLS_SHLIB= yes MAKE_ENV= SDL_CONFIG="${SDL_CONFIG}" MAKEFILE= Makefile.UNIX post-extract: - @ /usr/bin/find ${WRKSRC} -type f | xargs ${PERL} -pi -e 's/\r//g ; \ - s|"SDL/|"|g ; s|<SDL/|<|g' + @${FIND} ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} -e "s/`/usr/bin/printf '\r'`//g ; \ + s|\"SDL/|\"|g ; s|<SDL/|<|g" do-install: @ ${INSTALL_DATA} ${WRKSRC}/libPP.a ${PREFIX}/lib diff --git a/games/xlines/Makefile b/games/xlines/Makefile index 8b7f0b387839..812f58a7e9a1 100644 --- a/games/xlines/Makefile +++ b/games/xlines/Makefile @@ -15,13 +15,14 @@ MAINTAINER= ports@FreeBSD.org USE_QT_VER= 1 USE_X_PREFIX= yes +USE_REINPLACE= yes NO_WRKSUBDIR= yes pre-patch: - @find ${WRKSRC} -type f | xargs ${PERL} -pi -e "s|\r\n|\n|g" + @${FIND} ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} -e "s|`/usr/bin/printf '\r'`||g" post-patch: - @${PERL} -pi -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/*.cpp + @${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/*.cpp do-install: ${INSTALL_PROGRAM} ${WRKSRC}/xlines ${PREFIX}/bin |