summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--games/gnome-games/Makefile4
-rw-r--r--games/gnomegames2/Makefile4
2 files changed, 8 insertions, 0 deletions
diff --git a/games/gnome-games/Makefile b/games/gnome-games/Makefile
index 49fe94c8f..60f2d2a99 100644
--- a/games/gnome-games/Makefile
+++ b/games/gnome-games/Makefile
@@ -28,4 +28,8 @@ INSTALLS_SHLIB= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
+post-patch:
+ @${FIND} ${WRKSRC} -name "*.[ch]" | ${XARGS} ${REINPLACE_CMD} -e \
+ 's|malloc\.h|stdlib.h|g'
+
.include <bsd.port.mk>
diff --git a/games/gnomegames2/Makefile b/games/gnomegames2/Makefile
index 49fe94c8f..60f2d2a99 100644
--- a/games/gnomegames2/Makefile
+++ b/games/gnomegames2/Makefile
@@ -28,4 +28,8 @@ INSTALLS_SHLIB= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
+post-patch:
+ @${FIND} ${WRKSRC} -name "*.[ch]" | ${XARGS} ${REINPLACE_CMD} -e \
+ 's|malloc\.h|stdlib.h|g'
+
.include <bsd.port.mk>