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:
Cristian Morales Vega 2010-05-03 19:49:05 +00:00 committed by Git OBS Bridge
parent 3f84acb664
commit f39b50eeec
2 changed files with 20 additions and 0 deletions

17
scummvm-nobuildtime.patch Normal file
View 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

View File

@ -27,6 +27,7 @@ License: GPLv2+, LGPLv2.1 or later
Url: http://www.scummvm.org
Source: http://downloads.sf.net/%{name}/%{name}-%{version}.tar.bz2
Patch0: %{name}-nostrip.patch
Patch1: %{name}-nobuildtime.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: SDL-devel >= 1.2.2 flac-devel libvorbis-devel zlib-devel
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
%setup -q
%patch0
%patch1
%build
%ifarch %ix86
@ -84,6 +86,7 @@ CXXFLAGS="$RPM_OPT_FLAGS" ; export CXXFLAGS ; \
--datadir=%{_datadir} \
--mandir=%{_mandir} \
--libdir=%{_libdir} \
%{?with_mpeg2:--enable-mpeg2} \
--enable-verbose-build \
--enable-plugins \
--enable-m4=dynamic \