summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorThierry Thomas <thierry@FreeBSD.org>2005-02-24 20:30:00 +0000
committerThierry Thomas <thierry@FreeBSD.org>2005-02-24 20:30:00 +0000
commit60a21df1ffa2e447614d595cc6a7a7702034589c (patch)
tree6172e7f5a9bef2c0d3139e3cb33d6c2629c72495 /games
parent- add ports/science/dcl (diff)
Try to fix a building failure reported by Kris on pointyhat.
If this is not sufficient, it should at least speed up the post-patch target.
Notes
Notes: svn path=/head/; revision=129695
Diffstat (limited to 'games')
-rw-r--r--games/torcs/Makefile14
1 files changed, 9 insertions, 5 deletions
diff --git a/games/torcs/Makefile b/games/torcs/Makefile
index 67f4a27f7452..de8fdc0726ea 100644
--- a/games/torcs/Makefile
+++ b/games/torcs/Makefile
@@ -80,6 +80,11 @@ PLIST_SUB+= OLETHROS=""
PLIST_SUB+= OLETHROS="@comment "
.endif
+BASH2FIX= src/linux/torcs.in src/tools/accc/accc.in src/tools/nfsperf/nfsperf.in \
+ src/tools/texmapper/texmapper.in src/tools/nfs2ac/nfs2ac.in \
+ src/tools/trackgen/trackgen.in src/modules/telemetry/telemetry.sh \
+ robotgen Make-default.mk setup_linux.sh
+
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000
@@ -107,12 +112,11 @@ pre-everything::
@${ECHO_MSG} " do not install optional robots."
@${ECHO_MSG} ""
-post-extract:
- @${FIND} ${WRKSRC} -name \*\.o -exec ${RM} {} \;
-
post-patch:
- @${FIND} ${WRKSRC} -type f | ${XARGS} -n 20 -x \
- ${REINPLACE_CMD} -E -e "s|/bin/bash|${LOCALBASE}/bin/bash|g"
+.for FILE in ${BASH2FIX}
+ @${REINPLACE_CMD} -E -e "s|/bin/bash|${LOCALBASE}/bin/bash|" \
+ ${WRKSRC}/${FILE}
+.endfor
pre-install:
@${MKDIR} ${PREFIX}/share/games