Fix conditional MPEG2 support and remove builddate from code
OBS-URL: https://build.opensuse.org/package/show/games/scummvm?expand=0&rev=15
This commit is contained in:
parent
3f84acb664
commit
f39b50eeec
17
scummvm-nobuildtime.patch
Normal file
17
scummvm-nobuildtime.patch
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
Index: base/version.cpp
|
||||||
|
===================================================================
|
||||||
|
--- base/version.cpp.orig
|
||||||
|
+++ base/version.cpp
|
||||||
|
@@ -57,9 +57,9 @@
|
||||||
|
* to properly work in exports (i.e. release tar balls etc.).
|
||||||
|
*/
|
||||||
|
const char *gScummVMVersion = SCUMMVM_VERSION;
|
||||||
|
-const char *gScummVMBuildDate = __DATE__ " " __TIME__;
|
||||||
|
-const char *gScummVMVersionDate = SCUMMVM_VERSION " (" __DATE__ " " __TIME__ ")";
|
||||||
|
-const char *gScummVMFullVersion = "ScummVM " SCUMMVM_VERSION " (" __DATE__ " " __TIME__ ")";
|
||||||
|
+const char *gScummVMBuildDate = "";
|
||||||
|
+const char *gScummVMVersionDate = SCUMMVM_VERSION;
|
||||||
|
+const char *gScummVMFullVersion = "ScummVM " SCUMMVM_VERSION;
|
||||||
|
const char *gScummVMFeatures = ""
|
||||||
|
#ifdef USE_TREMOR
|
||||||
|
#ifdef USE_TREMOLO
|
@ -27,6 +27,7 @@ License: GPLv2+, LGPLv2.1 or later
|
|||||||
Url: http://www.scummvm.org
|
Url: http://www.scummvm.org
|
||||||
Source: http://downloads.sf.net/%{name}/%{name}-%{version}.tar.bz2
|
Source: http://downloads.sf.net/%{name}/%{name}-%{version}.tar.bz2
|
||||||
Patch0: %{name}-nostrip.patch
|
Patch0: %{name}-nostrip.patch
|
||||||
|
Patch1: %{name}-nobuildtime.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: SDL-devel >= 1.2.2 flac-devel libvorbis-devel zlib-devel
|
BuildRequires: SDL-devel >= 1.2.2 flac-devel libvorbis-devel zlib-devel
|
||||||
BuildRequires: fluidsynth-devel gcc-c++ update-desktop-files
|
BuildRequires: fluidsynth-devel gcc-c++ update-desktop-files
|
||||||
@ -71,6 +72,7 @@ These engines are in a worse state, but allow to play extra games.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0
|
%patch0
|
||||||
|
%patch1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%ifarch %ix86
|
%ifarch %ix86
|
||||||
@ -84,6 +86,7 @@ CXXFLAGS="$RPM_OPT_FLAGS" ; export CXXFLAGS ; \
|
|||||||
--datadir=%{_datadir} \
|
--datadir=%{_datadir} \
|
||||||
--mandir=%{_mandir} \
|
--mandir=%{_mandir} \
|
||||||
--libdir=%{_libdir} \
|
--libdir=%{_libdir} \
|
||||||
|
%{?with_mpeg2:--enable-mpeg2} \
|
||||||
--enable-verbose-build \
|
--enable-verbose-build \
|
||||||
--enable-plugins \
|
--enable-plugins \
|
||||||
--enable-m4=dynamic \
|
--enable-m4=dynamic \
|
||||||
|
Loading…
Reference in New Issue
Block a user