summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorMark Pulford <markp@FreeBSD.org>2002-04-06 09:23:07 +0000
committerMark Pulford <markp@FreeBSD.org>2002-04-06 09:23:07 +0000
commitab31dbce968b881173c2c3c95388966e7d3ee8b4 (patch)
treef4472a01b554228a143339240cd42af5d39f020f /games
parent- Update to new release: sendmail-8.12.3 (diff)
Patch to use stdlib.h instead of malloc.h.
Diffstat (limited to 'games')
-rw-r--r--games/nighthawk/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/games/nighthawk/Makefile b/games/nighthawk/Makefile
index 846346ada954..4ba403e8227f 100644
--- a/games/nighthawk/Makefile
+++ b/games/nighthawk/Makefile
@@ -21,6 +21,11 @@ GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-scores=/var/games/nighthawk.scores --enable-sound
MAN6= nighthawk.6
+post-patch:
+ @${PERL} -pi -e "s/malloc.h/stdlib.h/g" ${WRKSRC}/src/floor.cc \
+ ${WRKSRC}/src/ship.cc ${WRKSRC}/src_sound/nighthawk_sound.c \
+ ${WRKSRC}/src_sound/funkload.c ${WRKSRC}/src_sound/dsp_mixxer.c
+
post-install:
${CHOWN} root:games ${PREFIX}/bin/nighthawk
${CHMOD} g+s ${PREFIX}/bin/nighthawk