* [gentoo-commits] repo/proj/guru:dev commit in: games-engines/fs2_open/files/, games-engines/fs2_open/
@ 2022-03-25 22:04 Jonas Frei
0 siblings, 0 replies; 7+ messages in thread
From: Jonas Frei @ 2022-03-25 22:04 UTC (permalink / raw
To: gentoo-commits
commit: c820f8c1f2fce98280a20280ae248275f30848a2
Author: Jonas Frei <freijon <AT> pm <DOT> me>
AuthorDate: Fri Mar 25 22:04:17 2022 +0000
Commit: Jonas Frei <freijon <AT> pm <DOT> me>
CommitDate: Fri Mar 25 22:04:17 2022 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=c820f8c1
games-engines/fs2_open: Bump to 21.4.1. Removed git-r3 eclass.
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Jonas Frei <freijon <AT> pm.me>
games-engines/fs2_open/Manifest | 3 +
.../fs2_open-21.4.1-make-arch-independent.patch | 14 ++++
.../files/fs2_open-21.4.1-version-fix.patch | 9 +++
games-engines/fs2_open/fs2_open-21.4.1.ebuild | 85 ++++++++++++++++++++++
4 files changed, 111 insertions(+)
diff --git a/games-engines/fs2_open/Manifest b/games-engines/fs2_open/Manifest
new file mode 100644
index 000000000..9a924eb22
--- /dev/null
+++ b/games-engines/fs2_open/Manifest
@@ -0,0 +1,3 @@
+DIST fs2_open-21.4.1-cmake_external_rpavlik-cmake-modules.tar.gz 267464 BLAKE2B d63fa3867aad5fad7bd5d20845dd8d6a6698d59dc30dc511704f3c74bbe958bb6d36160bae3ef5c01027719c50d18e4d24209ea5811c6a52c5af4d3de2a587e9 SHA512 0bb03e2a1c0cafa80849163455cdb5fc5c7200e51f18f0354c36f251b51156f86a04a9f87cd17e2942d14ae8767d8df756062fbcff9b37f04e8399b2e37d306f
+DIST fs2_open-21.4.1-lib_libRocket.tar.gz 2417905 BLAKE2B 0e5ac40b0e811b9213fb84f6f2f0ef38ad7d562ae671e865d96e40615c2d67213905ce153a69192c0b53a3e4f0d1aef077c0769e46d308adf9210c0c9d1fe7c2 SHA512 700e242ecb5207faf729ca7d23ac4f28be819c0ef7a0ba51ca18de1592f1016040cd5e4c1c75a573f91cea69dd43549966ac089804a52c0f1b0cfbaabefc4346
+DIST fs2_open-21.4.1.tar.gz 10441595 BLAKE2B ae59cea98420cbdd6f18832fa0b8ba332993db03a53cbea43a96827dc4c7da375b14694ce60b1633d8275daa88ac32029be7b8211b7efd427baaffdd784720d9 SHA512 a4e6821ee2513cabf8b521f672c36c45aca8fc83fd6901ba19f2c0c0c27b3516c60dabfec1bfae43d82da94c628b9160c447ce853c9927dbb5901c7298986226
diff --git a/games-engines/fs2_open/files/fs2_open-21.4.1-make-arch-independent.patch b/games-engines/fs2_open/files/fs2_open-21.4.1-make-arch-independent.patch
new file mode 100644
index 000000000..e03b59bb3
--- /dev/null
+++ b/games-engines/fs2_open/files/fs2_open-21.4.1-make-arch-independent.patch
@@ -0,0 +1,14 @@
+--- fs2_open-21.4.1/cmake/version.cmake 2021-05-22 20:20:18.448441242 +0200
++++ fs2_open-21.4.1/cmake/version.cmake 2021-05-22 20:21:05.493447003 +0200
+@@ -35,11 +35,6 @@
+ SET(FSO_BINARY_SUFFIX "${FSO_VERSION_MAJOR}_${FSO_VERSION_MINOR}_${FSO_VERSION_BUILD}_${FSO_VERSION_REVISION_STR}")
+ ENDIF()
+
+-IF(IS_64BIT)
+- # This is a 64-bit builds
+- SET(FSO_BINARY_SUFFIX "${FSO_BINARY_SUFFIX}_x64")
+-ENDIF()
+-
+ IF (NOT "${FSO_INSTRUCTION_SET}" STREQUAL "")
+ SET(FSO_BINARY_SUFFIX "${FSO_BINARY_SUFFIX}_${FSO_INSTRUCTION_SET}")
+ ENDIF()
diff --git a/games-engines/fs2_open/files/fs2_open-21.4.1-version-fix.patch b/games-engines/fs2_open/files/fs2_open-21.4.1-version-fix.patch
new file mode 100644
index 000000000..f3812dc8e
--- /dev/null
+++ b/games-engines/fs2_open/files/fs2_open-21.4.1-version-fix.patch
@@ -0,0 +1,9 @@
+--- fs2_open-21.4.1/version_override.cmake 2022-03-25 22:22:13.424199518 +0100
++++ fs2_open-21.4.1/version_override.cmake 2022-03-25 22:22:30.378200320 +0100
+@@ -1,5 +1,5 @@
+ set(FSO_VERSION_MAJOR 21)
+ set(FSO_VERSION_MINOR 4)
+-set(FSO_VERSION_BUILD 0)
++set(FSO_VERSION_BUILD 1)
+ set(FSO_VERSION_REVISION 0)
+ set(FSO_VERSION_REVISION_STR )
diff --git a/games-engines/fs2_open/fs2_open-21.4.1.ebuild b/games-engines/fs2_open/fs2_open-21.4.1.ebuild
new file mode 100644
index 000000000..7a2ae2cd9
--- /dev/null
+++ b/games-engines/fs2_open/fs2_open-21.4.1.ebuild
@@ -0,0 +1,85 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+# Replace "." with "_" in version
+_PV=${PV//./_}
+
+# Current hashes of external repositories:
+HASH_LIBROCKET="ecd648a43aff8a9f3daf064d75ca5725237d5b38"
+HASH_CMAKE_MODULES="7cef9577d6fc35057ea57f46b4986a8a28aeff50"
+
+DESCRIPTION="FreeSpace2 Source Code Project game engine"
+HOMEPAGE="https://github.com/scp-fs2open/fs2open.github.com/"
+SRC_URI="
+ https://github.com/scp-fs2open/fs2open.github.com/archive/refs/tags/release_${_PV}.tar.gz -> ${P}.tar.gz
+ https://github.com/asarium/libRocket/archive/${HASH_LIBROCKET}.tar.gz -> ${P}-lib_libRocket.tar.gz
+ https://github.com/asarium/cmake-modules/archive/${HASH_CMAKE_MODULES}.tar.gz -> ${P}-cmake_external_rpavlik-cmake-modules.tar.gz
+"
+
+LICENSE="Unlicense MIT Boost-1.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+DEPEND="
+ media-libs/libjpeg-turbo
+ media-libs/libpng
+ media-libs/libtheora
+ media-libs/libvorbis
+ >=dev-lang/lua-5.1.0:*
+ media-libs/mesa
+ media-libs/openal
+ media-libs/libsdl2
+ media-libs/glu
+ dev-libs/jansson
+ app-arch/lz4
+"
+RDEPEND="${DEPEND}"
+BDEPEND=""
+
+CMAKE_BUILD_TYPE=Release
+S="${WORKDIR}/fs2open.github.com-release_${_PV}"
+
+src_unpack() {
+ unpack ${P}.tar.gz
+
+ cd "${S}" || die
+ local list=(
+ lib_libRocket
+ cmake_external_rpavlik-cmake-modules
+ )
+
+ local i
+ for i in "${list[@]}"; do
+ tar xf "${DISTDIR}/${P}-${i}.tar.gz" --strip-components 1 -C "${i//_//}" ||
+ die "Failed to unpack ${P}-${i}.tar.gz"
+ done
+}
+
+src_prepare() {
+ eapply "${FILESDIR}/${P}-make-arch-independent.patch"
+ eapply "${FILESDIR}/${P}-version-fix.patch"
+ eapply_user
+ cmake_src_prepare
+}
+
+src_install() {
+ exeinto "/opt/${PN}"
+ doexe "${BUILD_DIR}/bin/${PN}_${_PV}"
+ insinto "/opt/${PN}"
+ doins "${BUILD_DIR}/bin/libRocketControls.so"
+ doins "${BUILD_DIR}/bin/libRocketControlsLua.so"
+ doins "${BUILD_DIR}/bin/libRocketCore.so"
+ doins "${BUILD_DIR}/bin/libRocketCoreLua.so"
+ doins "${BUILD_DIR}/bin/libRocketDebugger.so"
+ doins "${BUILD_DIR}/bin/libdiscord-rpc.so"
+}
+
+pkg_postinst() {
+ einfo "This package only generates the engine binary."
+ einfo "The retail Freespace 2 data is required to play the"
+ einfo "original game and most mods."
+}
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: games-engines/fs2_open/files/, games-engines/fs2_open/
@ 2022-03-26 11:33 Jonas Frei
0 siblings, 0 replies; 7+ messages in thread
From: Jonas Frei @ 2022-03-26 11:33 UTC (permalink / raw
To: gentoo-commits
commit: 1372d310aa47be73b4b4c065922c855232ad3659
Author: Jonas Frei <freijon <AT> pm <DOT> me>
AuthorDate: Sat Mar 26 11:33:28 2022 +0000
Commit: Jonas Frei <freijon <AT> pm <DOT> me>
CommitDate: Sat Mar 26 11:33:28 2022 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=1372d310
games-engines/fs2_open: Improved/added various dependencies
Bug: https://bugs.gentoo.org/836151
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Jonas Frei <freijon <AT> pm.me>
.../files/fs2_open-21.4.1-dont-build-lz4.patch | 9 +++++++++
...s2_open-21.4.1.ebuild => fs2_open-21.4.1-r1.ebuild} | 18 +++++++++++-------
2 files changed, 20 insertions(+), 7 deletions(-)
diff --git a/games-engines/fs2_open/files/fs2_open-21.4.1-dont-build-lz4.patch b/games-engines/fs2_open/files/fs2_open-21.4.1-dont-build-lz4.patch
new file mode 100644
index 000000000..bfae2ea39
--- /dev/null
+++ b/games-engines/fs2_open/files/fs2_open-21.4.1-dont-build-lz4.patch
@@ -0,0 +1,9 @@
+--- fs2_open-21.4.1/lib/CMakeLists.txt 2021-11-01 18:00:53.000000000 +0100
++++ fs2_open-21.4.1/lib/CMakeLists.txt 2022-03-26 11:34:48.746075280 +0100
+@@ -50,5 +50,3 @@
+ add_subdirectory(mdns)
+
+ add_subdirectory(variant)
+-
+-ADD_SUBDIRECTORY(lz4)
+\ No newline at end of file
diff --git a/games-engines/fs2_open/fs2_open-21.4.1.ebuild b/games-engines/fs2_open/fs2_open-21.4.1-r1.ebuild
similarity index 94%
rename from games-engines/fs2_open/fs2_open-21.4.1.ebuild
rename to games-engines/fs2_open/fs2_open-21.4.1-r1.ebuild
index 15c8490c8..d96915f96 100644
--- a/games-engines/fs2_open/fs2_open-21.4.1.ebuild
+++ b/games-engines/fs2_open/fs2_open-21.4.1-r1.ebuild
@@ -5,6 +5,9 @@ EAPI=8
inherit cmake
+DESCRIPTION="FreeSpace2 Source Code Project game engine"
+HOMEPAGE="https://github.com/scp-fs2open/fs2open.github.com/"
+
# Replace "." with "_" in version
_PV=${PV//./_}
@@ -12,8 +15,6 @@ _PV=${PV//./_}
HASH_LIBROCKET="ecd648a43aff8a9f3daf064d75ca5725237d5b38"
HASH_CMAKE_MODULES="7cef9577d6fc35057ea57f46b4986a8a28aeff50"
-DESCRIPTION="FreeSpace2 Source Code Project game engine"
-HOMEPAGE="https://github.com/scp-fs2open/fs2open.github.com/"
SRC_URI="
https://github.com/scp-fs2open/fs2open.github.com/archive/refs/tags/release_${_PV}.tar.gz -> ${P}.tar.gz
https://github.com/asarium/libRocket/archive/${HASH_LIBROCKET}.tar.gz -> ${P}-ext_libRocket.tar.gz
@@ -25,21 +26,24 @@ SLOT="0"
KEYWORDS="~amd64"
DEPEND="
+ app-arch/lz4
+ <dev-lang/lua-5.1.6:5.1
+ dev-libs/jansson
+ media-libs/freetype:2
+ media-libs/glu
media-libs/libjpeg-turbo
media-libs/libpng
+ media-libs/libsdl2
media-libs/libtheora
media-libs/libvorbis
- >=dev-lang/lua-5.1.0:*
media-libs/mesa
media-libs/openal
- media-libs/libsdl2
- media-libs/glu
- dev-libs/jansson
- app-arch/lz4
+ media-video/ffmpeg
"
RDEPEND="${DEPEND}"
BDEPEND=""
PATCHES=(
+ "${FILESDIR}/${P}-dont-build-lz4.patch"
"${FILESDIR}/${P}-make-arch-independent.patch"
"${FILESDIR}/${P}-version-fix.patch"
)
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: games-engines/fs2_open/files/, games-engines/fs2_open/
@ 2022-08-07 4:23 Jonas Frei
0 siblings, 0 replies; 7+ messages in thread
From: Jonas Frei @ 2022-08-07 4:23 UTC (permalink / raw
To: gentoo-commits
commit: c22890acee0bc64ebedd88da87fc7680ff5e68a8
Author: Jonas Frei <freijon <AT> pm <DOT> me>
AuthorDate: Sun Aug 7 04:22:54 2022 +0000
Commit: Jonas Frei <freijon <AT> pm <DOT> me>
CommitDate: Sun Aug 7 04:22:54 2022 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=c22890ac
games-engines/fs2_open: add 22.2.0
Signed-off-by: Jonas Frei <freijon <AT> pm.me>
games-engines/fs2_open/Manifest | 3 +
.../files/fs2_open-22.2.0-disable-discord.patch | 55 +++++++++++
.../files/fs2_open-22.2.0-dont-build-lz4.patch | 9 ++
.../fs2_open-22.2.0-make-arch-independent.patch | 14 +++
games-engines/fs2_open/fs2_open-22.2.0.ebuild | 103 +++++++++++++++++++++
5 files changed, 184 insertions(+)
diff --git a/games-engines/fs2_open/Manifest b/games-engines/fs2_open/Manifest
index e84657f91..612408bc3 100644
--- a/games-engines/fs2_open/Manifest
+++ b/games-engines/fs2_open/Manifest
@@ -4,3 +4,6 @@ DIST fs2_open-21.4.1.tar.gz 10441595 BLAKE2B ae59cea98420cbdd6f18832fa0b8ba33299
DIST fs2_open-22.0.0-ext_libRocket.tar.gz 2417905 BLAKE2B 0e5ac40b0e811b9213fb84f6f2f0ef38ad7d562ae671e865d96e40615c2d67213905ce153a69192c0b53a3e4f0d1aef077c0769e46d308adf9210c0c9d1fe7c2 SHA512 700e242ecb5207faf729ca7d23ac4f28be819c0ef7a0ba51ca18de1592f1016040cd5e4c1c75a573f91cea69dd43549966ac089804a52c0f1b0cfbaabefc4346
DIST fs2_open-22.0.0-ext_rpavlik-cmake-modules.tar.gz 267464 BLAKE2B d63fa3867aad5fad7bd5d20845dd8d6a6698d59dc30dc511704f3c74bbe958bb6d36160bae3ef5c01027719c50d18e4d24209ea5811c6a52c5af4d3de2a587e9 SHA512 0bb03e2a1c0cafa80849163455cdb5fc5c7200e51f18f0354c36f251b51156f86a04a9f87cd17e2942d14ae8767d8df756062fbcff9b37f04e8399b2e37d306f
DIST fs2_open-22.0.0.tar.gz 10573800 BLAKE2B b75bd9e44679bf2ad441178b7f8175f4429e321d2feeddf2cf5b4391e51f82c15250c36b73f3750326b1cd3ce71ae319042f57432d48a41b5abab9e30a4a76ba SHA512 e57972348073571947ff88e5a392ae0b4eec9d81cbcfe3d0ff3c2b844dd676cb33f727ddb32a0544e9cd3f1ae9b614429ea137b8921ef625fad27a53f1875081
+DIST fs2_open-22.2.0-ext_libRocket.tar.gz 2417905 BLAKE2B 0e5ac40b0e811b9213fb84f6f2f0ef38ad7d562ae671e865d96e40615c2d67213905ce153a69192c0b53a3e4f0d1aef077c0769e46d308adf9210c0c9d1fe7c2 SHA512 700e242ecb5207faf729ca7d23ac4f28be819c0ef7a0ba51ca18de1592f1016040cd5e4c1c75a573f91cea69dd43549966ac089804a52c0f1b0cfbaabefc4346
+DIST fs2_open-22.2.0-ext_rpavlik-cmake-modules.tar.gz 267464 BLAKE2B d63fa3867aad5fad7bd5d20845dd8d6a6698d59dc30dc511704f3c74bbe958bb6d36160bae3ef5c01027719c50d18e4d24209ea5811c6a52c5af4d3de2a587e9 SHA512 0bb03e2a1c0cafa80849163455cdb5fc5c7200e51f18f0354c36f251b51156f86a04a9f87cd17e2942d14ae8767d8df756062fbcff9b37f04e8399b2e37d306f
+DIST fs2_open-22.2.0.tar.gz 10690003 BLAKE2B 9d751407ee06877e27e18a9295370ed2c97a48ac65c65757ea57ee1f1d7ba36e07cddb9812a62a763eefb842d5df71151243a81e97aa664a8c3123b7b7913255 SHA512 e72ad40f8f52430549f76330f8b34255ae68fff53ced76f56b04ef19d7ce510026c3bb38fcebdb6f3bfaf7db59ca89df5686e8480e883e01b6408d21cb08cc77
diff --git a/games-engines/fs2_open/files/fs2_open-22.2.0-disable-discord.patch b/games-engines/fs2_open/files/fs2_open-22.2.0-disable-discord.patch
new file mode 100644
index 000000000..1b145d7da
--- /dev/null
+++ b/games-engines/fs2_open/files/fs2_open-22.2.0-disable-discord.patch
@@ -0,0 +1,55 @@
+--- fs2_open/code/CMakeLists.txt 2022-03-27 21:03:27.290788070 +0200
++++ fs2_open/code/CMakeLists.txt 2022-03-27 21:06:50.271782416 +0200
+@@ -41,8 +41,6 @@
+
+ target_link_libraries(code PUBLIC md5)
+
+-target_link_libraries(code PUBLIC discord-rpc)
+-
+ target_link_libraries(code PUBLIC libRocket)
+
+ target_link_libraries(code PUBLIC pcp)
+--- fs2_open/code/source_groups.cmake 2021-11-01 18:00:53.000000000 +0100
++++ fs2_open/code/source_groups.cmake 2022-03-27 21:35:47.595734025 +0200
+@@ -705,11 +705,6 @@
+ libs/antlr/ErrorListener.h
+ )
+
+-add_file_folder("Libs\\\\Discord"
+- libs/discord/discord.cpp
+- libs/discord/discord.h
+-)
+-
+ if (FSO_BUILD_WITH_FFMPEG)
+ add_file_folder("Libs\\\\FFmpeg"
+ libs/ffmpeg/FFmpeg.cpp
+--- fs2_open/lib/CMakeLists.txt 2022-03-27 21:03:27.287788070 +0200
++++ fs2_open/lib/CMakeLists.txt 2022-03-27 21:07:12.849781787 +0200
+@@ -33,8 +33,6 @@
+ include(FFmpeg.cmake)
+ endif()
+
+-add_subdirectory(discord)
+-
+ include(libRocket.cmake)
+
+ add_subdirectory(libpcp)
+--- fs2_open/freespace2/freespace.cpp 2021-11-01 18:00:53.000000000 +0100
++++ fs2_open/freespace2/freespace.cpp 2022-03-27 21:07:50.111780749 +0200
+@@ -83,7 +83,6 @@
+ #include "jumpnode/jumpnode.h"
+ #include "lab/labv2.h"
+ #include "lab/wmcgui.h" //So that GUI_System can be initialized
+-#include "libs/discord/discord.h"
+ #include "libs/ffmpeg/FFmpeg.h"
+ #include "lighting/lighting.h"
+ #include "localization/localize.h"
+@@ -1987,8 +1987,6 @@
+ #ifdef WITH_FFMPEG
+ libs::ffmpeg::initialize();
+ #endif
+-
+- libs::discord::init();
+ }
+
+ nprintf(("General", "Ships.tbl is : %s\n", Game_ships_tbl_valid ? "VALID" : "INVALID!!!!"));
diff --git a/games-engines/fs2_open/files/fs2_open-22.2.0-dont-build-lz4.patch b/games-engines/fs2_open/files/fs2_open-22.2.0-dont-build-lz4.patch
new file mode 100644
index 000000000..60dc982a1
--- /dev/null
+++ b/games-engines/fs2_open/files/fs2_open-22.2.0-dont-build-lz4.patch
@@ -0,0 +1,9 @@
+--- fs2_open/lib/CMakeLists.txt 2022-04-01 23:30:46.000000000 +0200
++++ fs2_open/lib/CMakeLists.txt 2022-04-02 08:20:16.336924470 +0200
+@@ -52,5 +52,3 @@
+ add_subdirectory(variant)
+
+ add_subdirectory(any)
+-
+-ADD_SUBDIRECTORY(lz4)
+\ No newline at end of file
diff --git a/games-engines/fs2_open/files/fs2_open-22.2.0-make-arch-independent.patch b/games-engines/fs2_open/files/fs2_open-22.2.0-make-arch-independent.patch
new file mode 100644
index 000000000..c2f5d7f36
--- /dev/null
+++ b/games-engines/fs2_open/files/fs2_open-22.2.0-make-arch-independent.patch
@@ -0,0 +1,14 @@
+--- fs2_open/cmake/version.cmake 2021-05-22 20:20:18.448441242 +0200
++++ fs2_open/cmake/version.cmake 2021-05-22 20:21:05.493447003 +0200
+@@ -35,11 +35,6 @@
+ SET(FSO_BINARY_SUFFIX "${FSO_VERSION_MAJOR}_${FSO_VERSION_MINOR}_${FSO_VERSION_BUILD}_${FSO_VERSION_REVISION_STR}")
+ ENDIF()
+
+-IF(IS_64BIT)
+- # This is a 64-bit builds
+- SET(FSO_BINARY_SUFFIX "${FSO_BINARY_SUFFIX}_x64")
+-ENDIF()
+-
+ IF (NOT "${FSO_INSTRUCTION_SET}" STREQUAL "")
+ SET(FSO_BINARY_SUFFIX "${FSO_BINARY_SUFFIX}_${FSO_INSTRUCTION_SET}")
+ ENDIF()
diff --git a/games-engines/fs2_open/fs2_open-22.2.0.ebuild b/games-engines/fs2_open/fs2_open-22.2.0.ebuild
new file mode 100644
index 000000000..8c63d4680
--- /dev/null
+++ b/games-engines/fs2_open/fs2_open-22.2.0.ebuild
@@ -0,0 +1,103 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="FreeSpace2 Source Code Project game engine"
+HOMEPAGE="https://github.com/scp-fs2open/fs2open.github.com/"
+
+# Replace "." with "_" in version
+_PV=${PV//./_}
+
+# Current hashes of external repositories:
+HASH_LIBROCKET="ecd648a43aff8a9f3daf064d75ca5725237d5b38"
+HASH_CMAKE_MODULES="7cef9577d6fc35057ea57f46b4986a8a28aeff50"
+
+SRC_URI="
+ https://github.com/scp-fs2open/fs2open.github.com/archive/refs/tags/release_${_PV}.tar.gz -> ${P}.tar.gz
+ https://github.com/asarium/libRocket/archive/${HASH_LIBROCKET}.tar.gz -> ${P}-ext_libRocket.tar.gz
+ https://github.com/asarium/cmake-modules/archive/${HASH_CMAKE_MODULES}.tar.gz -> ${P}-ext_rpavlik-cmake-modules.tar.gz
+"
+
+LICENSE="Unlicense MIT Boost-1.0"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="clang debug discord"
+
+DEPEND="
+ app-arch/lz4
+ <dev-lang/lua-5.1.6:5.1
+ dev-libs/jansson
+ media-libs/freetype:2
+ media-libs/glu
+ media-libs/libjpeg-turbo
+ media-libs/libpng
+ media-libs/libsdl2
+ media-libs/libtheora
+ media-libs/libvorbis
+ media-libs/mesa
+ media-libs/openal
+ media-video/ffmpeg
+"
+RDEPEND="${DEPEND}"
+BDEPEND="
+ dev-util/cmake
+ clang? ( sys-devel/clang:= )
+"
+PATCHES=(
+ "${FILESDIR}/${P}-dont-build-lz4.patch"
+ "${FILESDIR}/${P}-make-arch-independent.patch"
+)
+
+CMAKE_BUILD_TYPE=Release
+
+S="${WORKDIR}/fs2open.github.com-release_${_PV}"
+
+src_unpack() {
+ unpack ${A}
+ mv libRocket-${HASH_LIBROCKET}/* "${S}/lib/libRocket/" || die
+ mv cmake-modules-${HASH_CMAKE_MODULES}/* "${S}/cmake/external/rpavlik-cmake-modules/" || die
+}
+
+src_configure() {
+ if use clang ; then
+ # Force clang
+ einfo "Enforcing the use of clang due to USE=clang ..."
+ AR=llvm-ar
+ CC=${CHOST}-clang
+ CXX=${CHOST}-clang++
+ LDFLAGS+=" -fuse-ld=lld"
+ fi
+ cmake_src_configure
+}
+
+src_prepare() {
+ use discord || eapply "${FILESDIR}/${P}-disable-discord.patch"
+ eapply_user
+ cmake_src_prepare
+ use debug && CMAKE_BUILD_TYPE=Debug
+}
+
+src_install() {
+ exeinto "/opt/${PN}"
+ if use debug ; then
+ doexe "${BUILD_DIR}/bin/${PN}_${_PV}-DEBUG"
+ else
+ doexe "${BUILD_DIR}/bin/${PN}_${_PV}"
+ fi
+ insinto "/opt/${PN}"
+ doins "${BUILD_DIR}/bin/libRocketControls.so"
+ doins "${BUILD_DIR}/bin/libRocketControlsLua.so"
+ doins "${BUILD_DIR}/bin/libRocketCore.so"
+ doins "${BUILD_DIR}/bin/libRocketCoreLua.so"
+ doins "${BUILD_DIR}/bin/libRocketDebugger.so"
+ use discord && doins "${BUILD_DIR}/bin/libdiscord-rpc.so"
+}
+
+pkg_postinst() {
+ einfo "This package only generates the engine binary."
+ einfo "The retail Freespace 2 data is required to play the"
+ einfo "original game and most mods."
+}
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: games-engines/fs2_open/files/, games-engines/fs2_open/
@ 2023-10-14 7:40 Jonas Frei
0 siblings, 0 replies; 7+ messages in thread
From: Jonas Frei @ 2023-10-14 7:40 UTC (permalink / raw
To: gentoo-commits
commit: 25ef3038fb9713eceab53e679c201d671fe3dcd2
Author: Jonas Frei <freijon <AT> pm <DOT> me>
AuthorDate: Sat Oct 14 07:40:10 2023 +0000
Commit: Jonas Frei <freijon <AT> pm <DOT> me>
CommitDate: Sat Oct 14 07:40:17 2023 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=25ef3038
games-engines/fs2_open: drop 22.2.0
Signed-off-by: Jonas Frei <freijon <AT> pm.me>
games-engines/fs2_open/Manifest | 3 -
.../files/fs2_open-22.2.0-disable-discord.patch | 55 -----------
.../files/fs2_open-22.2.0-dont-build-lz4.patch | 9 --
.../fs2_open-22.2.0-make-arch-independent.patch | 14 ---
games-engines/fs2_open/fs2_open-22.2.0.ebuild | 103 ---------------------
5 files changed, 184 deletions(-)
diff --git a/games-engines/fs2_open/Manifest b/games-engines/fs2_open/Manifest
index 668c54b081..45d23ae1f0 100644
--- a/games-engines/fs2_open/Manifest
+++ b/games-engines/fs2_open/Manifest
@@ -1,6 +1,3 @@
-DIST fs2_open-22.2.0-ext_libRocket.tar.gz 2417905 BLAKE2B 0e5ac40b0e811b9213fb84f6f2f0ef38ad7d562ae671e865d96e40615c2d67213905ce153a69192c0b53a3e4f0d1aef077c0769e46d308adf9210c0c9d1fe7c2 SHA512 700e242ecb5207faf729ca7d23ac4f28be819c0ef7a0ba51ca18de1592f1016040cd5e4c1c75a573f91cea69dd43549966ac089804a52c0f1b0cfbaabefc4346
-DIST fs2_open-22.2.0-ext_rpavlik-cmake-modules.tar.gz 267464 BLAKE2B d63fa3867aad5fad7bd5d20845dd8d6a6698d59dc30dc511704f3c74bbe958bb6d36160bae3ef5c01027719c50d18e4d24209ea5811c6a52c5af4d3de2a587e9 SHA512 0bb03e2a1c0cafa80849163455cdb5fc5c7200e51f18f0354c36f251b51156f86a04a9f87cd17e2942d14ae8767d8df756062fbcff9b37f04e8399b2e37d306f
-DIST fs2_open-22.2.0.tar.gz 10690003 BLAKE2B 9d751407ee06877e27e18a9295370ed2c97a48ac65c65757ea57ee1f1d7ba36e07cddb9812a62a763eefb842d5df71151243a81e97aa664a8c3123b7b7913255 SHA512 e72ad40f8f52430549f76330f8b34255ae68fff53ced76f56b04ef19d7ce510026c3bb38fcebdb6f3bfaf7db59ca89df5686e8480e883e01b6408d21cb08cc77
DIST fs2_open-23.0.0-ext_libRocket.tar.gz 2417905 BLAKE2B 0e5ac40b0e811b9213fb84f6f2f0ef38ad7d562ae671e865d96e40615c2d67213905ce153a69192c0b53a3e4f0d1aef077c0769e46d308adf9210c0c9d1fe7c2 SHA512 700e242ecb5207faf729ca7d23ac4f28be819c0ef7a0ba51ca18de1592f1016040cd5e4c1c75a573f91cea69dd43549966ac089804a52c0f1b0cfbaabefc4346
DIST fs2_open-23.0.0-ext_rpavlik-cmake-modules.tar.gz 267464 BLAKE2B d63fa3867aad5fad7bd5d20845dd8d6a6698d59dc30dc511704f3c74bbe958bb6d36160bae3ef5c01027719c50d18e4d24209ea5811c6a52c5af4d3de2a587e9 SHA512 0bb03e2a1c0cafa80849163455cdb5fc5c7200e51f18f0354c36f251b51156f86a04a9f87cd17e2942d14ae8767d8df756062fbcff9b37f04e8399b2e37d306f
DIST fs2_open-23.0.0.tar.gz 12210430 BLAKE2B 95e5a4f328711a3915b2624941eb90810a19c4d8fe16edc0af47eec3cb1393be8379cd53f27cf378693ba711bd37f0fec360fda931ba17b883195f356a0f8dfc SHA512 efd3648986bb36f0b217ea033ab56ba7c1a705a0d9f16f0351a019d06276f68810729eb9749d1facbf8bc312114eb4e380b68049f5d30b410de2b28c5c67975e
diff --git a/games-engines/fs2_open/files/fs2_open-22.2.0-disable-discord.patch b/games-engines/fs2_open/files/fs2_open-22.2.0-disable-discord.patch
deleted file mode 100644
index 1b145d7da1..0000000000
--- a/games-engines/fs2_open/files/fs2_open-22.2.0-disable-discord.patch
+++ /dev/null
@@ -1,55 +0,0 @@
---- fs2_open/code/CMakeLists.txt 2022-03-27 21:03:27.290788070 +0200
-+++ fs2_open/code/CMakeLists.txt 2022-03-27 21:06:50.271782416 +0200
-@@ -41,8 +41,6 @@
-
- target_link_libraries(code PUBLIC md5)
-
--target_link_libraries(code PUBLIC discord-rpc)
--
- target_link_libraries(code PUBLIC libRocket)
-
- target_link_libraries(code PUBLIC pcp)
---- fs2_open/code/source_groups.cmake 2021-11-01 18:00:53.000000000 +0100
-+++ fs2_open/code/source_groups.cmake 2022-03-27 21:35:47.595734025 +0200
-@@ -705,11 +705,6 @@
- libs/antlr/ErrorListener.h
- )
-
--add_file_folder("Libs\\\\Discord"
-- libs/discord/discord.cpp
-- libs/discord/discord.h
--)
--
- if (FSO_BUILD_WITH_FFMPEG)
- add_file_folder("Libs\\\\FFmpeg"
- libs/ffmpeg/FFmpeg.cpp
---- fs2_open/lib/CMakeLists.txt 2022-03-27 21:03:27.287788070 +0200
-+++ fs2_open/lib/CMakeLists.txt 2022-03-27 21:07:12.849781787 +0200
-@@ -33,8 +33,6 @@
- include(FFmpeg.cmake)
- endif()
-
--add_subdirectory(discord)
--
- include(libRocket.cmake)
-
- add_subdirectory(libpcp)
---- fs2_open/freespace2/freespace.cpp 2021-11-01 18:00:53.000000000 +0100
-+++ fs2_open/freespace2/freespace.cpp 2022-03-27 21:07:50.111780749 +0200
-@@ -83,7 +83,6 @@
- #include "jumpnode/jumpnode.h"
- #include "lab/labv2.h"
- #include "lab/wmcgui.h" //So that GUI_System can be initialized
--#include "libs/discord/discord.h"
- #include "libs/ffmpeg/FFmpeg.h"
- #include "lighting/lighting.h"
- #include "localization/localize.h"
-@@ -1987,8 +1987,6 @@
- #ifdef WITH_FFMPEG
- libs::ffmpeg::initialize();
- #endif
--
-- libs::discord::init();
- }
-
- nprintf(("General", "Ships.tbl is : %s\n", Game_ships_tbl_valid ? "VALID" : "INVALID!!!!"));
diff --git a/games-engines/fs2_open/files/fs2_open-22.2.0-dont-build-lz4.patch b/games-engines/fs2_open/files/fs2_open-22.2.0-dont-build-lz4.patch
deleted file mode 100644
index 60dc982a17..0000000000
--- a/games-engines/fs2_open/files/fs2_open-22.2.0-dont-build-lz4.patch
+++ /dev/null
@@ -1,9 +0,0 @@
---- fs2_open/lib/CMakeLists.txt 2022-04-01 23:30:46.000000000 +0200
-+++ fs2_open/lib/CMakeLists.txt 2022-04-02 08:20:16.336924470 +0200
-@@ -52,5 +52,3 @@
- add_subdirectory(variant)
-
- add_subdirectory(any)
--
--ADD_SUBDIRECTORY(lz4)
-\ No newline at end of file
diff --git a/games-engines/fs2_open/files/fs2_open-22.2.0-make-arch-independent.patch b/games-engines/fs2_open/files/fs2_open-22.2.0-make-arch-independent.patch
deleted file mode 100644
index c2f5d7f36c..0000000000
--- a/games-engines/fs2_open/files/fs2_open-22.2.0-make-arch-independent.patch
+++ /dev/null
@@ -1,14 +0,0 @@
---- fs2_open/cmake/version.cmake 2021-05-22 20:20:18.448441242 +0200
-+++ fs2_open/cmake/version.cmake 2021-05-22 20:21:05.493447003 +0200
-@@ -35,11 +35,6 @@
- SET(FSO_BINARY_SUFFIX "${FSO_VERSION_MAJOR}_${FSO_VERSION_MINOR}_${FSO_VERSION_BUILD}_${FSO_VERSION_REVISION_STR}")
- ENDIF()
-
--IF(IS_64BIT)
-- # This is a 64-bit builds
-- SET(FSO_BINARY_SUFFIX "${FSO_BINARY_SUFFIX}_x64")
--ENDIF()
--
- IF (NOT "${FSO_INSTRUCTION_SET}" STREQUAL "")
- SET(FSO_BINARY_SUFFIX "${FSO_BINARY_SUFFIX}_${FSO_INSTRUCTION_SET}")
- ENDIF()
diff --git a/games-engines/fs2_open/fs2_open-22.2.0.ebuild b/games-engines/fs2_open/fs2_open-22.2.0.ebuild
deleted file mode 100644
index 8c63d4680d..0000000000
--- a/games-engines/fs2_open/fs2_open-22.2.0.ebuild
+++ /dev/null
@@ -1,103 +0,0 @@
-# Copyright 2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit cmake
-
-DESCRIPTION="FreeSpace2 Source Code Project game engine"
-HOMEPAGE="https://github.com/scp-fs2open/fs2open.github.com/"
-
-# Replace "." with "_" in version
-_PV=${PV//./_}
-
-# Current hashes of external repositories:
-HASH_LIBROCKET="ecd648a43aff8a9f3daf064d75ca5725237d5b38"
-HASH_CMAKE_MODULES="7cef9577d6fc35057ea57f46b4986a8a28aeff50"
-
-SRC_URI="
- https://github.com/scp-fs2open/fs2open.github.com/archive/refs/tags/release_${_PV}.tar.gz -> ${P}.tar.gz
- https://github.com/asarium/libRocket/archive/${HASH_LIBROCKET}.tar.gz -> ${P}-ext_libRocket.tar.gz
- https://github.com/asarium/cmake-modules/archive/${HASH_CMAKE_MODULES}.tar.gz -> ${P}-ext_rpavlik-cmake-modules.tar.gz
-"
-
-LICENSE="Unlicense MIT Boost-1.0"
-SLOT="0"
-KEYWORDS="~amd64"
-IUSE="clang debug discord"
-
-DEPEND="
- app-arch/lz4
- <dev-lang/lua-5.1.6:5.1
- dev-libs/jansson
- media-libs/freetype:2
- media-libs/glu
- media-libs/libjpeg-turbo
- media-libs/libpng
- media-libs/libsdl2
- media-libs/libtheora
- media-libs/libvorbis
- media-libs/mesa
- media-libs/openal
- media-video/ffmpeg
-"
-RDEPEND="${DEPEND}"
-BDEPEND="
- dev-util/cmake
- clang? ( sys-devel/clang:= )
-"
-PATCHES=(
- "${FILESDIR}/${P}-dont-build-lz4.patch"
- "${FILESDIR}/${P}-make-arch-independent.patch"
-)
-
-CMAKE_BUILD_TYPE=Release
-
-S="${WORKDIR}/fs2open.github.com-release_${_PV}"
-
-src_unpack() {
- unpack ${A}
- mv libRocket-${HASH_LIBROCKET}/* "${S}/lib/libRocket/" || die
- mv cmake-modules-${HASH_CMAKE_MODULES}/* "${S}/cmake/external/rpavlik-cmake-modules/" || die
-}
-
-src_configure() {
- if use clang ; then
- # Force clang
- einfo "Enforcing the use of clang due to USE=clang ..."
- AR=llvm-ar
- CC=${CHOST}-clang
- CXX=${CHOST}-clang++
- LDFLAGS+=" -fuse-ld=lld"
- fi
- cmake_src_configure
-}
-
-src_prepare() {
- use discord || eapply "${FILESDIR}/${P}-disable-discord.patch"
- eapply_user
- cmake_src_prepare
- use debug && CMAKE_BUILD_TYPE=Debug
-}
-
-src_install() {
- exeinto "/opt/${PN}"
- if use debug ; then
- doexe "${BUILD_DIR}/bin/${PN}_${_PV}-DEBUG"
- else
- doexe "${BUILD_DIR}/bin/${PN}_${_PV}"
- fi
- insinto "/opt/${PN}"
- doins "${BUILD_DIR}/bin/libRocketControls.so"
- doins "${BUILD_DIR}/bin/libRocketControlsLua.so"
- doins "${BUILD_DIR}/bin/libRocketCore.so"
- doins "${BUILD_DIR}/bin/libRocketCoreLua.so"
- doins "${BUILD_DIR}/bin/libRocketDebugger.so"
- use discord && doins "${BUILD_DIR}/bin/libdiscord-rpc.so"
-}
-
-pkg_postinst() {
- einfo "This package only generates the engine binary."
- einfo "The retail Freespace 2 data is required to play the"
- einfo "original game and most mods."
-}
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: games-engines/fs2_open/files/, games-engines/fs2_open/
@ 2024-06-30 15:57 Jonas Frei
0 siblings, 0 replies; 7+ messages in thread
From: Jonas Frei @ 2024-06-30 15:57 UTC (permalink / raw
To: gentoo-commits
commit: bafa5606c3fad7bb9320d961165f00bc8f36f215
Author: Jonas Frei <freijon <AT> pm <DOT> me>
AuthorDate: Sun Jun 30 15:46:12 2024 +0000
Commit: Jonas Frei <freijon <AT> pm <DOT> me>
CommitDate: Sun Jun 30 15:55:38 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=bafa5606
games-engines/fs2_open: add 24.0.2
Signed-off-by: Jonas Frei <freijon <AT> pm.me>
games-engines/fs2_open/Manifest | 3 +
.../fs2_open/files/fs2_open-24.0.2-deps-fix.patch | 183 +++++++++++++++++++++
.../files/fs2_open-24.0.2-disable-discord.patch | 175 ++++++++++++++++++++
.../files/fs2_open-24.0.2-dont-build-lz4.patch | 11 ++
.../fs2_open-24.0.2-make-arch-independent.patch | 16 ++
games-engines/fs2_open/fs2_open-24.0.2.ebuild | 103 ++++++++++++
6 files changed, 491 insertions(+)
diff --git a/games-engines/fs2_open/Manifest b/games-engines/fs2_open/Manifest
index 972584170..a795abe59 100644
--- a/games-engines/fs2_open/Manifest
+++ b/games-engines/fs2_open/Manifest
@@ -4,3 +4,6 @@ DIST fs2_open-23.0.0.tar.gz 12210430 BLAKE2B 95e5a4f328711a3915b2624941eb90810a1
DIST fs2_open-23.2.1-ext_libRocket.tar.gz 2417905 BLAKE2B 0e5ac40b0e811b9213fb84f6f2f0ef38ad7d562ae671e865d96e40615c2d67213905ce153a69192c0b53a3e4f0d1aef077c0769e46d308adf9210c0c9d1fe7c2 SHA512 700e242ecb5207faf729ca7d23ac4f28be819c0ef7a0ba51ca18de1592f1016040cd5e4c1c75a573f91cea69dd43549966ac089804a52c0f1b0cfbaabefc4346
DIST fs2_open-23.2.1-ext_rpavlik-cmake-modules.tar.gz 267464 BLAKE2B d63fa3867aad5fad7bd5d20845dd8d6a6698d59dc30dc511704f3c74bbe958bb6d36160bae3ef5c01027719c50d18e4d24209ea5811c6a52c5af4d3de2a587e9 SHA512 0bb03e2a1c0cafa80849163455cdb5fc5c7200e51f18f0354c36f251b51156f86a04a9f87cd17e2942d14ae8767d8df756062fbcff9b37f04e8399b2e37d306f
DIST fs2_open-23.2.1.tar.gz 12091345 BLAKE2B a03179842d53dd429969b2863ab53f613b52bf70ff50d0991e0dd36a73ee0a2374a0d09e95a13410add9f8c4b955a49e9894b35b5ccb92982c63e06daec5694a SHA512 dfb4fe7c0f8048730e91e754754e26677706bb391c4d88ff7f4f6090d931db9dc2ca616dcd552d213d7c7de5b597a5cc43ab6bad0f422bc3e78dcbc15f64600b
+DIST fs2_open-24.0.2-ext_libRocket.tar.gz 2417905 BLAKE2B 0e5ac40b0e811b9213fb84f6f2f0ef38ad7d562ae671e865d96e40615c2d67213905ce153a69192c0b53a3e4f0d1aef077c0769e46d308adf9210c0c9d1fe7c2 SHA512 700e242ecb5207faf729ca7d23ac4f28be819c0ef7a0ba51ca18de1592f1016040cd5e4c1c75a573f91cea69dd43549966ac089804a52c0f1b0cfbaabefc4346
+DIST fs2_open-24.0.2-ext_rpavlik-cmake-modules.tar.gz 267464 BLAKE2B d63fa3867aad5fad7bd5d20845dd8d6a6698d59dc30dc511704f3c74bbe958bb6d36160bae3ef5c01027719c50d18e4d24209ea5811c6a52c5af4d3de2a587e9 SHA512 0bb03e2a1c0cafa80849163455cdb5fc5c7200e51f18f0354c36f251b51156f86a04a9f87cd17e2942d14ae8767d8df756062fbcff9b37f04e8399b2e37d306f
+DIST fs2_open-24.0.2.tar.gz 12652011 BLAKE2B f1ab67f8ceb9389a7087a1264897bc46748d8a7c18799941cca7acdbe64a718452fe755e6dc36067529e533ac881df2d6025147aa8e20aff8751e3a9eebbf1d0 SHA512 f0ffb5da42d0dba98f9f46432c09f8edc7e80f3e65a5d4c0ed9e2e37a26b63d67526982e7209edb6d6727b23d8ce1d75ccac6dcd8da74cd55f7e6fea52ad56d4
diff --git a/games-engines/fs2_open/files/fs2_open-24.0.2-deps-fix.patch b/games-engines/fs2_open/files/fs2_open-24.0.2-deps-fix.patch
new file mode 100644
index 000000000..f5e20ffe5
--- /dev/null
+++ b/games-engines/fs2_open/files/fs2_open-24.0.2-deps-fix.patch
@@ -0,0 +1,183 @@
+--- a/code/cmdline/cmdline.h
++++ b/code/cmdline/cmdline.h
+@@ -13,6 +13,8 @@
+ #define FS_CMDLINE_HEADER_FILE
+
+ #include <tl/optional.hpp>
++#include <cstdint>
++#include "globalincs/vmallocator.h"
+
+ int parse_cmdline(int argc, char *argv[]);
+
+--- a/code/cfile/cfile.h
++++ b/code/cfile/cfile.h
+@@ -15,6 +15,7 @@
+
+ #include "globalincs/pstypes.h"
+
++#include <array>
+ #include <ctime>
+ #include <stdexcept>
+ #include <memory>
+--- a/code/graphics/opengl/gropenglopenxr.h
++++ b/code/graphics/opengl/gropenglopenxr.h
+@@ -1,8 +1,11 @@
+ #pragma once
+
++#include <cstdint>
++#include <globalincs/vmallocator.h>
++
+ SCP_vector<const char*> gr_opengl_openxr_get_extensions();
+ bool gr_opengl_openxr_test_capabilities();
+ bool gr_opengl_openxr_create_session();
+ int64_t gr_opengl_openxr_get_swapchain_format(const SCP_vector<int64_t>& allowed);
+ bool gr_opengl_openxr_acquire_swapchain_buffers();
+-bool gr_opengl_openxr_flip();
+\ No newline at end of file
++bool gr_opengl_openxr_flip();
+--- a/code/libs/discord/discord.h
++++ b/code/libs/discord/discord.h
+@@ -1,5 +1,7 @@
+ #pragma once
+
++#include <globalincs/vmallocator.h>
++
+ namespace libs {
+ namespace discord {
+
+--- a/code/math/floating.h
++++ b/code/math/floating.h
+@@ -12,6 +12,7 @@
+ #ifndef _FLOATING_H
+ #define _FLOATING_H
+
++#include <algorithm>
+ #include <cmath>
+ #include <cfloat>
+ #include <limits>
+--- a/code/io/spacemouse.h
++++ b/code/io/spacemouse.h
+@@ -4,6 +4,8 @@
+ #include "math/vecmat.h"
+ #include "io/timer.h"
+
++#include <array>
++
+ struct hid_device_;
+ typedef hid_device_ hid_device;
+
+@@ -59,4 +61,4 @@
+ static std::unique_ptr<SpaceMouse> searchSpaceMice(int pollingFrequency = 10);
+ };
+ }
+-}
+\ No newline at end of file
++}
+--- a/code/network/multi_mdns.h
++++ b/code/network/multi_mdns.h
+@@ -1,6 +1,8 @@
+ #ifndef MULTI_MDNS_H
+ #define MULTI_MDNS_H
+
++#include <array>
++
+ bool multi_mdns_query();
+ void multi_mdns_query_do();
+ void multi_mdns_query_close();
+--- a/code/network/multi_pxo.h
++++ b/code/network/multi_pxo.h
+@@ -7,7 +7,7 @@
+ *
+ */
+
+-
++#include <globalincs/vmallocator.h>
+
+ #ifndef _PARALLAX_ONLINE_HEADER_FILE
+ #define _PARALLAX_ONLINE_HEADER_FILE
+--- a/code/network/psnet.h
++++ b/code/network/psnet2.h
+@@ -20,6 +20,7 @@
+ #include <netinet/in.h>
+ #include <cerrno>
+ #endif
++#include <iomanip>
+
+ #include "globalincs/pstypes.h"
+
+--- a/code/osapi/osapi.h
++++ b/code/osapi/osapi.h
+@@ -25,6 +25,7 @@
+ #include "globalincs/flagset.h"
+
+ #include <functional>
++#include <fstream>
+ #include <memory>
+
+ #include <SDL_events.h>
+--- a/code/scripting/lua/LuaTypes.h
++++ b/code/scripting/lua/LuaTypes.h
+@@ -1,5 +1,8 @@
+ #pragma once
+
++#include <iostream>
++#include <vector>
++
+ namespace luacpp {
+ class LuaValue;
+
+--- a/code/scripting/api/LuaPromise.h
++++ b/code/scripting/api/LuaPromise.h
+@@ -2,6 +2,9 @@
+
+ #include "scripting/lua/LuaTypes.h"
+
++#include <functional>
++#include <memory>
++
+ namespace scripting {
+ namespace api {
+
+--- a/code/mission/missionhotkey.h
++++ b/code/mission/missionhotkey.h
+@@ -14,6 +14,8 @@
+
+ #include "globalincs/globals.h"
+
++#include <globalincs/vmallocator.h>
++
+ #define MAX_LINES MAX_SHIPS // retail was 200, bump it to match MAX_SHIPS
+
+ // Types of items that can be in the hotkey list
+--- a/code/gamehelp/gameplayhelp.h
++++ b/code/gamehelp/gameplayhelp.h
+@@ -7,7 +7,7 @@
+ *
+ */
+
+-
++#include <globalincs/vmallocator.h>
+
+ #ifndef __GAMEPLAY_HELP_H__
+ #define __GAMEPLAY_HELP_H__
+--- a/code/cutscene/ffmpeg/FFMPEGDecoder.h
++++ b/code/cutscene/ffmpeg/FFMPEGDecoder.h
+@@ -2,6 +2,8 @@
+
+ #include "cutscene/Decoder.h"
+
++#include <thread>
++
+ namespace cutscene {
+ namespace ffmpeg {
+ struct InputStream;
+--- a/code/scripting/hook_conditions.h
++++ b/code/scripting/hook_conditions.h
+@@ -1,5 +1,6 @@
+ #pragma once
+
++#include <globalincs/vmallocator.h>
+ #include <linb/any.hpp>
+
+ class object;
+
diff --git a/games-engines/fs2_open/files/fs2_open-24.0.2-disable-discord.patch b/games-engines/fs2_open/files/fs2_open-24.0.2-disable-discord.patch
new file mode 100644
index 000000000..a1dbd0bde
--- /dev/null
+++ b/games-engines/fs2_open/files/fs2_open-24.0.2-disable-discord.patch
@@ -0,0 +1,175 @@
+--- a/freespace2/freespace.cpp
++++ b/freespace2/freespace.cpp
+@@ -84,7 +84,6 @@
+ #include "io/timer.h"
+ #include "jumpnode/jumpnode.h"
+ #include "lab/labv2.h"
+-#include "libs/discord/discord.h"
+ #include "libs/ffmpeg/FFmpeg.h"
+ #include "lighting/lighting.h"
+ #include "lighting/lighting_profiles.h"
+@@ -1987,9 +1986,6 @@
+ #ifdef WITH_FFMPEG
+ libs::ffmpeg::initialize();
+ #endif
+- if (Discord_presence) {
+- libs::discord::init();
+- }
+ }
+
+ mod_table_post_process();
+--- a/code/source_groups.cmake
++++ b/code/source_groups.cmake
+@@ -706,11 +706,6 @@
+ libs/antlr/ErrorListener.h
+ )
+
+-add_file_folder("Libs\\\\Discord"
+- libs/discord/discord.cpp
+- libs/discord/discord.h
+-)
+-
+ if (FSO_BUILD_WITH_FFMPEG)
+ add_file_folder("Libs\\\\FFmpeg"
+ libs/ffmpeg/FFmpeg.cpp
+--- a/code/mod_table/mod_table.h
++++ b/code/mod_table/mod_table.h
+@@ -124,7 +124,6 @@
+ } Shadow_disable_overrides;
+ extern float Thruster_easing;
+ extern bool Always_use_distant_firepoints;
+-extern bool Discord_presence;
+ extern bool Hotkey_always_hide_hidden_ships;
+ extern bool Use_weapon_class_sounds_for_hits_to_player;
+ extern bool SCPUI_loads_hi_res_animations;
+--- a/code/mod_table/mod_table.cpp
++++ b/code/mod_table/mod_table.cpp
+@@ -12,7 +12,6 @@
+ #include "globalincs/version.h"
+ #include "graphics/shadows.h"
+ #include "localization/localize.h"
+-#include "libs/discord/discord.h"
+ #include "mission/missioncampaign.h"
+ #include "mission/missionload.h"
+ #include "mission/missionmessage.h"
+@@ -135,7 +134,6 @@
+ shadow_disable_overrides Shadow_disable_overrides {false, false, false, false};
+ float Thruster_easing;
+ bool Always_use_distant_firepoints;
+-bool Discord_presence;
+ bool Hotkey_always_hide_hidden_ships;
+ bool Use_weapon_class_sounds_for_hits_to_player;
+ bool SCPUI_loads_hi_res_animations;
+@@ -145,29 +143,6 @@
+ std::array<std::tuple<float, float>, 6> Fred_spacemouse_nonlinearity;
+ bool Randomize_particle_rotation;
+
+-static auto DiscordOption __UNUSED = options::OptionBuilder<bool>("Game.Discord",
+- std::pair<const char*, int>{"Discord Presence", 1754},
+- std::pair<const char*, int>{"Toggle Discord Rich Presence", 1755})
+- .category("Game")
+- .default_val(Discord_presence)
+- .level(options::ExpertLevel::Advanced)
+- .importance(55)
+- .change_listener([](bool val, bool) {
+- if(Discord_presence){
+- if (!val) {
+- Discord_presence = false;
+- libs::discord::shutdown();
+- }
+- } else {
+- if (val) {
+- Discord_presence = true;
+- libs::discord::init();
+- }
+- }
+- return true;
+- })
+- .finish();
+-
+ void mod_table_set_version_flags();
+
+ SCP_vector<std::pair<SCP_string, gr_capability>> req_render_ext_pairs = {
+@@ -1264,10 +1239,6 @@
+ stuff_boolean(&Always_use_distant_firepoints);
+ }
+
+- if (optional_string("$Enable Discord rich presence:")) {
+- stuff_boolean(&Discord_presence);
+- }
+-
+ if (optional_string("$Always hide hidden ships in hotkey list:")) {
+ stuff_boolean(&Hotkey_always_hide_hidden_ships);
+ }
+@@ -1440,7 +1411,6 @@
+ Lead_indicator_behavior = leadIndicatorBehavior::DEFAULT;
+ Thruster_easing = 0;
+ Always_use_distant_firepoints = false;
+- Discord_presence = true;
+ Hotkey_always_hide_hidden_ships = false;
+ Use_weapon_class_sounds_for_hits_to_player = false;
+ SCPUI_loads_hi_res_animations = true;
+--- a/lib/CMakeLists.txt
++++ b/lib/CMakeLists.txt
+@@ -33,8 +33,6 @@
+ include(FFmpeg.cmake)
+ endif()
+
+-add_subdirectory(discord)
+-
+ include(libRocket.cmake)
+
+ add_subdirectory(libpcp)
+--- a/code/CMakeLists.txt
++++ b/code/CMakeLists.txt
+@@ -44,8 +44,6 @@
+
+ target_link_libraries(code PUBLIC md5)
+
+-target_link_libraries(code PUBLIC discord-rpc)
+-
+ target_link_libraries(code PUBLIC libRocket)
+
+ target_link_libraries(code PUBLIC pcp)
+--- a/code/scripting/api/libs/base.cpp
++++ b/code/scripting/api/libs/base.cpp
+@@ -8,7 +8,6 @@
+ #include "freespace.h"
+
+ #include "gamesequence/gamesequence.h"
+-#include "libs/discord/discord.h"
+ #include "mission/missiontraining.h"
+ #include "network/multi.h"
+ #include "parse/parselo.h"
+@@ -754,31 +753,6 @@
+ }
+
+
+-ADE_FUNC(setDiscordPresence,
+- l_Base,
+- "string DisplayText, [boolean Gameplay]",
+- "Sets the Discord presence to a specific string. If Gameplay is true then the string is ignored and presence will "
+- "be set as if the player is in-mission. The latter will fail if the player is not in a mission.",
+- nullptr,
+- "nothing")
+-{
+- const char* text;
+- bool gp = false;
+- if (!ade_get_args(L, "s|b", &text, &gp)) {
+- return ADE_RETURN_NIL;
+- }
+-
+- if (gp) {
+- if ((Game_mode & GM_IN_MISSION) != 0){
+- libs::discord::set_presence_gameplay();
+- }
+- } else {
+- libs::discord::set_presence_string(text);
+- }
+-
+- return ADE_RETURN_NIL;
+-}
+-
+ ADE_FUNC(hasFocus, l_Base, nullptr, "Returns if the game engine has focus or not", "boolean", "True if the game has focus, false if it has been lost")
+ {
+ return ade_set_args(L, "b", os_foreground());
diff --git a/games-engines/fs2_open/files/fs2_open-24.0.2-dont-build-lz4.patch b/games-engines/fs2_open/files/fs2_open-24.0.2-dont-build-lz4.patch
new file mode 100644
index 000000000..db2ac5e53
--- /dev/null
+++ b/games-engines/fs2_open/files/fs2_open-24.0.2-dont-build-lz4.patch
@@ -0,0 +1,11 @@
+--- a/lib/CMakeLists.txt
++++ b/lib/CMakeLists.txt
+@@ -53,8 +53,6 @@
+
+ add_subdirectory(optional)
+
+-ADD_SUBDIRECTORY(lz4)
+-
+ set(HIDAPI_WITH_LIBUSB OFF)
+ set(HIDAPI_WITH_HIDRAW ON)
+ add_subdirectory(hidapi)
diff --git a/games-engines/fs2_open/files/fs2_open-24.0.2-make-arch-independent.patch b/games-engines/fs2_open/files/fs2_open-24.0.2-make-arch-independent.patch
new file mode 100644
index 000000000..d40076211
--- /dev/null
+++ b/games-engines/fs2_open/files/fs2_open-24.0.2-make-arch-independent.patch
@@ -0,0 +1,16 @@
+--- a/cmake/version.cmake
++++ b/cmake/version.cmake
+@@ -35,13 +35,6 @@
+ SET(FSO_BINARY_SUFFIX "${FSO_VERSION_MAJOR}_${FSO_VERSION_MINOR}_${FSO_VERSION_BUILD}_${FSO_VERSION_REVISION_STR}")
+ ENDIF()
+
+-IF(IS_ARM64)
+- SET(FSO_BINARY_SUFFIX "${FSO_BINARY_SUFFIX}_arm64")
+-ELSEIF(IS_64BIT)
+- # This is a 64-bit builds
+- SET(FSO_BINARY_SUFFIX "${FSO_BINARY_SUFFIX}_x64")
+-ENDIF()
+-
+ IF (NOT "${FSO_INSTRUCTION_SET}" STREQUAL "")
+ SET(FSO_BINARY_SUFFIX "${FSO_BINARY_SUFFIX}_${FSO_INSTRUCTION_SET}")
+ ENDIF()
diff --git a/games-engines/fs2_open/fs2_open-24.0.2.ebuild b/games-engines/fs2_open/fs2_open-24.0.2.ebuild
new file mode 100644
index 000000000..41ceb753c
--- /dev/null
+++ b/games-engines/fs2_open/fs2_open-24.0.2.ebuild
@@ -0,0 +1,103 @@
+# Copyright 2022-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="FreeSpace2 Source Code Project game engine"
+HOMEPAGE="https://github.com/scp-fs2open/fs2open.github.com/"
+
+# Replace "." with "_" in version
+_PV=${PV//./_}
+
+# Current hashes of external repositories:
+HASH_LIBROCKET="ecd648a43aff8a9f3daf064d75ca5725237d5b38"
+HASH_CMAKE_MODULES="7cef9577d6fc35057ea57f46b4986a8a28aeff50"
+
+SRC_URI="
+ https://github.com/scp-fs2open/fs2open.github.com/archive/refs/tags/release_${_PV}.tar.gz -> ${P}.tar.gz
+ https://github.com/scp-fs2open/libRocket/archive/${HASH_LIBROCKET}.tar.gz -> ${P}-ext_libRocket.tar.gz
+ https://github.com/asarium/cmake-modules/archive/${HASH_CMAKE_MODULES}.tar.gz -> ${P}-ext_rpavlik-cmake-modules.tar.gz
+"
+
+S="${WORKDIR}/fs2open.github.com-release_${_PV}"
+
+LICENSE="Unlicense MIT Boost-1.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+IUSE="clang debug discord"
+
+DEPEND="
+ app-arch/lz4
+ <dev-lang/lua-5.1.6:5.1
+ dev-libs/jansson
+ media-libs/freetype:2
+ media-libs/glu
+ media-libs/libjpeg-turbo
+ media-libs/libpng
+ media-libs/libsdl2
+ media-libs/libtheora
+ media-libs/libvorbis
+ media-libs/mesa
+ media-libs/openal
+ media-video/ffmpeg
+"
+BDEPEND="
+ clang? ( sys-devel/clang:= )
+"
+PATCHES=(
+ "${FILESDIR}/${P}-deps-fix.patch"
+ "${FILESDIR}/${P}-dont-build-lz4.patch"
+ "${FILESDIR}/${P}-make-arch-independent.patch"
+)
+
+CMAKE_BUILD_TYPE=Release
+
+src_unpack() {
+ unpack ${A}
+ mv libRocket-${HASH_LIBROCKET}/* "${S}/lib/libRocket/" || die
+ mv cmake-modules-${HASH_CMAKE_MODULES}/* "${S}/cmake/external/rpavlik-cmake-modules/" || die
+}
+
+src_configure() {
+ if use clang ; then
+ # Force clang
+ einfo "Enforcing the use of clang due to USE=clang ..."
+ AR=llvm-ar
+ CC=${CHOST}-clang
+ CXX=${CHOST}-clang++
+ LDFLAGS+=" -fuse-ld=lld"
+ fi
+ cmake_src_configure
+}
+
+src_prepare() {
+ use discord || eapply "${FILESDIR}/${P}-disable-discord.patch"
+ eapply_user
+ cmake_src_prepare
+ use debug && CMAKE_BUILD_TYPE=Debug
+}
+
+src_install() {
+ exeinto "/opt/${PN}"
+ if use debug ; then
+ doexe "${BUILD_DIR}/bin/${PN}_${_PV}-DEBUG"
+ else
+ doexe "${BUILD_DIR}/bin/${PN}_${_PV}"
+ fi
+ insinto "/opt/${PN}"
+ doins "${BUILD_DIR}/bin/libRocketControls.so"
+ doins "${BUILD_DIR}/bin/libRocketControlsLua.so"
+ doins "${BUILD_DIR}/bin/libRocketCore.so"
+ doins "${BUILD_DIR}/bin/libRocketCoreLua.so"
+ doins "${BUILD_DIR}/bin/libRocketDebugger.so"
+ use discord && doins "${BUILD_DIR}/bin/libdiscord-rpc.so"
+}
+
+pkg_postinst() {
+ einfo "This package only generates the engine binary."
+ einfo "The retail Freespace 2 data is required to play the"
+ einfo "original game and most mods."
+}
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: games-engines/fs2_open/files/, games-engines/fs2_open/
@ 2024-06-30 15:57 Jonas Frei
0 siblings, 0 replies; 7+ messages in thread
From: Jonas Frei @ 2024-06-30 15:57 UTC (permalink / raw
To: gentoo-commits
commit: dbc770c6819624285f103e046077010174a5d3de
Author: Jonas Frei <freijon <AT> pm <DOT> me>
AuthorDate: Sun Jun 30 15:46:34 2024 +0000
Commit: Jonas Frei <freijon <AT> pm <DOT> me>
CommitDate: Sun Jun 30 15:55:41 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=dbc770c6
games-engines/fs2_open: drop 23.0.0
Signed-off-by: Jonas Frei <freijon <AT> pm.me>
games-engines/fs2_open/Manifest | 3 -
.../files/fs2_open-23.0.0-disable-discord.patch | 107 ---------------------
.../files/fs2_open-23.0.0-dont-build-lz4.patch | 9 --
.../fs2_open-23.0.0-make-arch-independent.patch | 14 ---
games-engines/fs2_open/fs2_open-23.0.0.ebuild | 99 -------------------
5 files changed, 232 deletions(-)
diff --git a/games-engines/fs2_open/Manifest b/games-engines/fs2_open/Manifest
index a795abe59..9fa5ce792 100644
--- a/games-engines/fs2_open/Manifest
+++ b/games-engines/fs2_open/Manifest
@@ -1,6 +1,3 @@
-DIST fs2_open-23.0.0-ext_libRocket.tar.gz 2417905 BLAKE2B 0e5ac40b0e811b9213fb84f6f2f0ef38ad7d562ae671e865d96e40615c2d67213905ce153a69192c0b53a3e4f0d1aef077c0769e46d308adf9210c0c9d1fe7c2 SHA512 700e242ecb5207faf729ca7d23ac4f28be819c0ef7a0ba51ca18de1592f1016040cd5e4c1c75a573f91cea69dd43549966ac089804a52c0f1b0cfbaabefc4346
-DIST fs2_open-23.0.0-ext_rpavlik-cmake-modules.tar.gz 267464 BLAKE2B d63fa3867aad5fad7bd5d20845dd8d6a6698d59dc30dc511704f3c74bbe958bb6d36160bae3ef5c01027719c50d18e4d24209ea5811c6a52c5af4d3de2a587e9 SHA512 0bb03e2a1c0cafa80849163455cdb5fc5c7200e51f18f0354c36f251b51156f86a04a9f87cd17e2942d14ae8767d8df756062fbcff9b37f04e8399b2e37d306f
-DIST fs2_open-23.0.0.tar.gz 12210430 BLAKE2B 95e5a4f328711a3915b2624941eb90810a19c4d8fe16edc0af47eec3cb1393be8379cd53f27cf378693ba711bd37f0fec360fda931ba17b883195f356a0f8dfc SHA512 efd3648986bb36f0b217ea033ab56ba7c1a705a0d9f16f0351a019d06276f68810729eb9749d1facbf8bc312114eb4e380b68049f5d30b410de2b28c5c67975e
DIST fs2_open-23.2.1-ext_libRocket.tar.gz 2417905 BLAKE2B 0e5ac40b0e811b9213fb84f6f2f0ef38ad7d562ae671e865d96e40615c2d67213905ce153a69192c0b53a3e4f0d1aef077c0769e46d308adf9210c0c9d1fe7c2 SHA512 700e242ecb5207faf729ca7d23ac4f28be819c0ef7a0ba51ca18de1592f1016040cd5e4c1c75a573f91cea69dd43549966ac089804a52c0f1b0cfbaabefc4346
DIST fs2_open-23.2.1-ext_rpavlik-cmake-modules.tar.gz 267464 BLAKE2B d63fa3867aad5fad7bd5d20845dd8d6a6698d59dc30dc511704f3c74bbe958bb6d36160bae3ef5c01027719c50d18e4d24209ea5811c6a52c5af4d3de2a587e9 SHA512 0bb03e2a1c0cafa80849163455cdb5fc5c7200e51f18f0354c36f251b51156f86a04a9f87cd17e2942d14ae8767d8df756062fbcff9b37f04e8399b2e37d306f
DIST fs2_open-23.2.1.tar.gz 12091345 BLAKE2B a03179842d53dd429969b2863ab53f613b52bf70ff50d0991e0dd36a73ee0a2374a0d09e95a13410add9f8c4b955a49e9894b35b5ccb92982c63e06daec5694a SHA512 dfb4fe7c0f8048730e91e754754e26677706bb391c4d88ff7f4f6090d931db9dc2ca616dcd552d213d7c7de5b597a5cc43ab6bad0f422bc3e78dcbc15f64600b
diff --git a/games-engines/fs2_open/files/fs2_open-23.0.0-disable-discord.patch b/games-engines/fs2_open/files/fs2_open-23.0.0-disable-discord.patch
deleted file mode 100644
index 6dc01d4a4..000000000
--- a/games-engines/fs2_open/files/fs2_open-23.0.0-disable-discord.patch
+++ /dev/null
@@ -1,107 +0,0 @@
---- fs2_open/freespace2/freespace.cpp 2023-02-11 13:13:50.000000000 +0100
-+++ fs2_open/freespace2/freespace.cpp 2023-02-11 13:32:41.501644997 +0100
-@@ -84,7 +84,6 @@
- #include "io/timer.h"
- #include "jumpnode/jumpnode.h"
- #include "lab/labv2.h"
--#include "libs/discord/discord.h"
- #include "libs/ffmpeg/FFmpeg.h"
- #include "lighting/lighting.h"
- #include "lighting/lighting_profiles.h"
-@@ -1987,9 +1986,6 @@
- #ifdef WITH_FFMPEG
- libs::ffmpeg::initialize();
- #endif
-- if (Discord_presence) {
-- libs::discord::init();
-- }
- }
-
- mod_table_post_process();
---- fs2_open/code/source_groups.cmake 2023-02-11 13:13:50.000000000 +0100
-+++ fs2_open/code/source_groups.cmake 2023-02-11 13:53:03.901702823 +0100
-@@ -706,11 +706,6 @@
- libs/antlr/ErrorListener.h
- )
-
--add_file_folder("Libs\\\\Discord"
-- libs/discord/discord.cpp
-- libs/discord/discord.h
--)
--
- if (FSO_BUILD_WITH_FFMPEG)
- add_file_folder("Libs\\\\FFmpeg"
- libs/ffmpeg/FFmpeg.cpp
---- fs2_open/code/mod_table/mod_table.h 2023-02-11 13:13:50.000000000 +0100
-+++ fs2_open/code/mod_table/mod_table.h 2023-02-11 13:57:44.162716081 +0100
-@@ -124,7 +124,6 @@
- } Shadow_disable_overrides;
- extern float Thruster_easing;
- extern bool Always_use_distant_firepoints;
--extern bool Discord_presence;
- extern bool Hotkey_always_hide_hidden_ships;
- extern bool Use_weapon_class_sounds_for_hits_to_player;
- extern bool SCPUI_loads_hi_res_animations;
---- fs2_open/code/mod_table/mod_table.cpp 2023-02-11 13:13:50.000000000 +0100
-+++ fs2_open/code/mod_table/mod_table.cpp 2023-02-11 13:57:15.745714737 +0100
-@@ -12,7 +12,6 @@
- #include "globalincs/version.h"
- #include "graphics/shadows.h"
- #include "localization/localize.h"
--#include "libs/discord/discord.h"
- #include "mission/missioncampaign.h"
- #include "mission/missionload.h"
- #include "mission/missionmessage.h"
-@@ -128,34 +127,10 @@
- shadow_disable_overrides Shadow_disable_overrides {false, false, false, false};
- float Thruster_easing;
- bool Always_use_distant_firepoints;
--bool Discord_presence;
- bool Hotkey_always_hide_hidden_ships;
- bool Use_weapon_class_sounds_for_hits_to_player;
- bool SCPUI_loads_hi_res_animations;
-
--static auto DiscordOption = options::OptionBuilder<bool>("Other.Discord", "Discord Presence", "Toggle Discord Rich Presence")
-- .category("Other")
-- .default_val(Discord_presence)
-- .level(options::ExpertLevel::Advanced)
-- .importance(55)
-- .change_listener([](bool val, bool) {
-- if(Discord_presence){
-- if (!val) {
-- Discord_presence = false;
-- libs::discord::shutdown();
-- return true;
-- }
-- } else {
-- if (val) {
-- Discord_presence = true;
-- libs::discord::init();
-- return true;
-- }
-- }
-- return false;
-- })
-- .finish();
--
- void mod_table_set_version_flags();
-
- SCP_vector<std::pair<SCP_string, gr_capability>> req_render_ext_pairs = {
-@@ -1128,9 +1103,6 @@
- if (optional_string("$Use distant firepoint for all turrets:")){
- stuff_boolean(&Always_use_distant_firepoints);
- }
-- if (optional_string("$Enable Discord rich presence:")) {
-- stuff_boolean(&Discord_presence);
-- }
-
- if (optional_string("$Always hide hidden ships in hotkey list:")) {
- stuff_boolean(&Hotkey_always_hide_hidden_ships);
-@@ -1285,7 +1257,6 @@
- Lead_indicator_behavior = leadIndicatorBehavior::DEFAULT;
- Thruster_easing = 0;
- Always_use_distant_firepoints = false;
-- Discord_presence = true;
- Hotkey_always_hide_hidden_ships = false;
- Use_weapon_class_sounds_for_hits_to_player = false;
- SCPUI_loads_hi_res_animations = true;
diff --git a/games-engines/fs2_open/files/fs2_open-23.0.0-dont-build-lz4.patch b/games-engines/fs2_open/files/fs2_open-23.0.0-dont-build-lz4.patch
deleted file mode 100644
index 49350a0dc..000000000
--- a/games-engines/fs2_open/files/fs2_open-23.0.0-dont-build-lz4.patch
+++ /dev/null
@@ -1,9 +0,0 @@
---- fs2_open/lib/CMakeLists.txt 2023-02-11 13:13:50.000000000 +0100
-+++ fs2_open/lib/CMakeLists.txt 2023-02-11 13:45:46.251682120 +0100
-@@ -55,6 +55,4 @@
-
- add_subdirectory(optional)
-
--ADD_SUBDIRECTORY(lz4)
--
- ADD_SUBDIRECTORY(imgui)
diff --git a/games-engines/fs2_open/files/fs2_open-23.0.0-make-arch-independent.patch b/games-engines/fs2_open/files/fs2_open-23.0.0-make-arch-independent.patch
deleted file mode 100644
index c2f5d7f36..000000000
--- a/games-engines/fs2_open/files/fs2_open-23.0.0-make-arch-independent.patch
+++ /dev/null
@@ -1,14 +0,0 @@
---- fs2_open/cmake/version.cmake 2021-05-22 20:20:18.448441242 +0200
-+++ fs2_open/cmake/version.cmake 2021-05-22 20:21:05.493447003 +0200
-@@ -35,11 +35,6 @@
- SET(FSO_BINARY_SUFFIX "${FSO_VERSION_MAJOR}_${FSO_VERSION_MINOR}_${FSO_VERSION_BUILD}_${FSO_VERSION_REVISION_STR}")
- ENDIF()
-
--IF(IS_64BIT)
-- # This is a 64-bit builds
-- SET(FSO_BINARY_SUFFIX "${FSO_BINARY_SUFFIX}_x64")
--ENDIF()
--
- IF (NOT "${FSO_INSTRUCTION_SET}" STREQUAL "")
- SET(FSO_BINARY_SUFFIX "${FSO_BINARY_SUFFIX}_${FSO_INSTRUCTION_SET}")
- ENDIF()
diff --git a/games-engines/fs2_open/fs2_open-23.0.0.ebuild b/games-engines/fs2_open/fs2_open-23.0.0.ebuild
deleted file mode 100644
index 35e94af61..000000000
--- a/games-engines/fs2_open/fs2_open-23.0.0.ebuild
+++ /dev/null
@@ -1,99 +0,0 @@
-# Copyright 2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit cmake
-
-# Replace "." with "_" in version
-_PV=${PV//./_}
-
-# Current hashes of external repositories:
-HASH_LIBROCKET="ecd648a43aff8a9f3daf064d75ca5725237d5b38"
-HASH_CMAKE_MODULES="7cef9577d6fc35057ea57f46b4986a8a28aeff50"
-
-DESCRIPTION="FreeSpace2 Source Code Project game engine"
-HOMEPAGE="https://github.com/scp-fs2open/fs2open.github.com/"
-SRC_URI="
- https://github.com/scp-fs2open/fs2open.github.com/archive/refs/tags/release_${_PV}.tar.gz -> ${P}.tar.gz
- https://github.com/asarium/libRocket/archive/${HASH_LIBROCKET}.tar.gz -> ${P}-ext_libRocket.tar.gz
- https://github.com/asarium/cmake-modules/archive/${HASH_CMAKE_MODULES}.tar.gz -> ${P}-ext_rpavlik-cmake-modules.tar.gz
-"
-
-S="${WORKDIR}/fs2open.github.com-release_${_PV}"
-
-LICENSE="Unlicense MIT Boost-1.0"
-SLOT="0"
-KEYWORDS="~amd64"
-IUSE="clang debug discord"
-
-DEPEND="
- app-arch/lz4
- <dev-lang/lua-5.1.6:5.1
- dev-libs/jansson
- media-libs/freetype:2
- media-libs/glu
- media-libs/libjpeg-turbo
- media-libs/libpng
- media-libs/libsdl2
- media-libs/libtheora
- media-libs/libvorbis
- media-libs/mesa
- media-libs/openal
- media-video/ffmpeg
-"
-RDEPEND="${DEPEND}"
-BDEPEND="clang? ( sys-devel/clang )"
-PATCHES=(
- "${FILESDIR}/${P}-dont-build-lz4.patch"
- "${FILESDIR}/${P}-make-arch-independent.patch"
-)
-
-CMAKE_BUILD_TYPE=Release
-
-src_unpack() {
- unpack ${A}
- mv libRocket-${HASH_LIBROCKET}/* "${S}/lib/libRocket/" || die
- mv cmake-modules-${HASH_CMAKE_MODULES}/* "${S}/cmake/external/rpavlik-cmake-modules/" || die
-}
-
-src_configure() {
- if use clang ; then
- # Force clang
- einfo "Enforcing the use of clang due to USE=clang ..."
- AR=llvm-ar
- CC=${CHOST}-clang
- CXX=${CHOST}-clang++
- LDFLAGS+=" -fuse-ld=lld"
- fi
- cmake_src_configure
-}
-
-src_prepare() {
- use discord || eapply "${FILESDIR}/${P}-disable-discord.patch"
- eapply_user
- cmake_src_prepare
- use debug && CMAKE_BUILD_TYPE=Debug
-}
-
-src_install() {
- exeinto "/opt/${PN}"
- if use debug ; then
- doexe "${BUILD_DIR}/bin/${PN}_${_PV}-DEBUG"
- else
- doexe "${BUILD_DIR}/bin/${PN}_${_PV}"
- fi
- insinto "/opt/${PN}"
- doins "${BUILD_DIR}/bin/libRocketControls.so"
- doins "${BUILD_DIR}/bin/libRocketControlsLua.so"
- doins "${BUILD_DIR}/bin/libRocketCore.so"
- doins "${BUILD_DIR}/bin/libRocketCoreLua.so"
- doins "${BUILD_DIR}/bin/libRocketDebugger.so"
- use discord && doins "${BUILD_DIR}/bin/libdiscord-rpc.so"
-}
-
-pkg_postinst() {
- einfo "This package only generates the engine binary."
- einfo "The retail Freespace 2 data is required to play the"
- einfo "original game and most mods."
-}
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: games-engines/fs2_open/files/, games-engines/fs2_open/
@ 2024-11-09 8:41 Takuya Wakazono
0 siblings, 0 replies; 7+ messages in thread
From: Takuya Wakazono @ 2024-11-09 8:41 UTC (permalink / raw
To: gentoo-commits
commit: 9c46b042989e670e8fd548e8a7fa1926b5bb64f8
Author: Takuya Wakazono <pastalian46 <AT> gmail <DOT> com>
AuthorDate: Sat Nov 9 06:14:48 2024 +0000
Commit: Takuya Wakazono <pastalian46 <AT> gmail <DOT> com>
CommitDate: Sat Nov 9 08:24:49 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9c46b042
games-engines/fs2_open: drop 23.2.1-r1
Closes: https://bugs.gentoo.org/921912 (obsolete)
Closes: https://bugs.gentoo.org/921913 (obsolete)
Signed-off-by: Takuya Wakazono <pastalian46 <AT> gmail.com>
games-engines/fs2_open/Manifest | 3 -
.../files/fs2_open-23.2.1-disable-discord.patch | 175 ---------------------
.../files/fs2_open-23.2.1-dont-build-lz4.patch | 11 --
.../fs2_open-23.2.1-dont-ignore-user-cflags.patch | 117 --------------
.../fs2_open-23.2.1-make-arch-independent.patch | 14 --
games-engines/fs2_open/fs2_open-23.2.1-r1.ebuild | 100 ------------
6 files changed, 420 deletions(-)
diff --git a/games-engines/fs2_open/Manifest b/games-engines/fs2_open/Manifest
index 9fa5ce792..a9bf44968 100644
--- a/games-engines/fs2_open/Manifest
+++ b/games-engines/fs2_open/Manifest
@@ -1,6 +1,3 @@
-DIST fs2_open-23.2.1-ext_libRocket.tar.gz 2417905 BLAKE2B 0e5ac40b0e811b9213fb84f6f2f0ef38ad7d562ae671e865d96e40615c2d67213905ce153a69192c0b53a3e4f0d1aef077c0769e46d308adf9210c0c9d1fe7c2 SHA512 700e242ecb5207faf729ca7d23ac4f28be819c0ef7a0ba51ca18de1592f1016040cd5e4c1c75a573f91cea69dd43549966ac089804a52c0f1b0cfbaabefc4346
-DIST fs2_open-23.2.1-ext_rpavlik-cmake-modules.tar.gz 267464 BLAKE2B d63fa3867aad5fad7bd5d20845dd8d6a6698d59dc30dc511704f3c74bbe958bb6d36160bae3ef5c01027719c50d18e4d24209ea5811c6a52c5af4d3de2a587e9 SHA512 0bb03e2a1c0cafa80849163455cdb5fc5c7200e51f18f0354c36f251b51156f86a04a9f87cd17e2942d14ae8767d8df756062fbcff9b37f04e8399b2e37d306f
-DIST fs2_open-23.2.1.tar.gz 12091345 BLAKE2B a03179842d53dd429969b2863ab53f613b52bf70ff50d0991e0dd36a73ee0a2374a0d09e95a13410add9f8c4b955a49e9894b35b5ccb92982c63e06daec5694a SHA512 dfb4fe7c0f8048730e91e754754e26677706bb391c4d88ff7f4f6090d931db9dc2ca616dcd552d213d7c7de5b597a5cc43ab6bad0f422bc3e78dcbc15f64600b
DIST fs2_open-24.0.2-ext_libRocket.tar.gz 2417905 BLAKE2B 0e5ac40b0e811b9213fb84f6f2f0ef38ad7d562ae671e865d96e40615c2d67213905ce153a69192c0b53a3e4f0d1aef077c0769e46d308adf9210c0c9d1fe7c2 SHA512 700e242ecb5207faf729ca7d23ac4f28be819c0ef7a0ba51ca18de1592f1016040cd5e4c1c75a573f91cea69dd43549966ac089804a52c0f1b0cfbaabefc4346
DIST fs2_open-24.0.2-ext_rpavlik-cmake-modules.tar.gz 267464 BLAKE2B d63fa3867aad5fad7bd5d20845dd8d6a6698d59dc30dc511704f3c74bbe958bb6d36160bae3ef5c01027719c50d18e4d24209ea5811c6a52c5af4d3de2a587e9 SHA512 0bb03e2a1c0cafa80849163455cdb5fc5c7200e51f18f0354c36f251b51156f86a04a9f87cd17e2942d14ae8767d8df756062fbcff9b37f04e8399b2e37d306f
DIST fs2_open-24.0.2.tar.gz 12652011 BLAKE2B f1ab67f8ceb9389a7087a1264897bc46748d8a7c18799941cca7acdbe64a718452fe755e6dc36067529e533ac881df2d6025147aa8e20aff8751e3a9eebbf1d0 SHA512 f0ffb5da42d0dba98f9f46432c09f8edc7e80f3e65a5d4c0ed9e2e37a26b63d67526982e7209edb6d6727b23d8ce1d75ccac6dcd8da74cd55f7e6fea52ad56d4
diff --git a/games-engines/fs2_open/files/fs2_open-23.2.1-disable-discord.patch b/games-engines/fs2_open/files/fs2_open-23.2.1-disable-discord.patch
deleted file mode 100644
index 90154f817..000000000
--- a/games-engines/fs2_open/files/fs2_open-23.2.1-disable-discord.patch
+++ /dev/null
@@ -1,175 +0,0 @@
---- a/freespace2/freespace.cpp
-+++ b/freespace2/freespace.cpp
-@@ -84,7 +84,6 @@
- #include "io/timer.h"
- #include "jumpnode/jumpnode.h"
- #include "lab/labv2.h"
--#include "libs/discord/discord.h"
- #include "libs/ffmpeg/FFmpeg.h"
- #include "lighting/lighting.h"
- #include "lighting/lighting_profiles.h"
-@@ -1987,9 +1986,6 @@
- #ifdef WITH_FFMPEG
- libs::ffmpeg::initialize();
- #endif
-- if (Discord_presence) {
-- libs::discord::init();
-- }
- }
-
- mod_table_post_process();
---- a/code/source_groups.cmake
-+++ b/code/source_groups.cmake
-@@ -706,11 +706,6 @@
- libs/antlr/ErrorListener.h
- )
-
--add_file_folder("Libs\\\\Discord"
-- libs/discord/discord.cpp
-- libs/discord/discord.h
--)
--
- if (FSO_BUILD_WITH_FFMPEG)
- add_file_folder("Libs\\\\FFmpeg"
- libs/ffmpeg/FFmpeg.cpp
---- a/code/mod_table/mod_table.h
-+++ b/code/mod_table/mod_table.h
-@@ -124,7 +124,6 @@
- } Shadow_disable_overrides;
- extern float Thruster_easing;
- extern bool Always_use_distant_firepoints;
--extern bool Discord_presence;
- extern bool Hotkey_always_hide_hidden_ships;
- extern bool Use_weapon_class_sounds_for_hits_to_player;
- extern bool SCPUI_loads_hi_res_animations;
---- a/code/mod_table/mod_table.cpp
-+++ b/code/mod_table/mod_table.cpp
-@@ -12,7 +12,6 @@
- #include "globalincs/version.h"
- #include "graphics/shadows.h"
- #include "localization/localize.h"
--#include "libs/discord/discord.h"
- #include "mission/missioncampaign.h"
- #include "mission/missionload.h"
- #include "mission/missionmessage.h"
-@@ -135,7 +134,6 @@
- shadow_disable_overrides Shadow_disable_overrides {false, false, false, false};
- float Thruster_easing;
- bool Always_use_distant_firepoints;
--bool Discord_presence;
- bool Hotkey_always_hide_hidden_ships;
- bool Use_weapon_class_sounds_for_hits_to_player;
- bool SCPUI_loads_hi_res_animations;
-@@ -145,29 +143,6 @@
- std::array<std::tuple<float, float>, 6> Fred_spacemouse_nonlinearity;
- bool Randomize_particle_rotation;
-
--static auto DiscordOption __UNUSED = options::OptionBuilder<bool>("Other.Discord", "Discord Presence", "Toggle Discord Rich Presence")
-- .category("Other")
-- .default_val(Discord_presence)
-- .level(options::ExpertLevel::Advanced)
-- .importance(55)
-- .change_listener([](bool val, bool) {
-- if(Discord_presence){
-- if (!val) {
-- Discord_presence = false;
-- libs::discord::shutdown();
-- return true;
-- }
-- } else {
-- if (val) {
-- Discord_presence = true;
-- libs::discord::init();
-- return true;
-- }
-- }
-- return false;
-- })
-- .finish();
--
- void mod_table_set_version_flags();
-
- SCP_vector<std::pair<SCP_string, gr_capability>> req_render_ext_pairs = {
-@@ -1264,10 +1239,6 @@
- stuff_boolean(&Always_use_distant_firepoints);
- }
-
-- if (optional_string("$Enable Discord rich presence:")) {
-- stuff_boolean(&Discord_presence);
-- }
--
- if (optional_string("$Always hide hidden ships in hotkey list:")) {
- stuff_boolean(&Hotkey_always_hide_hidden_ships);
- }
-@@ -1440,7 +1411,6 @@
- Lead_indicator_behavior = leadIndicatorBehavior::DEFAULT;
- Thruster_easing = 0;
- Always_use_distant_firepoints = false;
-- Discord_presence = true;
- Hotkey_always_hide_hidden_ships = false;
- Use_weapon_class_sounds_for_hits_to_player = false;
- SCPUI_loads_hi_res_animations = true;
---- a/lib/CMakeLists.txt
-+++ b/lib/CMakeLists.txt
-@@ -33,8 +33,6 @@
- include(FFmpeg.cmake)
- endif()
-
--add_subdirectory(discord)
--
- include(libRocket.cmake)
-
- add_subdirectory(libpcp)
---- a/code/CMakeLists.txt
-+++ b/code/CMakeLists.txt
-@@ -44,8 +44,6 @@
-
- target_link_libraries(code PUBLIC md5)
-
--target_link_libraries(code PUBLIC discord-rpc)
--
- target_link_libraries(code PUBLIC libRocket)
-
- target_link_libraries(code PUBLIC pcp)
---- a/code/scripting/api/libs/base.cpp
-+++ b/code/scripting/api/libs/base.cpp
-@@ -8,7 +8,6 @@
- #include "freespace.h"
-
- #include "gamesequence/gamesequence.h"
--#include "libs/discord/discord.h"
- #include "mission/missiontraining.h"
- #include "network/multi.h"
- #include "parse/parselo.h"
-@@ -754,31 +753,6 @@
- }
-
-
--ADE_FUNC(setDiscordPresence,
-- l_Base,
-- "string DisplayText, [boolean Gameplay]",
-- "Sets the Discord presence to a specific string. If Gameplay is true then the string is ignored and presence will "
-- "be set as if the player is in-mission. The latter will fail if the player is not in a mission.",
-- nullptr,
-- "nothing")
--{
-- const char* text;
-- bool gp = false;
-- if (!ade_get_args(L, "s|b", &text, &gp)) {
-- return ADE_RETURN_NIL;
-- }
--
-- if (gp) {
-- if ((Game_mode & GM_IN_MISSION) != 0){
-- libs::discord::set_presence_gameplay();
-- }
-- } else {
-- libs::discord::set_presence_string(text);
-- }
--
-- return ADE_RETURN_NIL;
--}
--
- ADE_FUNC(hasFocus, l_Base, nullptr, "Returns if the game engine has focus or not", "boolean", "True if the game has focus, false if it has been lost")
- {
- return ade_set_args(L, "b", os_foreground());
diff --git a/games-engines/fs2_open/files/fs2_open-23.2.1-dont-build-lz4.patch b/games-engines/fs2_open/files/fs2_open-23.2.1-dont-build-lz4.patch
deleted file mode 100644
index db2ac5e53..000000000
--- a/games-engines/fs2_open/files/fs2_open-23.2.1-dont-build-lz4.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- a/lib/CMakeLists.txt
-+++ b/lib/CMakeLists.txt
-@@ -53,8 +53,6 @@
-
- add_subdirectory(optional)
-
--ADD_SUBDIRECTORY(lz4)
--
- set(HIDAPI_WITH_LIBUSB OFF)
- set(HIDAPI_WITH_HIDRAW ON)
- add_subdirectory(hidapi)
diff --git a/games-engines/fs2_open/files/fs2_open-23.2.1-dont-ignore-user-cflags.patch b/games-engines/fs2_open/files/fs2_open-23.2.1-dont-ignore-user-cflags.patch
deleted file mode 100644
index c0f29d05f..000000000
--- a/games-engines/fs2_open/files/fs2_open-23.2.1-dont-ignore-user-cflags.patch
+++ /dev/null
@@ -1,117 +0,0 @@
-From 3ebdc51c4814648c2171440484c2d429899d3ab4 Mon Sep 17 00:00:00 2001
-From: Jonas Frei <freijon@pm.me>
-Date: Tue, 7 Nov 2023 21:21:28 +0100
-Subject: [PATCH] Don't ignore user-set -O* flags
-
----
- cmake/toolchain-clang.cmake | 37 +++++++++++++++++++++++++++++--------
- cmake/toolchain-gcc.cmake | 34 ++++++++++++++++++++++++++++------
- 2 files changed, 57 insertions(+), 14 deletions(-)
-
---- a/cmake/toolchain-clang.cmake
-+++ b/cmake/toolchain-clang.cmake
-@@ -83,20 +83,41 @@ if(SUPPORTS_SHIFT_NEGATIVE_VALUE)
- set(COMPILER_FLAGS "${COMPILER_FLAGS} -Wno-shift-negative-value")
- endif()
-
--set(COMPILER_FLAGS_RELEASE "-O2 -Wno-unused-variable -Wno-unused-parameter")
-+# Check if there is a user-set optimisation flag
-+string(REGEX MATCH "-O[a-zA-Z|0-9]+" CXX_OPT_FLAG ${CXX_BASE_FLAGS})
-+string(REGEX MATCH "-O[a-zA-Z|0-9]+" C_OPT_FLAG ${C_BASE_FLAGS})
-+
-+# If no user-set opt flag, set -O2 and -Og
-+if ("${CXX_OPT_FLAG}" STREQUAL "")
-+ set(CXX_OPT_FLAG_RELEASE "-O2")
-+ set(CXX_OPT_FLAG_DEBUG "-Og")
-+else()
-+ set(CXX_OPT_FLAG_RELEASE "${CXX_OPT_FLAG}")
-+ set(CXX_OPT_FLAG_DEBUG "${CXX_OPT_FLAG}")
-+endif()
-+if ("${C_OPT_FLAG}" STREQUAL "")
-+ set(C_OPT_FLAG_RELEASE "-O2")
-+ set(C_OPT_FLAG_DEBUG "-Og")
-+else()
-+ set(C_OPT_FLAG_RELEASE "${C_OPT_FLAG}")
-+ set(C_OPT_FLAG_DEBUG "${C_OPT_FLAG}")
-+endif()
-
--set(COMPILER_FLAGS_DEBUG "-Og -g -Wshadow")
-+set(CXX_FLAGS_RELEASE "${CXX_OPT_FLAG_RELEASE} -Wno-unused-variable -Wno-unused-parameter")
-+set(C_FLAGS_RELEASE "${C_OPT_FLAG_RELEASE} -Wno-unused-variable -Wno-unused-parameter")
-
--# Always use the base flags and add our compiler flags at the bacl
-+set(CXX_FLAGS_DEBUG "${CXX_OPT_FLAG_DEBUG} -g -Wshadow")
-+set(C_FLAGS_DEBUG "${C_OPT_FLAG_DEBUG} -g -Wshadow")
-+
-+# Always use the base flags and add our compiler flags at the back
- set(CMAKE_CXX_FLAGS "${CXX_BASE_FLAGS} ${COMPILER_FLAGS}")
- set(CMAKE_C_FLAGS "${C_BASE_FLAGS} ${COMPILER_FLAGS}")
-
--set(CMAKE_CXX_FLAGS_RELEASE ${COMPILER_FLAGS_RELEASE})
--set(CMAKE_C_FLAGS_RELEASE ${COMPILER_FLAGS_RELEASE})
--
--set(CMAKE_CXX_FLAGS_DEBUG ${COMPILER_FLAGS_DEBUG})
--set(CMAKE_C_FLAGS_DEBUG ${COMPILER_FLAGS_DEBUG})
-+set(CMAKE_CXX_FLAGS_RELEASE ${CXX_FLAGS_RELEASE})
-+set(CMAKE_C_FLAGS_RELEASE ${C_FLAGS_RELEASE})
-
-+set(CMAKE_CXX_FLAGS_DEBUG ${CXX_FLAGS_DEBUG})
-+set(CMAKE_C_FLAGS_DEBUG ${C_FLAGS_DEBUG})
-
- set(CMAKE_EXE_LINKER_FLAGS "")
-
-diff --git a/cmake/toolchain-gcc.cmake b/cmake/toolchain-gcc.cmake
-index ca740832e..78577038c 100644
---- a/cmake/toolchain-gcc.cmake
-+++ b/cmake/toolchain-gcc.cmake
-@@ -113,19 +113,41 @@ if(SUPPORTS_STRINGOP_TRUNCATION)
- set(COMPILER_FLAGS "${COMPILER_FLAGS} -Wno-stringop-overflow")
- endif()
-
--set(COMPILER_FLAGS_RELEASE "-O2 -Wno-unused-variable -Wno-unused-but-set-variable -Wno-array-bounds -Wno-empty-body -Wno-clobbered -Wno-unused-parameter")
-+# Check if there is a user-set optimisation flag
-+string(REGEX MATCH "-O[a-zA-Z|0-9]+" CXX_OPT_FLAG ${CXX_BASE_FLAGS})
-+string(REGEX MATCH "-O[a-zA-Z|0-9]+" C_OPT_FLAG ${C_BASE_FLAGS})
-
--set(COMPILER_FLAGS_DEBUG "-Og -g -Wshadow")
-+# If no user-set opt flag, set -O2 and -Og
-+if ("${CXX_OPT_FLAG}" STREQUAL "")
-+ set(CXX_OPT_FLAG_RELEASE "-O2")
-+ set(CXX_OPT_FLAG_DEBUG "-Og")
-+else()
-+ set(CXX_OPT_FLAG_RELEASE "${CXX_OPT_FLAG}")
-+ set(CXX_OPT_FLAG_DEBUG "${CXX_OPT_FLAG}")
-+endif()
-+if ("${C_OPT_FLAG}" STREQUAL "")
-+ set(C_OPT_FLAG_RELEASE "-O2")
-+ set(C_OPT_FLAG_DEBUG "-Og")
-+else()
-+ set(C_OPT_FLAG_RELEASE "${C_OPT_FLAG}")
-+ set(C_OPT_FLAG_DEBUG "${C_OPT_FLAG}")
-+endif()
-+
-+set(CXX_FLAGS_RELEASE "${CXX_OPT_FLAG_RELEASE} -Wno-unused-variable -Wno-unused-but-set-variable -Wno-array-bounds -Wno-empty-body -Wno-clobbered -Wno-unused-parameter")
-+set(C_FLAGS_RELEASE "${C_OPT_FLAG_RELEASE} -Wno-unused-variable -Wno-unused-but-set-variable -Wno-array-bounds -Wno-empty-body -Wno-clobbered -Wno-unused-parameter")
-+
-+set(CXX_FLAGS_DEBUG "${CXX_OPT_FLAG_DEBUG} -g -Wshadow")
-+set(C_FLAGS_DEBUG "${C_OPT_FLAG_DEBUG} -g -Wshadow")
-
- # Always use the base flags and add our compiler flags at the back
- set(CMAKE_CXX_FLAGS "${CXX_BASE_FLAGS} ${COMPILER_FLAGS}")
- set(CMAKE_C_FLAGS "${C_BASE_FLAGS} ${COMPILER_FLAGS}")
-
--set(CMAKE_CXX_FLAGS_RELEASE ${COMPILER_FLAGS_RELEASE})
--set(CMAKE_C_FLAGS_RELEASE ${COMPILER_FLAGS_RELEASE})
-+set(CMAKE_CXX_FLAGS_RELEASE ${CXX_FLAGS_RELEASE})
-+set(CMAKE_C_FLAGS_RELEASE ${C_FLAGS_RELEASE})
-
--set(CMAKE_CXX_FLAGS_DEBUG ${COMPILER_FLAGS_DEBUG})
--set(CMAKE_C_FLAGS_DEBUG ${COMPILER_FLAGS_DEBUG})
-+set(CMAKE_CXX_FLAGS_DEBUG ${CXX_FLAGS_DEBUG})
-+set(CMAKE_C_FLAGS_DEBUG ${C_FLAGS_DEBUG})
-
- set(CMAKE_EXE_LINKER_FLAGS "${LINKER_FLAGS}")
-
---
-2.41.0
-
diff --git a/games-engines/fs2_open/files/fs2_open-23.2.1-make-arch-independent.patch b/games-engines/fs2_open/files/fs2_open-23.2.1-make-arch-independent.patch
deleted file mode 100644
index 9dcb50cbb..000000000
--- a/games-engines/fs2_open/files/fs2_open-23.2.1-make-arch-independent.patch
+++ /dev/null
@@ -1,14 +0,0 @@
---- a/cmake/version.cmake
-+++ b/cmake/version.cmake
-@@ -35,11 +35,6 @@
- SET(FSO_BINARY_SUFFIX "${FSO_VERSION_MAJOR}_${FSO_VERSION_MINOR}_${FSO_VERSION_BUILD}_${FSO_VERSION_REVISION_STR}")
- ENDIF()
-
--IF(IS_64BIT)
-- # This is a 64-bit builds
-- SET(FSO_BINARY_SUFFIX "${FSO_BINARY_SUFFIX}_x64")
--ENDIF()
--
- IF (NOT "${FSO_INSTRUCTION_SET}" STREQUAL "")
- SET(FSO_BINARY_SUFFIX "${FSO_BINARY_SUFFIX}_${FSO_INSTRUCTION_SET}")
- ENDIF()
diff --git a/games-engines/fs2_open/fs2_open-23.2.1-r1.ebuild b/games-engines/fs2_open/fs2_open-23.2.1-r1.ebuild
deleted file mode 100644
index 0b437cf5b..000000000
--- a/games-engines/fs2_open/fs2_open-23.2.1-r1.ebuild
+++ /dev/null
@@ -1,100 +0,0 @@
-# Copyright 2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit cmake
-
-# Replace "." with "_" in version
-_PV=${PV//./_}
-
-# Current hashes of external repositories:
-HASH_LIBROCKET="ecd648a43aff8a9f3daf064d75ca5725237d5b38"
-HASH_CMAKE_MODULES="7cef9577d6fc35057ea57f46b4986a8a28aeff50"
-
-DESCRIPTION="FreeSpace2 Source Code Project game engine"
-HOMEPAGE="https://github.com/scp-fs2open/fs2open.github.com/"
-SRC_URI="
- https://github.com/scp-fs2open/fs2open.github.com/archive/refs/tags/release_${_PV}.tar.gz -> ${P}.tar.gz
- https://github.com/asarium/libRocket/archive/${HASH_LIBROCKET}.tar.gz -> ${P}-ext_libRocket.tar.gz
- https://github.com/asarium/cmake-modules/archive/${HASH_CMAKE_MODULES}.tar.gz -> ${P}-ext_rpavlik-cmake-modules.tar.gz
-"
-
-S="${WORKDIR}/fs2open.github.com-release_${_PV}"
-
-LICENSE="Unlicense MIT Boost-1.0"
-SLOT="0"
-KEYWORDS="~amd64"
-IUSE="clang debug discord"
-
-DEPEND="
- app-arch/lz4
- <dev-lang/lua-5.1.6:5.1
- dev-libs/jansson
- media-libs/freetype:2
- media-libs/glu
- media-libs/libjpeg-turbo
- media-libs/libpng
- media-libs/libsdl2
- media-libs/libtheora
- media-libs/libvorbis
- media-libs/mesa
- media-libs/openal
- media-video/ffmpeg
-"
-RDEPEND="${DEPEND}"
-BDEPEND="clang? ( sys-devel/clang )"
-PATCHES=(
- "${FILESDIR}/${P}-dont-build-lz4.patch"
- "${FILESDIR}/${P}-dont-ignore-user-cflags.patch"
- "${FILESDIR}/${P}-make-arch-independent.patch"
-)
-
-CMAKE_BUILD_TYPE=Release
-
-src_unpack() {
- unpack ${A}
- mv libRocket-${HASH_LIBROCKET}/* "${S}/lib/libRocket/" || die
- mv cmake-modules-${HASH_CMAKE_MODULES}/* "${S}/cmake/external/rpavlik-cmake-modules/" || die
-}
-
-src_configure() {
- if use clang ; then
- # Force clang
- einfo "Enforcing the use of clang due to USE=clang ..."
- AR=llvm-ar
- CC=${CHOST}-clang
- CXX=${CHOST}-clang++
- LDFLAGS+=" -fuse-ld=lld"
- fi
- cmake_src_configure
-}
-
-src_prepare() {
- use discord || eapply "${FILESDIR}/${P}-disable-discord.patch"
- eapply_user
- cmake_src_prepare
- use debug && CMAKE_BUILD_TYPE=Debug
-}
-
-src_install() {
- exeinto "/opt/${PN}"
- if use debug ; then
- doexe "${BUILD_DIR}/bin/${PN}_${_PV}-DEBUG"
- else
- doexe "${BUILD_DIR}/bin/${PN}_${_PV}"
- fi
- insinto "/opt/${PN}"
- doins "${BUILD_DIR}/bin/libRocketControls.so"
- doins "${BUILD_DIR}/bin/libRocketControlsLua.so"
- doins "${BUILD_DIR}/bin/libRocketCore.so"
- doins "${BUILD_DIR}/bin/libRocketCoreLua.so"
- doins "${BUILD_DIR}/bin/libRocketDebugger.so"
- use discord && doins "${BUILD_DIR}/bin/libdiscord-rpc.so"
-}
-
-pkg_postinst() {
- einfo "This package only generates the engine binary."
- einfo "The retail Freespace 2 data is required to play the"
- einfo "original game and most mods."
-}
^ permalink raw reply related [flat|nested] 7+ messages in thread
end of thread, other threads:[~2024-11-09 8:41 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-25 22:04 [gentoo-commits] repo/proj/guru:dev commit in: games-engines/fs2_open/files/, games-engines/fs2_open/ Jonas Frei
-- strict thread matches above, loose matches on Subject: below --
2022-03-26 11:33 Jonas Frei
2022-08-07 4:23 Jonas Frei
2023-10-14 7:40 Jonas Frei
2024-06-30 15:57 Jonas Frei
2024-06-30 15:57 Jonas Frei
2024-11-09 8:41 Takuya Wakazono
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox