File mingw64-theforceengine.spec of Package mingw64-theforceengine

#
# spec file for package mingw64-theforceeninge
#
# Copyright (c) 2025, Martin Hauke <mardnh@gmx.de>
#
# 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 http://bugs.opensuse.org/
#

Name:           mingw64-theforceengine
Version:        1.22.300
Release:        0
Summary:        A "Star Wars: Dark Forces" source port
License:        GPL-2.0-only
Group:          Amusements/Games/3D/Shoot
#Git-Clone:     https://github.com/luciusDXL/TheForceEngine.git
URL:            https://theforceengine.github.io/
Source:         TheForceEngine-%{version}.tar.xz
Patch0:         tfe-mingw64-lowercase.patch
Patch1:         tfe-mingw64-cmake.patch
Patch2:         tfe-mingw64-std-atomic.patch
#Patch3:         x.patch
BuildRequires:  mingw64-cross-gcc-c++
BuildRequires:  mingw64-cross-pkg-config
BuildRequires:  mingw64-cross-cmake
BuildRequires:  mingw64-libSDL2-devel
BuildRequires:  mingw64-SDL2_image-devel
#
BuildRequires:  mingw64-rtmidi-devel
#%%_mingw64_package_header_debug
BuildArch:      noarch

%description
Modern "Jedi Engine" replacement supporting Dark Forces, Outlaws
and the mods.

NOTE:
To play these games with TheForceEngine you need the original
game files!

%_mingw64_debug_package

%prep
%autosetup -p1 -n TheForceEngine-%{version}

%build
%{_mingw64_cmake} \
    -DENABLE_EDITOR=OFF \
    -DENABLE_SYSMIDI=ON
%{_mingw64_cmake_build}

# FIXME:
# linking errors
# -  -lshlwapi  -lmsvcr80



%install
# theforceengine.exe

%files
%license LICENSE
%doc README.md
#%%{_mingw64_prefix}/lib/XXX

%changelog
openSUSE Build Service is sponsored by