Initial commit
This commit is contained in:
commit
624156f094
BIN
616f921e97b0fb4745a2d36de149c737bf720214.tar.gz
Normal file
BIN
616f921e97b0fb4745a2d36de149c737bf720214.tar.gz
Normal file
Binary file not shown.
9
descent3.changes
Normal file
9
descent3.changes
Normal file
@ -0,0 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Sep 13 10:18:00 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
- Update to snapshot 1.6.0~g226.616f921e with over 30 crash fixes
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 29 08:03:08 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
- Initial package (1.6.0~g101.2db85ca) for build.opensuse.org.
|
115
descent3.spec
Normal file
115
descent3.spec
Normal file
@ -0,0 +1,115 @@
|
||||
#
|
||||
# spec file for package descent3
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
Name: descent3
|
||||
%define commit 616f921e97b0fb4745a2d36de149c737bf720214
|
||||
Version: 1.6.0~g226.g616f921e
|
||||
Release: 0
|
||||
Summary: Tunnel–terrain-hybrid ship-based shooter fighting robots
|
||||
License: GPL-3.0-or-later
|
||||
Group: Amusements/Games/3D/Shoot
|
||||
URL: https://github.com/DescentDevelopers/Descent3
|
||||
Source: https://github.com/DescentDevelopers/Descent3/archive/%commit.tar.gz
|
||||
Patch1: system-libacm.patch
|
||||
BuildRequires: c++_compiler
|
||||
BuildRequires: cmake
|
||||
BuildRequires: libacm-devel
|
||||
BuildRequires: pkgconfig(glm)
|
||||
BuildRequires: pkgconfig(sdl2)
|
||||
BuildRequires: pkgconfig(zlib)
|
||||
BuildRequires: plog-devel
|
||||
Provides: bundled(stb_image_write) = 1.16
|
||||
|
||||
%description
|
||||
The game takes place in a science fiction setting of the Solar System
|
||||
where the player is a mercenary and must stop robots infected by an
|
||||
alien virus.
|
||||
|
||||
The player controls a flying ship in zero gravity with a six degrees
|
||||
of freedom movement scheme. The game features both indoor and outdoor
|
||||
environments, made possible with the use of a hybrid engine that
|
||||
combines the capabilities of a portal rendering engine with those of
|
||||
a flight simulator-like terrain engine.
|
||||
|
||||
There is a single-player campaign mode and an an online multiplayer
|
||||
mode where numerous players can compete against each other in
|
||||
different game types.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n Descent3-%commit
|
||||
|
||||
%build
|
||||
%cmake -DCMAKE_INSTALL_BINDIR="%_libexecdir/%name" \
|
||||
-DCMAKE_INSTALL_DATADIR="%_datadir/%name" \
|
||||
-DFORCE_PORTABLE_INSTALL=OFF -DUSE_EXTERNAL_PLOG=ON \
|
||||
-DCMAKE_C_FLAGS_RELWITHDEBINFO="%optflags" \
|
||||
-DCMAKE_CXX_FLAGS_RELWITHDEBINFO="%optflags"
|
||||
%cmake_build
|
||||
|
||||
%install
|
||||
%cmake_install
|
||||
b="%buildroot"
|
||||
# packaged separately
|
||||
rm -fv "$b/%_defaultdocdir/%name/LICENSE"
|
||||
mkdir -p "$b/%_bindir"
|
||||
cat >"$b/%_bindir/descent3" <<-EOF
|
||||
#!/bin/sh -e
|
||||
progdir="%_libexecdir/descent3"
|
||||
datadir="%_datadir/descent3"
|
||||
|
||||
userdir="\$HOME/.config/descent3"
|
||||
mkdir -p "\$userdir/missions"
|
||||
cd "\$userdir"
|
||||
if [ ! -e d3-linux.hog ]; then
|
||||
ln -s "\$datadir/d3-linux.hog" .
|
||||
fi
|
||||
if [ ! -e d3.hog ]; then
|
||||
echo "ERROR: Copy d3.hog to \$userdir, then relaunch."
|
||||
echo "INFO: You may find this file on the D3 Linux ISO."
|
||||
exit 1
|
||||
fi
|
||||
if [ ! -e extra.hog ] || [ ! -e extra13.hog ]; then
|
||||
echo "NOTE: Copy extra.hog and extra13.hog to \$userdir, then relaunch."
|
||||
echo "INFO: You may find these files on the D3 Linux ISO in data.tar.gz."
|
||||
echo "INFO: tar -C \$userdir -xf /path/to/data.tar.gz extra.hog extra13.hog"
|
||||
exit 1
|
||||
fi
|
||||
if [ ! -e missions/d3.mn3 ]; then
|
||||
echo "NOTE: Descent3 main mission \"Retribution\" is absent. The engine will launch but is useless."
|
||||
echo "NOTE: Copy d3.mn3, d3_2.mn3, d3voice1.hog, d3voice2.hog to \$userdir/missions, then relaunch."
|
||||
echo "INFO: You may find these files on the D3 Linux ISO in the missions/ directory."
|
||||
fi
|
||||
if [ ! -e missions/training.mn3 ]; then
|
||||
echo "NOTE: Descent3 training mission absent."
|
||||
echo "INFO: You may find it on the D3 Linux ISO in data.tar.gz."
|
||||
echo "INFO: tar -C \$userdir -xf /path/to/data.tar.gz missions/"
|
||||
fi
|
||||
exec %_libexecdir/%name/Descent3 "\$@"
|
||||
EOF
|
||||
chmod a+x "%buildroot/%_bindir/descent3"
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
%_bindir/descent3
|
||||
%_datadir/descent3/
|
||||
%_defaultdocdir/%name/
|
||||
%_libexecdir/%name/
|
||||
# these are .so-like files
|
||||
%_libdir/netgames/
|
||||
|
||||
%changelog
|
60
system-libacm.patch
Normal file
60
system-libacm.patch
Normal file
@ -0,0 +1,60 @@
|
||||
From: Jan Engelhardt <jengelh@inai.de>
|
||||
Date: 2024-09-06 00:26:03.502953453 +0200
|
||||
|
||||
---
|
||||
AudioEncode/CMakeLists.txt | 2 +-
|
||||
Descent3/CMakeLists.txt | 2 +-
|
||||
editor/CMakeLists.txt | 2 +-
|
||||
third_party/CMakeLists.txt | 1 -
|
||||
4 files changed, 3 insertions(+), 4 deletions(-)
|
||||
|
||||
Index: Descent3-616f921e97b0fb4745a2d36de149c737bf720214/AudioEncode/CMakeLists.txt
|
||||
===================================================================
|
||||
--- Descent3-616f921e97b0fb4745a2d36de149c737bf720214.orig/AudioEncode/CMakeLists.txt
|
||||
+++ Descent3-616f921e97b0fb4745a2d36de149c737bf720214/AudioEncode/CMakeLists.txt
|
||||
@@ -10,7 +10,7 @@ set(CPPS
|
||||
|
||||
add_library(AudioEncode STATIC ${HEADERS} ${CPPS})
|
||||
target_link_libraries(AudioEncode PRIVATE
|
||||
- libacm
|
||||
+ -lacm
|
||||
plog::plog
|
||||
)
|
||||
target_include_directories(AudioEncode PUBLIC
|
||||
Index: Descent3-616f921e97b0fb4745a2d36de149c737bf720214/Descent3/CMakeLists.txt
|
||||
===================================================================
|
||||
--- Descent3-616f921e97b0fb4745a2d36de149c737bf720214.orig/Descent3/CMakeLists.txt
|
||||
+++ Descent3-616f921e97b0fb4745a2d36de149c737bf720214/Descent3/CMakeLists.txt
|
||||
@@ -314,7 +314,7 @@ file(GLOB_RECURSE INCS "../lib/*.h")
|
||||
|
||||
add_executable(Descent3 WIN32 MACOSX_BUNDLE ${D3Icon} ${HEADERS} ${CPPS} ${INCS} ${MANIFEST} ${RC_FILE})
|
||||
target_link_libraries(Descent3 PRIVATE
|
||||
- 2dlib AudioEncode bitmap cfile dd_video ddebug ddio libmve libacm
|
||||
+ 2dlib AudioEncode bitmap cfile dd_video ddebug ddio libmve -lacm
|
||||
fix grtext manage mem misc model module stream_audio linux SDL2::SDL2 plog::plog
|
||||
music networking physics renderer rtperformance sndlib ui unzip vecmat md5
|
||||
${PLATFORM_LIBS})
|
||||
Index: Descent3-616f921e97b0fb4745a2d36de149c737bf720214/editor/CMakeLists.txt
|
||||
===================================================================
|
||||
--- Descent3-616f921e97b0fb4745a2d36de149c737bf720214.orig/editor/CMakeLists.txt
|
||||
+++ Descent3-616f921e97b0fb4745a2d36de149c737bf720214/editor/CMakeLists.txt
|
||||
@@ -591,7 +591,7 @@ target_link_libraries(Descent3Editor
|
||||
ddio
|
||||
ddebug
|
||||
libmve
|
||||
- libacm
|
||||
+ -lacm
|
||||
fix
|
||||
grtext
|
||||
manage
|
||||
Index: Descent3-616f921e97b0fb4745a2d36de149c737bf720214/third_party/CMakeLists.txt
|
||||
===================================================================
|
||||
--- Descent3-616f921e97b0fb4745a2d36de149c737bf720214.orig/third_party/CMakeLists.txt
|
||||
+++ Descent3-616f921e97b0fb4745a2d36de149c737bf720214/third_party/CMakeLists.txt
|
||||
@@ -1,6 +1,5 @@
|
||||
set(CMAKE_FOLDER "third_party")
|
||||
|
||||
-add_subdirectory(libacm)
|
||||
add_subdirectory(stb)
|
||||
|
||||
if(USE_EXTERNAL_PLOG)
|
Loading…
x
Reference in New Issue
Block a user