summaryrefslogtreecommitdiff
path: root/graphics/truevision
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2002-07-08 10:41:30 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2002-07-08 10:41:30 +0000
commit2730c8a3dcd82845271c9dbb832f982bbacff7ab (patch)
tree1642e533cdc6183365ccba20544974f74946044a /graphics/truevision
parentFix the condition in the userforward director that is intended to (diff)
PERL -> REINPLACE_CMD
PR: 39938 Submitted by: Oliver Braun <obraun@informatik.unibw-muenchen.de>
Diffstat (limited to 'graphics/truevision')
-rw-r--r--graphics/truevision/Makefile13
1 files changed, 7 insertions, 6 deletions
diff --git a/graphics/truevision/Makefile b/graphics/truevision/Makefile
index e5302818bb64..4bf62ffbb5ed 100644
--- a/graphics/truevision/Makefile
+++ b/graphics/truevision/Makefile
@@ -17,6 +17,7 @@ MAINTAINER= ports@FreeBSD.org
LIB_DEPENDS= gtkgl:${PORTSDIR}/x11-toolkits/gtkglarea
+USE_REINPLACE= yes
USE_X_PREFIX= yes
USE_MESA= yes
USE_GNOME= yes
@@ -26,13 +27,13 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_FLAGS}" \
LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
pre-patch:
- @${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
+ @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure
- @find ${WRKSRC} -name "Makefile.in*" | xargs ${PERL} -pi -e \
- 's|\$\(datadir\)/gnome/|\$\(datadir\)/|g ; \
- s|\$\(datadir\)/locale|\$\(prefix\)/share/locale|g'
- @${PERL} -pi -e "s,Bison ,Bison,g" ${WRKSRC}/configure
- @${PERL} -pi -e "s,-lgthread,-lgthread12,g ; \
+ @${FIND} ${WRKSRC} -name "Makefile.in*" | ${XARGS} ${REINPLACE_CMD} -e \
+ 's|\$$(datadir)/gnome/|\$$(datadir)/|g ; \
+ s|\$$(datadir)/locale|\$$(prefix)/share/locale|g'
+ @${REINPLACE_CMD} -e "s,Bison ,Bison,g" ${WRKSRC}/configure
+ @${REINPLACE_CMD} -e "s,-lgthread,-lgthread12,g ; \
s,-lpthread,${PTHREAD_LIBS},g" ${WRKSRC}/src/Makefile.in
.include <bsd.port.mk>