aboutsummaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2019-06-24 08:56:57 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2019-06-24 08:56:57 +0000
commitcad192fec6bc32f488718c9e2eeeb997ceb2d5bb (patch)
treecdd4778b32d6bb4630b39e446029e07445a144a4 /games
parent55d3387fd1c039b488b176035be7b5964f4d9626 (diff)
downloadports-cad192fec6bc32f488718c9e2eeeb997ceb2d5bb.tar.gz
ports-cad192fec6bc32f488718c9e2eeeb997ceb2d5bb.zip
Avoid using `sys/dir.h' to make the port look less abandonware.
Obtained from: games/netradiant (r504802)
Notes
Notes: svn path=/head/; revision=505014
Diffstat (limited to 'games')
-rw-r--r--games/gtkradiant/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/games/gtkradiant/Makefile b/games/gtkradiant/Makefile
index 107807c9641d..05b11263b386 100644
--- a/games/gtkradiant/Makefile
+++ b/games/gtkradiant/Makefile
@@ -56,6 +56,11 @@ post-patch:
# page size is deprecated" (very annoying)
@${GREP} -Rl --null gtk_adjustment_new ${WRKSRC} | ${XARGS} -0 \
${REINPLACE_CMD} -E 's|(gtk_adjustment_new[^)]*,)[^)]*|\1 0|'
+# Do not #include <sys/dir.h> header which is deprecated
+ @${REINPLACE_CMD} -e '/#include/s,<sys/dir,&ent,' \
+ ${WRKSRC}/tools/quake2/qdata/qdata.c
+ @${REINPLACE_CMD} -e 's,#ifndef WIN32,#ifdef NeXT,' \
+ ${WRKSRC}/tools/quake3/q3data/q3data.c
pre-install:
cd ${WRKSRC} && ${PYTHON_CMD} install.py