svn commit: r505014 - head/games/gtkradiant

Alexey Dokuchaev danfe at FreeBSD.org
Mon Jun 24 08:56:59 UTC 2019


Author: danfe
Date: Mon Jun 24 08:56:57 2019
New Revision: 505014
URL: https://svnweb.freebsd.org/changeset/ports/505014

Log:
  Avoid using `sys/dir.h' to make the port look less abandonware.
  
  Obtained from:	games/netradiant (r504802)

Modified:
  head/games/gtkradiant/Makefile

Modified: head/games/gtkradiant/Makefile
==============================================================================
--- head/games/gtkradiant/Makefile	Mon Jun 24 08:55:13 2019	(r505013)
+++ head/games/gtkradiant/Makefile	Mon Jun 24 08:56:57 2019	(r505014)
@@ -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


More information about the svn-ports-all mailing list