Received: by mail.netbsd.org (Postfix, from userid 605) id 63A7A84D8D; Thu, 15 Dec 2022 19:26:37 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 9244B84D37 for ; Thu, 15 Dec 2022 19:26:36 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id 9EfFPraSaVkM for ; Thu, 15 Dec 2022 19:26:36 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id E227084CE3 for ; Thu, 15 Dec 2022 19:26:35 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id D6ACDFA90; Thu, 15 Dec 2022 19:26:35 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1671132395132670" MIME-Version: 1.0 Date: Thu, 15 Dec 2022 19:26:35 +0000 From: "Havard Eidnes" Subject: CVS commit: pkgsrc/games/openrct2 To: pkgsrc-changes@NetBSD.org Reply-To: he@netbsd.org X-Mailer: log_accum Message-Id: <20221215192635.D6ACDFA90@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_1671132395132670 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: he Date: Thu Dec 15 19:26:35 UTC 2022 Modified Files: pkgsrc/games/openrct2: distinfo Added Files: pkgsrc/games/openrct2/patches: patch-src_openrct2_common.h Log Message: games/openrct2: teach it about big-endian hosts. Fixes build on NetBSD/macppc. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 pkgsrc/games/openrct2/distinfo cvs rdiff -u -r0 -r1.1 \ pkgsrc/games/openrct2/patches/patch-src_openrct2_common.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_1671132395132670 Content-Disposition: inline Content-Length: 2322 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/games/openrct2/distinfo diff -u pkgsrc/games/openrct2/distinfo:1.5 pkgsrc/games/openrct2/distinfo:1.6 --- pkgsrc/games/openrct2/distinfo:1.5 Tue Nov 9 11:36:08 2021 +++ pkgsrc/games/openrct2/distinfo Thu Dec 15 19:26:35 2022 @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.5 2021/11/09 11:36:08 nia Exp $ +$NetBSD: distinfo,v 1.6 2022/12/15 19:26:35 he Exp $ BLAKE2s (openrct2-0.2.4.tar.gz) = 3f96cb44eae26acf77605e6e166fd2c85a0632db82a77019feefd5b30c803699 SHA512 (openrct2-0.2.4.tar.gz) = 956044b5fa5e55256a33f352d2d1e8a4eb6738b98dc9894807b3628b5c5c08f3229c952fbf8b33ad867771f88c6d7e17ad1a8a4e050f8f269a6152d013afce03 @@ -7,6 +7,7 @@ SHA1 (patch-src_openrct2-ui_UiContext.Li SHA1 (patch-src_openrct2-ui_title_TitleSequencePlayer.cpp) = 35a4ee2a47fe6f5bfd536e199a369361cb1b12fa SHA1 (patch-src_openrct2_CMakeLists.txt) = a0553c147661396405a607f5ef62f10fc9b55f6c SHA1 (patch-src_openrct2_Version.h) = 5402d56aaedcac51d333d95c49f88472d9de7e91 +SHA1 (patch-src_openrct2_common.h) = 4e9458b7768291d11599f66a12e5587b8bba8a8a SHA1 (patch-src_openrct2_core_FileStream.hpp) = b1b69a0cb86207fd0c9d25beda3a063ee232b4fe SHA1 (patch-src_openrct2_platform_Linux.cpp) = 9562e6a0314a1c37192e8715bac39e1d9fd7faba SHA1 (patch-src_openrct2_platform_Platform.Linux.cpp) = 426b2bcbb6bf59d5093cbc27ef3f638a054cf1e8 Added files: Index: pkgsrc/games/openrct2/patches/patch-src_openrct2_common.h diff -u /dev/null pkgsrc/games/openrct2/patches/patch-src_openrct2_common.h:1.1 --- /dev/null Thu Dec 15 19:26:35 2022 +++ pkgsrc/games/openrct2/patches/patch-src_openrct2_common.h Thu Dec 15 19:26:35 2022 @@ -0,0 +1,19 @@ +$NetBSD: patch-src_openrct2_common.h,v 1.1 2022/12/15 19:26:35 he Exp $ + +Take a stab at supporting big-endian ports. + +--- src/openrct2/common.h.orig 2019-10-28 20:18:47.000000000 +0000 ++++ src/openrct2/common.h +@@ -73,6 +73,12 @@ const constexpr auto ror64 = ror> 8) & 0xFF)) + # endif // __BYTE_ORDER__ + ++# if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ ++# define RCT2_ENDIANESS __ORDER_BIG_ENDIAN__ ++# define LOBYTE(w) ((uint8_t)(((uint16_t)(w) >> 8) & 0xFF)) ++# define HIBYTE(w) ((uint8_t)(w)) ++# endif ++ + # ifndef RCT2_ENDIANESS + # error Unknown endianess! + # endif // RCT2_ENDIANESS --_----------=_1671132395132670--