aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authorjohans <johans@FreeBSD.org>2013-07-19 22:59:11 +0800
committerjohans <johans@FreeBSD.org>2013-07-19 22:59:11 +0800
commitd5c1e44fa276572d93be28455c0669bd65de443f (patch)
treeff3b1f8137a7a2e3e9750af312aa1abc4029d42b /games
parentddbdec66fb1afae1abc654fd71f67a89636c8720 (diff)
downloadfreebsd-ports-gnome-d5c1e44fa276572d93be28455c0669bd65de443f.tar.gz
freebsd-ports-gnome-d5c1e44fa276572d93be28455c0669bd65de443f.tar.zst
freebsd-ports-gnome-d5c1e44fa276572d93be28455c0669bd65de443f.zip
Rename variable 'log' to avoid conflicts with function 'log'
This fixes compilation on CURRENT
Diffstat (limited to 'games')
-rw-r--r--games/tetrinet/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/games/tetrinet/Makefile b/games/tetrinet/Makefile
index 3f94e4c04113..3aab534b6a38 100644
--- a/games/tetrinet/Makefile
+++ b/games/tetrinet/Makefile
@@ -22,6 +22,10 @@ PLIST_FILES= bin/tetrinet bin/tetrinet-server
PORTDOCS= README tetrinet.txt
.endif
+post-patch:
+ ${REINPLACE_CMD} -e '/-log/n; s/[[:<:]]log[[:>:]]/dolog/g' \
+ ${WRKSRC}/tetrinet.h ${WRKSRC}/tetrinet.c ${WRKSRC}/sockets.c
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/tetrinet ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/tetrinet-server ${PREFIX}/bin