summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--games/fgfs-base/Makefile3
-rw-r--r--games/flightgear-data/Makefile3
-rw-r--r--games/flightgear/Makefile3
-rw-r--r--games/gracer/Makefile4
4 files changed, 13 insertions, 0 deletions
diff --git a/games/fgfs-base/Makefile b/games/fgfs-base/Makefile
index a705552..896b636 100644
--- a/games/fgfs-base/Makefile
+++ b/games/fgfs-base/Makefile
@@ -54,6 +54,9 @@ pre-patch:
for i in ${ADDPATCHES} ; do \
${PATCH} -s < $${i}; \
done )
+ @${PERL} -pi -e 's,<malloc.h>,<stdlib.h>,' \
+ ${WRKSRC}/Lib/XGL/xglUtils.c \
+ ${WRKSRC}/Lib/zlib/zutil.h
post-configure:
@find ${WRKSRC} -type f | xargs ${PERL} -pi -e \
diff --git a/games/flightgear-data/Makefile b/games/flightgear-data/Makefile
index a705552..896b636 100644
--- a/games/flightgear-data/Makefile
+++ b/games/flightgear-data/Makefile
@@ -54,6 +54,9 @@ pre-patch:
for i in ${ADDPATCHES} ; do \
${PATCH} -s < $${i}; \
done )
+ @${PERL} -pi -e 's,<malloc.h>,<stdlib.h>,' \
+ ${WRKSRC}/Lib/XGL/xglUtils.c \
+ ${WRKSRC}/Lib/zlib/zutil.h
post-configure:
@find ${WRKSRC} -type f | xargs ${PERL} -pi -e \
diff --git a/games/flightgear/Makefile b/games/flightgear/Makefile
index a705552..896b636 100644
--- a/games/flightgear/Makefile
+++ b/games/flightgear/Makefile
@@ -54,6 +54,9 @@ pre-patch:
for i in ${ADDPATCHES} ; do \
${PATCH} -s < $${i}; \
done )
+ @${PERL} -pi -e 's,<malloc.h>,<stdlib.h>,' \
+ ${WRKSRC}/Lib/XGL/xglUtils.c \
+ ${WRKSRC}/Lib/zlib/zutil.h
post-configure:
@find ${WRKSRC} -type f | xargs ${PERL} -pi -e \
diff --git a/games/gracer/Makefile b/games/gracer/Makefile
index bec53b2..024a11c 100644
--- a/games/gracer/Makefile
+++ b/games/gracer/Makefile
@@ -30,4 +30,8 @@ USE_GMAKE= yes
USE_NEWGCC= yes
CONFIGURE_ARGS+= --with-plib=${X11BASE}
+pre-patch:
+ @${PERL} -pi -e 's,<malloc.h>,<stdlib.h>,' \
+ ${WRKSRC}/common/gr_memory.h
+
.include <bsd.port.mk>
OpenPOWER on IntegriCloud