diff options
author | Alexey Dokuchaev <danfe@FreeBSD.org> | 2023-06-28 11:58:06 +0000 |
---|---|---|
committer | Alexey Dokuchaev <danfe@FreeBSD.org> | 2023-06-28 11:58:06 +0000 |
commit | 7e8b07b587a3ddc02ffd332680c079a6e3958259 (patch) | |
tree | fa1f0c21edf5aeb34851056858ab6415e6512724 | |
parent | 2c1a536ebca3d3cf933f46193731e271c10be29e (diff) | |
download | ports-7e8b07b587a3ddc02ffd332680c079a6e3958259.tar.gz ports-7e8b07b587a3ddc02ffd332680c079a6e3958259.zip |
games/netradiant: unbreak the port's build against Clang 16
Reported by: pkg-fallout
-rw-r--r-- | games/netradiant/Makefile | 4 | ||||
-rw-r--r-- | games/netradiant/files/patch-Makefile | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/games/netradiant/Makefile b/games/netradiant/Makefile index 291cd132e49f..f0de93d5e962 100644 --- a/games/netradiant/Makefile +++ b/games/netradiant/Makefile @@ -46,7 +46,9 @@ GAMES= DarkPlaces Doom3 ET Neverball Nexuiz OpenArena Osirion Quake1 \ GAMEPACK_DISTFILES= ${GAMES:S/$/Pack.zip:gp/} post-patch: - @${REINPLACE_CMD} -e '/#include/s,<sys/dir,&ent,' \ + @${REINPLACE_CMD} -e 's,register ,,' \ + ${WRKSRC}/libs/container/hashfunc.h + @${REINPLACE_CMD} -e '/#include/s,sys/dir,dirent,' \ ${WRKSRC}/tools/quake2/qdata/qdata.c @${REINPLACE_CMD} -e 's,#ifndef WIN32,#ifdef NeXT,' \ ${WRKSRC}/tools/quake3/q3data/q3data.c diff --git a/games/netradiant/files/patch-Makefile b/games/netradiant/files/patch-Makefile index 0b1663707d37..23d78326952e 100644 --- a/games/netradiant/files/patch-Makefile +++ b/games/netradiant/files/patch-Makefile @@ -5,7 +5,7 @@ endif -CFLAGS_COMMON = -MMD -W -Wall -Wcast-align -Wcast-qual -Wno-unused-parameter -fno-strict-aliasing -+CFLAGS_COMMON = -MMD -W -Wall -Wcast-align -Wcast-qual -Wno-unused-parameter -fcommon ++CFLAGS_COMMON = -MMD -W -Wall -Wcast-align -Wcast-qual -Wno-implicit-function-declaration -Wno-unused-parameter -fcommon CPPFLAGS_COMMON = LDFLAGS_COMMON = LIBS_COMMON = |