summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarkp <markp@FreeBSD.org>2003-02-10 13:26:24 +0000
committermarkp <markp@FreeBSD.org>2003-02-10 13:26:24 +0000
commit10acdbea46acb286bba954a6a85d943c767637ec (patch)
tree0065890f5c89cc513b6dd2a341d4a668f5d06f48
parentfcbec2a6b94268901867e91dfecd5eaf24108782 (diff)
downloadFreeBSD-ports-10acdbea46acb286bba954a6a85d943c767637ec.zip
FreeBSD-ports-10acdbea46acb286bba954a6a85d943c767637ec.tar.gz
Changed to use REINPLACE, FIND and XARGS.
-rw-r--r--games/pipenightdreams/Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/games/pipenightdreams/Makefile b/games/pipenightdreams/Makefile
index 027276e..8b5cb4d 100644
--- a/games/pipenightdreams/Makefile
+++ b/games/pipenightdreams/Makefile
@@ -19,16 +19,18 @@ GNU_CONFIGURE= yes
USE_BZIP2= yes
USE_GMAKE= yes
CONFIGURE_ENV= SDL_CONFIG="${SDL_CONFIG}" CPPFLAGS="-I${LOCALBASE}/include"
+USE_REINPLACE= yes
MAN6= pipenightdreams.6
-pre-patch:
- @${PERL} -pi -e 's|"SDL/SDL|"SDL|g ; s|<SDL/SDL|<SDL|g; \
+post-patch:
+ ${REINPLACE_CMD} 's|"SDL/SDL|"SDL|g ; s|<SDL/SDL|<SDL|g; \
s|SDL_LIBSS|SDL_LIBS|g; s|datadir/games|datadir|;' \
${WRKSRC}/configure
- @find ${WRKSRC} -name Makefile.in | \
- xargs ${PERL} -pi -e 's|/games/|/|g; \
+ ${FIND} ${WRKSRC} -name Makefile.in | \
+ ${XARGS} ${REINPLACE_CMD} 's|/games/|/|g; \
s/^pipenightdreams_LDADD.+//g;'
- @${PERL} -pi -e "s|/usr/share/games|${LOCALBASE}/share|g" ${WRKSRC}/src/main.cpp
+ ${REINPLACE_CMD} "s|/usr/share/games|${LOCALBASE}/share|g" \
+ ${WRKSRC}/src/main.cpp
.include <bsd.port.mk>
OpenPOWER on IntegriCloud