From nobody Tue Aug 23 20:09:00 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MC0g12pdBz4Z9Yf; Tue, 23 Aug 2022 20:09:01 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MC0g12HGwz3X5f; Tue, 23 Aug 2022 20:09:01 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661285341; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=4WWGlxeEBGTiMEa4H466aQJgt5hpcefDGiOuRTTbS5s=; b=P1oVJg3m7CSOGr6BLspKbgNfLcddOJGP6HhQXuIzdPJQHKzHrCtiSkAbz3/vHEQkVo/JkL Qhsr4vtSgIB4FHcY5ZGE1EQHq8B5aH/a/j8UTEZeiITfJbFXganwQ47etPgSVwvM1JmPF+ bwUn0Eoez9L94jAxedYRWytIzr0ZEbpee9SwoapTDtWSWBMfhwjFxzRhS+8DzP3KKtL5ko 0rsj+czzCDgtqrSCoFT3TeRvdHX9oOd2KJpQLpF0XnXXVJl0TTqa/TVXSe4Rbe6Me7zx4X s3ifuocessF5xEp8MTuznrX5wVzyCSxIwELYOwT5JEDRYSbODWu5tOezELHXow== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4MC0g114YmzjHZ; Tue, 23 Aug 2022 20:09:01 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 27NK90bq093645; Tue, 23 Aug 2022 20:09:00 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27NK9047093644; Tue, 23 Aug 2022 20:09:00 GMT (envelope-from git) Date: Tue, 23 Aug 2022 20:09:00 GMT Message-Id: <202208232009.27NK9047093644@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Piotr Kubaj Subject: git: 6ea5f4a3335b - main - games/Doom64EX: Project aimed to recreate Doom64 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: pkubaj X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6ea5f4a3335bec4072a3ae50298b190450f7844a Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661285341; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=4WWGlxeEBGTiMEa4H466aQJgt5hpcefDGiOuRTTbS5s=; b=kicxUP0+MUOWIT3BSD04cx8j5CIUste0xvlIlOIiZp8Oxf+/SkBuQF+OMYnOwK6koEQdna VZRX7TavZRar0bIVJak8NDm+QaUGTwSBs9fIyxuXA0P2wGxMMf5uSxXmUJNwCRFklnsAJc Ag3NVoWv81RVZXMyfgqv3BEjtXgCHxTopFN+AUBtdk7yt2wD9Hi+icnEwHqOnRwP7qyn9p s9oYOKYqMN2jo3qhTWUSFdaKsObhgO6q6cGspcInWlTlphO7rYpEZqXwhpuNfdGlTcMCXX ZdsJxOOyG5a6ZjURah8KOEujsd/UCVw9XTJz++Jn1TNfQS3rrwhQq48AlpA27A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1661285341; a=rsa-sha256; cv=none; b=jCBzGtzJaA6+P4/RcVdWhb6dQ+HPUe3AF6krAysjD/pmqSX2VsC5VwhaKcHKYsrraRvt02 RT1m36LophAfIp6jaKZ+iu2hVA++MIWpDxNUG8DAy9F0qwki/s62k+2DRsrggv55ab9VX4 Y4jesq6lIJAJ1elz0a1PIXfae2EQqdjpHhen1qoy47C9UEoIVB+BtvySLoHmVVfnYp6Dzp CnTeVBWpM28yjttkgMeWoZbY0FBh3YHLfyjNqY/Mowo0RGjtYuziho2tJZw7GPwCey3iQE muR0+hz7i6v+J9xElZLfEEZWRH5HRWQV7mRr0Ny6BuyqN1zsBjIgAMm9LIjFZQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=6ea5f4a3335bec4072a3ae50298b190450f7844a commit 6ea5f4a3335bec4072a3ae50298b190450f7844a Author: Piotr Kubaj AuthorDate: 2022-08-23 19:52:46 +0000 Commit: Piotr Kubaj CommitDate: 2022-08-23 19:52:46 +0000 games/Doom64EX: Project aimed to recreate Doom64 --- games/Doom64EX/Makefile | 24 ++++++++++++++ games/Doom64EX/distinfo | 3 ++ games/Doom64EX/files/patch-include_imp_util_Endian | 38 ++++++++++++++++++++++ games/Doom64EX/pkg-descr | 4 +++ games/Makefile | 1 + 5 files changed, 70 insertions(+) diff --git a/games/Doom64EX/Makefile b/games/Doom64EX/Makefile new file mode 100644 index 000000000000..58de309236e6 --- /dev/null +++ b/games/Doom64EX/Makefile @@ -0,0 +1,24 @@ +PORTNAME= Doom64EX +PORTVERSION= g20180824 +CATEGORIES= games + +MAINTAINER= pkubaj@FreeBSD.org +COMMENT= Project aimed to recreate Doom64 + +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/COPYING + +LIB_DEPENDS= libfluidsynth.so:audio/fluidsynth \ + libpng.so:graphics/png + +USES= cmake sdl +USE_GITHUB= yes +GH_ACCOUNT= svkaiser +GH_TAGNAME= 03a5e6a5a3a14d66886f62b72431b37ef7336706 +USE_SDL= net2 sdl2 + +CMAKE_ON= ENABLE_SYSTEM_FLUIDSYNTH +PLIST_FILES= bin/doom64ex \ + share/games/doom64ex/doom64ex.pk3 + +.include diff --git a/games/Doom64EX/distinfo b/games/Doom64EX/distinfo new file mode 100644 index 000000000000..536b37ce4fdb --- /dev/null +++ b/games/Doom64EX/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1661276734 +SHA256 (svkaiser-Doom64EX-g20180824-03a5e6a5a3a14d66886f62b72431b37ef7336706_GH0.tar.gz) = 5a2d74a9dbbcdd2ed7d08ac58192dc1672f840d3b488847393c7d5a5814ff0b7 +SIZE (svkaiser-Doom64EX-g20180824-03a5e6a5a3a14d66886f62b72431b37ef7336706_GH0.tar.gz) = 1115567 diff --git a/games/Doom64EX/files/patch-include_imp_util_Endian b/games/Doom64EX/files/patch-include_imp_util_Endian new file mode 100644 index 000000000000..a071f8f6967d --- /dev/null +++ b/games/Doom64EX/files/patch-include_imp_util_Endian @@ -0,0 +1,38 @@ +--- include/imp/util/Endian.orig 2018-08-24 09:23:34 UTC ++++ include/imp/util/Endian +@@ -10,7 +10,7 @@ + # define BIG_ENDIAN 0x1234 + # define LITTLE_ENDIAN 0x4321 + # define BYTE_ORDER LITTLE_ENDIAN +-#elif defined(__APPLE__) ++#elif defined(__APPLE__) || defined(__FreeBSD__) + # include + #else + # include +@@ -57,6 +57,26 @@ namespace imp { + + inline uint64 swap_bytes(uint64 x) noexcept + { return OSSwapInt64(x); } ++} ++#elif defined(__FreeBSD__) ++namespace imp { ++ inline int16 swap_bytes(int16 x) noexcept ++ { return bswap16(x); } ++ ++ inline uint16 swap_bytes(uint16 x) noexcept ++ { return bswap16(x); } ++ ++ inline int32 swap_bytes(int32 x) noexcept ++ { return bswap32(x); } ++ ++ inline uint32 swap_bytes(uint32 x) noexcept ++ { return bswap32(x); } ++ ++ inline int64 swap_bytes(int64 x) noexcept ++ { return bswap64(x); } ++ ++ inline uint64 swap_bytes(uint64 x) noexcept ++ { return bswap64(x); } + } + #elif defined(__GNUC__) || defined(__clang__) + namespace imp { diff --git a/games/Doom64EX/pkg-descr b/games/Doom64EX/pkg-descr new file mode 100644 index 000000000000..6aca3d500a0e --- /dev/null +++ b/games/Doom64EX/pkg-descr @@ -0,0 +1,4 @@ +Doom64EX is a reverse-engineering project aimed to recreate Doom64 as close as +possible with additional modding features. + +WWW: https://doom64ex.wordpress.com/ diff --git a/games/Makefile b/games/Makefile index 41430d3991fb..0e7861a15e31 100644 --- a/games/Makefile +++ b/games/Makefile @@ -12,6 +12,7 @@ SUBDIR += 90secondportraits SUBDIR += CaribbeanStud SUBDIR += DDNet + SUBDIR += Doom64EX SUBDIR += HeroesOfMightAndMagic SUBDIR += KnightCap SUBDIR += LibreMines