diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2009-12-18 10:44:30 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2009-12-18 10:44:30 +0800 |
commit | 31a4b36e91479e33caf61b41b45fcf037a661fa6 (patch) | |
tree | 901947edaebfc993d52ff36186535d25ec49aad0 /games/cube | |
parent | d908f3a2783754e23974e750084adf613f905d6f (diff) | |
download | freebsd-ports-gnome-31a4b36e91479e33caf61b41b45fcf037a661fa6.tar.gz freebsd-ports-gnome-31a4b36e91479e33caf61b41b45fcf037a661fa6.tar.zst freebsd-ports-gnome-31a4b36e91479e33caf61b41b45fcf037a661fa6.zip |
- Fix build after net/enet update
- While here, make MAKE_JOBS_SAFE
Diffstat (limited to 'games/cube')
-rw-r--r-- | games/cube/Makefile | 1 | ||||
-rw-r--r-- | games/cube/files/patch-serverbrowser.cpp | 11 | ||||
-rw-r--r-- | games/cube/files/patch-serverms.cpp | 21 |
3 files changed, 33 insertions, 0 deletions
diff --git a/games/cube/Makefile b/games/cube/Makefile index 429939818aaa..e7b322d63a51 100644 --- a/games/cube/Makefile +++ b/games/cube/Makefile @@ -24,6 +24,7 @@ USE_GMAKE= yes WRKSRC= ${WRKDIR}/${PORTNAME}_source/src CFLAGS+= -fsigned-char ALL_TARGET= #empty +MALE_JOBS_SAFE= yes OPTIONS= CLIENT "Build client" on \ DEDICATED "Build dedicated server" on \ diff --git a/games/cube/files/patch-serverbrowser.cpp b/games/cube/files/patch-serverbrowser.cpp new file mode 100644 index 000000000000..fd4a466b1c44 --- /dev/null +++ b/games/cube/files/patch-serverbrowser.cpp @@ -0,0 +1,11 @@ +--- serverbrowser.cpp.orig 2004-05-09 19:20:40.000000000 +0400 ++++ serverbrowser.cpp 2009-12-18 05:07:23.000000000 +0300 +@@ -268,7 +268,7 @@ + { + if(pingsock == ENET_SOCKET_NULL) + { +- pingsock = enet_socket_create(ENET_SOCKET_TYPE_DATAGRAM, NULL); ++ pingsock = enet_socket_create(ENET_SOCKET_TYPE_DATAGRAM); + resolverinit(1, 1000); + }; + resolverclear(); diff --git a/games/cube/files/patch-serverms.cpp b/games/cube/files/patch-serverms.cpp new file mode 100644 index 000000000000..2ddb7de46493 --- /dev/null +++ b/games/cube/files/patch-serverms.cpp @@ -0,0 +1,21 @@ +--- serverms.cpp.orig 2005-08-11 06:02:46.000000000 +0400 ++++ serverms.cpp 2009-12-18 05:09:20.000000000 +0300 +@@ -13,7 +13,7 @@ + if(ad.host==ENET_HOST_ANY) return; + }; + if(mssock!=ENET_SOCKET_NULL) enet_socket_destroy(mssock); +- mssock = enet_socket_create(ENET_SOCKET_TYPE_STREAM, NULL); ++ mssock = enet_socket_create(ENET_SOCKET_TYPE_STREAM); + if(mssock==ENET_SOCKET_NULL) { printf("could not open socket\n"); return; }; + if(enet_socket_connect(mssock, &ad)<0) { printf("could not connect\n"); return; }; + ENetBuffer buf; +@@ -135,7 +135,8 @@ + if(listen) + { + ENetAddress address = { ENET_HOST_ANY, CUBE_SERVINFO_PORT }; +- pongsock = enet_socket_create(ENET_SOCKET_TYPE_DATAGRAM, &address); ++ pongsock = enet_socket_create(ENET_SOCKET_TYPE_DATAGRAM); + if(pongsock == ENET_SOCKET_NULL) fatal("could not create server info socket\n"); ++ if(enet_socket_bind(pongsock, &address) == -1) fatal("cannot bind server info socket\n"); + }; + }; |