Thu Mar 2 03:44:39 2023 UTC ()
games/openjazz: Import package
OpenJazz is a free, open-source version of the classic Jazz Jackrabbit
games.
OpenJazz can be compiled on a wide range of operating systems, including
Windows, macOS, GNU/Linux and *BSD. Also ports are available for some
homebrew platforms, for example Wii and PSP.
To play, you will need the files from one of the original games.
(charlotte)
diff -r0 -r1.1 pkgsrc/games/openjazz/DESCR
diff -r0 -r1.1 pkgsrc/games/openjazz/Makefile
diff -r0 -r1.1 pkgsrc/games/openjazz/PLIST
diff -r0 -r1.1 pkgsrc/games/openjazz/distinfo
diff -r0 -r1.1 pkgsrc/games/openjazz/patches/patch-src_io_network.cpp
OpenJazz is a free, open-source version of the classic Jazz Jackrabbit
games.
OpenJazz can be compiled on a wide range of operating systems, including
Windows, macOS, GNU/Linux and *BSD. Also ports are available for some
homebrew platforms, for example Wii and PSP.
To play, you will need the files from one of the original games.
# $NetBSD: Makefile,v 1.1 2023/03/02 03:44:39 charlotte Exp $
DISTNAME= openjazz-20190106
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_GITHUB:=AlisterT/}
GITHUB_TAG= ${PKGVERSION_NOREV}
MAINTAINER= charlotte@NetBSD.org
COMMENT= Open source reimplementation of the Jazz Jackrabbit games
LICENSE= gnu-gpl-v2
EXTRACT_USING= gtar
USE_LANGUAGES= c c++
GNU_CONFIGURE= yes
USE_TOOLS+= automake autoconf autoreconf pkg-config
pre-configure:
${RUN} cd ${WRKSRC} && autoreconf -fiv
.include "../../audio/libmodplug/buildlink3.mk"
.include "../../audio/libxmp/buildlink3.mk"
.include "../../devel/SDL/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
@comment $NetBSD: PLIST,v 1.1 2023/03/02 03:44:39 charlotte Exp $
bin/OpenJazz
share/applications/OpenJazz.desktop
share/icons/hicolor/48x48/apps/OpenJazz.png
share/icons/hicolor/scalable/apps/OpenJazz.svg
share/openjazz/openjazz.000
$NetBSD: distinfo,v 1.1 2023/03/02 03:44:39 charlotte Exp $
BLAKE2s (openjazz-20190106-20190106.tar.gz) = 7f83dfe5079ee6525bcd0a548746e0d09f44db393a655291b17c7b215978c8fb
SHA512 (openjazz-20190106-20190106.tar.gz) = 94d23e832a35684b2e6f39020629ed72da6994021331926424a07dd10028de197fb8fee9cfe494a6af6c3f4613575a65796abd8753f3b38904804404a4f0fafb
Size (openjazz-20190106-20190106.tar.gz) = 219717 bytes
SHA1 (patch-src_io_network.cpp) = c9b1560c2e1b25e4071a4ef627f63a8e961a28c5
$NetBSD: patch-src_io_network.cpp,v 1.1 2023/03/02 03:44:39 charlotte Exp $
Use correct timeval struct for NetBSD.
--- src/io/network.cpp.orig 2019-01-06 13:41:53.000000000 +0000
+++ src/io/network.cpp
@@ -63,6 +63,8 @@
#include <sys/select.h>
#endif
+#include <sys/time.h>
+
/**
* Initialise networking.
*/
@@ -174,7 +176,7 @@ int Network::join (char *address) {
#ifdef USE_SOCKETS
sockaddr_in sockAddr;
fd_set writefds;
- timeval timeouttv;
+ struct timeval timeouttv;
unsigned int timeout;
int sock, con;