diff --git a/srcpkgs/bzflag/patches/NetHandler-musl.patch b/srcpkgs/bzflag/patches/NetHandler-musl.patch new file mode 100644 index 0000000000..f843ef9df5 --- /dev/null +++ b/srcpkgs/bzflag/patches/NetHandler-musl.patch @@ -0,0 +1,11 @@ +--- src/game/NetHandler.cxx-orig 2018-01-22 12:28:31.043278572 -0600 ++++ src/game/NetHandler.cxx 2018-01-22 12:28:07.889568033 -0600 +@@ -135,7 +135,7 @@ + uint16_t code; + while (true) { + n = recvfrom(udpSocket, buffer, MaxUDPPacketLen, 0, (struct sockaddr *) uaddr, +- &recvlen); ++ (socklen_t*)&recvlen); + if ((n < 0) || (n >= 4)) + break; + } diff --git a/srcpkgs/bzflag/patches/bzfs-musl.patch b/srcpkgs/bzflag/patches/bzfs-musl.patch new file mode 100644 index 0000000000..e6060cc0d9 --- /dev/null +++ b/srcpkgs/bzflag/patches/bzfs-musl.patch @@ -0,0 +1,11 @@ +--- src/bzfs/bzfs.cxx-orig 2018-01-22 14:58:45.381583835 -0600 ++++ src/bzfs/bzfs.cxx 2018-01-22 14:58:55.584456281 -0600 +@@ -1260,7 +1260,7 @@ + // accept incoming connection on our well known port + struct sockaddr_in clientAddr; + AddrLen addr_len = sizeof(clientAddr); +- int fd = accept(wksSocket, (struct sockaddr*)&clientAddr, &addr_len); ++ int fd = accept(wksSocket, (struct sockaddr*)&clientAddr, (socklen_t*)&addr_len); + if (fd == -1) { + nerror("accepting on wks"); + return; diff --git a/srcpkgs/bzflag/template b/srcpkgs/bzflag/template new file mode 100644 index 0000000000..d55c460730 --- /dev/null +++ b/srcpkgs/bzflag/template @@ -0,0 +1,12 @@ +# Template file for 'bzflag' +pkgname=bzflag +version=2.4.12 +revision=1 +build_style=gnu-configure +makedepends="c-ares-devel zlib-devel libcurl-devel MesaLib-devel SDL2-devel" +short_desc="3D networked multi-player tank battle game" +maintainer="Andrew Benson " +license="LGPL-2.1" +homepage="https://www.bzflag.org" +distfiles="https://download.bzflag.org/bzflag/source/$version/bzflag-${version}.tar.gz" +checksum=4af05a3c5e92c8c4fb96bb178c08daa2e33858d976e8fe96a3a77fd521dfa8e9