aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorthierry <thierry@FreeBSD.org>2005-02-25 04:30:00 +0800
committerthierry <thierry@FreeBSD.org>2005-02-25 04:30:00 +0800
commit401f3cf9d7c8fadda4ed84c27804f35c7ba531c1 (patch)
treeecb8628b45ebb8f442722a4f7bd8a4154ec217fc
parent4cc0fb53a1dd19fcaa22d7d7c22fe4f5854d09a7 (diff)
downloadfreebsd-ports-gnome-401f3cf9d7c8fadda4ed84c27804f35c7ba531c1.tar.gz
freebsd-ports-gnome-401f3cf9d7c8fadda4ed84c27804f35c7ba531c1.tar.zst
freebsd-ports-gnome-401f3cf9d7c8fadda4ed84c27804f35c7ba531c1.zip
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.
-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