1
0
forked from pool/omnispeak

Accepting request 1144645 from games

- Update to snapshot 1.1+git20240123 (b9e215b)

OBS-URL: https://build.opensuse.org/request/show/1144645
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/omnispeak?expand=0&rev=2
This commit is contained in:
Ana Guerrero 2024-02-06 15:35:54 +00:00 committed by Git OBS Bridge
commit f048fda1ce
7 changed files with 36 additions and 64 deletions

View File

@ -1,38 +0,0 @@
From 6bd9a59c53eeafc53b3c69419366276ae52d8be0 Mon Sep 17 00:00:00 2001
From: David Gow <david@ingeniumdigital.com>
Date: Fri, 3 Mar 2023 17:31:21 +0800
Subject: [PATCH] sd_opl2alsa: Don't include x86-specific headers
As part of an old direct IO port access feature which I gave up on long
ago, id_sd_opl2alsa.c included <sys/io.h>.
This header only exists on x86 platforms, so Omnispeak wouldn't build
on, e.g., aarch64 if WITH_ALSA was declared. It's pretty unlikely that
a non-x86 machine has an OPL3 compatible soundcard, but that's no reason
not to support it if it does.
Of course, all of this should go away and be replaced with liboplhw, but
for now, let's fix it.
Thanks to Martin Hauke for creating openSUSE packages, whose failed
aarch64 build uncovered this issue:
https://build.opensuse.org/package/live_build_log/home:mnhauke:games/omnispeak/openSUSE_Tumbleweed/aarch64
---
src/id_sd_opl2alsa.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/id_sd_opl2alsa.c b/src/id_sd_opl2alsa.c
index 433eb49..f94fe20 100644
--- a/src/id_sd_opl2alsa.c
+++ b/src/id_sd_opl2alsa.c
@@ -21,7 +21,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#include <stdint.h>
#include <stdio.h>
#include <string.h>
-#include <sys/io.h>
#include <alsa/asoundlib.h>
#include <sound/asound_fm.h>
--
2.40.0

View File

@ -1,16 +1,16 @@
<services> <services>
<service mode="disabled" name="tar_scm"> <service mode="manual" name="tar_scm">
<param name="url">https://github.com/sulix/omnispeak.git</param> <param name="url">https://github.com/sulix/omnispeak.git</param>
<param name="scm">git</param> <param name="scm">git</param>
<param name="revision">master</param> <param name="revision">master</param>
<param name="changesgenerate">enable</param> <param name="changesgenerate">enable</param>
<param name="versionformat">@PARENT_TAG@+git%cd</param> <param name="versionformat">@PARENT_TAG@+git%cd.%h</param>
<param name="versionrewrite-pattern">v(.*)</param> <param name="versionrewrite-pattern">v(.*)</param>
</service> </service>
<service mode="disabled" name="recompress"> <service mode="manual" name="recompress">
<param name="file">*.tar</param> <param name="file">*.tar</param>
<param name="compression">xz</param> <param name="compression">xz</param>
</service> </service>
<service mode="disabled" name="set_version"/> <service mode="manual" name="set_version"/>
</services> </services>

View File

@ -1,4 +0,0 @@
<servicedata>
<service name="tar_scm">
<param name="url">https://github.com/sulix/omnispeak.git</param>
<param name="changesrevision">72033b4e56bb596061d069a2db1215cd8eb591f5</param></service></servicedata>

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7b58310814e4b81f14c87f9596c0b0cac584b910c23f86762da013c3aaab1b5a
size 1250448

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a47718a73308fbc3aac0c0923626ea5a4d34034fea198ebbf7ac41757bd2525e
size 1576564

View File

@ -1,3 +1,17 @@
-------------------------------------------------------------------
Sat Feb 03 12:26:12 UTC 2024 - mardnh@gmx.de
- Update to snapshot 1.1+git20240123 (b9e215b)
* Add liboplhw-based driver
* Initial support for OS text events
* Initial support for Game Controller bindings
* Add infrastructure for detecting soundcards
* Allow disabling "pole door glitches"
* Re-restrict platform surfing to Ep 5
* Add 70Hz ledge grabbing fix.
- Drop patch (not longer needed):
* 0001-sd_opl2alsa-Don-t-include-x86-specific-headers.patch
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Mar 23 09:38:19 UTC 2023 - Jan Engelhardt <jengelh@inai.de> Thu Mar 23 09:38:19 UTC 2023 - Jan Engelhardt <jengelh@inai.de>
@ -7,4 +21,4 @@ Thu Mar 23 09:38:19 UTC 2023 - Jan Engelhardt <jengelh@inai.de>
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Feb 21 20:37:27 UTC 2023 - Martin Hauke <mardnh@gmx.de> Tue Feb 21 20:37:27 UTC 2023 - Martin Hauke <mardnh@gmx.de>
- Initial package, version 1.1+git20230213 - Initial package, version 1.1+git20230213 (72033b4e5)

View File

@ -1,8 +1,8 @@
# #
# spec file for package omnispeak # spec file for package omnispeak
# #
# Copyright (c) 2023 SUSE LLC # Copyright (c) 2024 SUSE LLC
# Copyright (c) 2023, Martin Hauke <mardnh@gmx.de> # Copyright (c) 2023-2024, Martin Hauke <mardnh@gmx.de>
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -18,7 +18,7 @@
Name: omnispeak Name: omnispeak
Version: 1.1+git20230213 Version: 1.1+git20240123.b9e215b
Release: 0 Release: 0
Summary: An reimplementation of "Commander Keen in Goodbye Galaxy!" Summary: An reimplementation of "Commander Keen in Goodbye Galaxy!"
License: GPL-2.0-only License: GPL-2.0-only
@ -29,11 +29,11 @@ Source: %{name}-%{version}.tar.xz
Source1: omnispeak-keen4-wrapper.sh Source1: omnispeak-keen4-wrapper.sh
Source2: omnispeak-keen5-wrapper.sh Source2: omnispeak-keen5-wrapper.sh
Source3: omnispeak-keen6-wrapper.sh Source3: omnispeak-keen6-wrapper.sh
Patch1: 0001-sd_opl2alsa-Don-t-include-x86-specific-headers.patch
BuildRequires: cmake BuildRequires: cmake
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRequires: hicolor-icon-theme BuildRequires: hicolor-icon-theme
BuildRequires: libieee1284-devel
BuildRequires: pkgconfig BuildRequires: pkgconfig
BuildRequires: pkgconfig(alsa) BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(sdl2) BuildRequires: pkgconfig(sdl2)
@ -70,7 +70,7 @@ from the directory where the original game files are located.
-DXDGUSERPATH=OFF \ -DXDGUSERPATH=OFF \
-DOMNIPATH=%{_datadir}/omnispeak \ -DOMNIPATH=%{_datadir}/omnispeak \
-DWITH_ALSA=ON \ -DWITH_ALSA=ON \
-DWITH_IEEE1284=OFF -DWITH_IEEE1284=ON
%cmake_build %cmake_build
%install %install