summaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authorthierry <thierry@FreeBSD.org>2005-02-24 20:30:00 +0000
committerthierry <thierry@FreeBSD.org>2005-02-24 20:30:00 +0000
commit401f3cf9d7c8fadda4ed84c27804f35c7ba531c1 (patch)
treeecb8628b45ebb8f442722a4f7bd8a4154ec217fc /games
parent4cc0fb53a1dd19fcaa22d7d7c22fe4f5854d09a7 (diff)
downloadFreeBSD-ports-401f3cf9d7c8fadda4ed84c27804f35c7ba531c1.zip
FreeBSD-ports-401f3cf9d7c8fadda4ed84c27804f35c7ba531c1.tar.gz
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.
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 67f4a27..de8fdc0 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
OpenPOWER on IntegriCloud