Package scummvm: Specfile

Name: scummvm
Version: 2.8.0
Release: alt1

Summary: Graphic adventure game interpreter
Group: Games/Adventure
License: GPLv2
Url: http://www.scummvm.org

Source: %name-%version.tar.gz
Patch: scummvm-1.3.0-mp2player.patch
Patch1: scummvm-2.2.0-Fluidsynth2.2.patch

Provides: %_gamesdatadir/%name

# Automatically added by buildreq on Sun Dec 31 2023
# optimized out: at-spi2-atk bash5 glib2-devel glibc-kernheaders-generic glibc-kernheaders-x86 libSDL-devel libX11-devel libat-spi2-core libatk-devel libcairo-devel libcairo-gobject libcairo-gobject-devel libflac-devel libfreetype-devel libgdk-pixbuf libgdk-pixbuf-devel libgio-devel libgpg-error libharfbuzz-devel libogg-devel libp11-kit libpango-devel libpng-devel libpulseaudio-devel libsasl2-3 libstdc++-devel libvorbis-devel libwayland-client libwayland-cursor libwayland-egl pipewire-jack-libs pipewire-libs pkg-config python3 python3-base python3-dev python3-module-setuptools sh5 xorg-proto-devel zlib-devel
BuildRequires: curl gcc-c++ git-core libSDL_net-devel liba52-devel libalsa-devel libcurl-devel libfaad-devel libfluidsynth-devel libfribidi-devel libgif-devel libgtk+3-devel libjpeg-devel libmad-devel libmikmod-devel libmpeg2-devel libreadline-devel libspeechd-devel libtheora-devel

%description
ScummVM is a collection of interpreters, capable of emulating several
adventure game engines. ScummVM mainly supports games created using
SCUMM (Script Creation Utility for Maniac Mansion), used in various
LucasArts games such as Monkey Island, Day of the Tentacle, and others.

%prep
%setup
%patch -p1
#patch1 -p1

%build
export CXXFLAGS=-DFS_API_VERSION=0x0202
./configure \
	--prefix=%prefix \
	--bindir=%_bindir \
	--mandir=%_mandir \
	--libdir=%_libdir \
	--enable-release \
	--enable-plugins --default-dynamic \
	--disable-nasm --disable-tremor \
	--enable-text-console \
	--enable-all-engines \
	--enable-vkeybd
%make_build

%install
%makeinstall_std

# Menu, themes and extra files
cp -a dists/engine-data %buildroot%_datadir/%name

install -D dists/maemo/scummvm64.png %buildroot%_iconsdir/hicolor/64x64/apps/%name.png
install -D dists/maemo/scummvm48.png %buildroot%_iconsdir/hicolor/48x48/apps/%name.png
install -D dists/emscripten/assets/scummvm-192.png buildroot%_iconsdir/hicolor/192x192/apps/%name.png
install -D dists/emscripten/assets/scummvm-512.png buildroot%_iconsdir/hicolor/512x512/apps/%name.png

install -D icons/scummvm.svg %buildroot%_iconsdir/hicolor/scalable/apps/%name.svg

%files
%doc AUTHORS* README* NEWS* TODO* COPYING*
%exclude %_defaultdocdir/%name
%_bindir/scummvm
%_man6dir/scummvm.6*
%_pixmapsdir/*.xpm
%_datadir/applications/*.desktop
%_datadir/metainfo/*
%_iconsdir/hicolor/*/apps/*
%dir %_libdir/%name
%_libdir/%name/*
%dir %_datadir/%name
%_datadir/%name/*

%changelog
* Sun Dec 31 2023 Fr. Br. George <george@altlinux.org> 2.8.0-alt1
- Autobuild version bump to 2.8.0
- Update buildreqs

* Thu Aug 04 2022 Fr. Br. George <george@altlinux.org> 2.6.0-alt1
- Autobuild version bump to 2.6.0

* Tue Jan 25 2022 Fr. Br. George <george@altlinux.ru> 2.5.1-alt1
- Autobuild version bump to 2.5.1

* Wed Oct 20 2021 Fr. Br. George <george@altlinux.ru> 2.5.0-alt1
- Autobuild version bump to 2.5.0

* Fri May 28 2021 Fr. Br. George <george@altlinux.ru> 2.2.0-alt2
- Build with fluidsynth 2.2.1

* Sun Oct 04 2020 Fr. Br. George <george@altlinux.ru> 2.2.0-alt1
- Autobuild version bump to 2.2.0

* Sun Apr 26 2020 Fr. Br. George <george@altlinux.ru> 2.1.1-alt1
- Autobuild version bump to 2.1.1
- Apply gentoo patch

* Wed Nov 06 2019 Fr. Br. George <george@altlinux.ru> 2.1.0-alt1
- Autobuild version bump to 2.1.0

* Tue Feb 20 2018 Fr. Br. George <george@altlinux.ru> 2.0.0-alt1
- Autobuild version bump to 2.0.0

* Thu Jul 27 2017 Fr. Br. George <george@altlinux.ru> 1.9.0-alt1
- Autobuild version bump to 1.9.0

* Tue Jul 26 2016 Fr. Br. George <george@altlinux.ru> 1.8.1-alt1
- Autobuild version bump to 1.8.1

* Mon Jul 14 2014 Fr. Br. George <george@altlinux.ru> 1.7.0-alt1
- Autobuild version bump to 1.7.0

* Mon Jun 10 2013 Fr. Br. George <george@altlinux.ru> 1.6.0-alt1
- Autobuild version bump to 1.6.0

* Sun Jul 22 2012 Fr. Br. George <george@altlinux.ru> 1.5.0-alt1
- Autobuild version bump to 1.5.0

* Fri Feb 10 2012 Fr. Br. George <george@altlinux.ru> 1.4.1-alt1
- Autobuild version bump to 1.4.1

* Thu Nov 10 2011 Fr. Br. George <george@altlinux.ru> 1.4.0-alt1
- Autobuild version bump to 1.4.0
- Fix build and dependencies

* Sat Jul 23 2011 Fr. Br. George <george@altlinux.ru> 1.3.1-alt1
- Autobuild version bump to 1.3.1

* Wed Jun 01 2011 Fr. Br. George <george@altlinux.ru> 1.3.0-alt1
- Autobuild version bump to 1.3.0
- Some extensions enabled
- Some icons added

* Thu Nov 18 2010 Alexey I. Froloff <raorn@altlinux.org> 1.2.0-alt1
- [1.2.0]
 + Fascination
 + Sierra SCI0 - SCI1.1 (see NEWS for full list)
 + Added support for GUI localization

* Tue Sep 28 2010 Alexey I. Froloff <raorn@altlinux.org> 1.1.1-alt1
- [1.1.1]
 + Blue's Art Time Activities
 + Blue's Reading Time Activities
 + Freddi Fish 5: The Case of the Creature of Coral Cove
 + Pajama Sam: Games to Play on Any Day
 + SPY Fox 3: Operation Ozone
 + Dragon History
 + TeenAgent

* Mon Feb 15 2010 Alexey I. Froloff <raorn@altlinux.org> 1.0.0-alt1
- [1.0.0]
 + Discworld
 + Discworld 2 - Missing Presumed ...!?
 + Return to Zork
 + Leather Goddesses of Phobos 2
 + The Manhole
 + Rodney's Funscreen
 + Cruise for a Corpse

* Mon Jun 15 2009 Alexey I. Froloff <raorn@altlinux.org> 0.13.1-alt1
- [0.13.1]

* Wed Mar 11 2009 Sir Raorn <raorn@altlinux.ru> 0.13.0-alt1
- [0.13.0]
 + Blue's 123 Time Activities
 + Blue's ABC Time Activities
 + Bud Tucker in Double Trouble
 + The 7th Guest
- Fixed desktop-file-validate warnings

* Sun Jan 11 2009 Sir Raorn <raorn@altlinux.ru> 0.12.0-alt2
- Disabled ix86 assembly optimizations
- Removed obsolete %%update_menus/%%clean_menus calls

* Tue Sep 02 2008 Sir Raorn <raorn@altlinux.ru> 0.12.0-alt1
- [0.12.0]
 + The Legend of Kyrandia: Book Two: Hand of Fate
 + The Legend of Kyrandia: Book Three: Malcolm's Revenge
 + Lost in Time
 + The Bizarre Adventures of Woodruff and the Schnibble
 + Waxworks (PC version)
 + I Have no Mouth, and I must Scream (Macintosh version)
 + Drascula: The Vampire Strikes Back

* Thu Jan 24 2008 Sir Raorn <raorn@altlinux.ru> 0.11.0-alt1
- [0.11.0]
 + I Have no Mouth, and I Must Scream (demo and full game)
 + Elvira: Mistress of the Dark and Elvira 2: The Jaws of Cerberus
 + Better support for early Sierra AGI titles

* Fri Dec 14 2007 Sir Raorn <raorn@altlinux.ru> 0.10.0-alt2
- Engine data updated from tag release-0-10-0

* Thu Aug 23 2007 Sir Raorn <raorn@altlinux.ru> 0.10.0-alt1
- [0.10.0]
 + Sierra AGI engine: Space Quest I & II, King's Quest I-III and many
   more, including a vast number of fan-made games
 + Cinematique evo 1 engine: Future Wars
 + GOB engine: Bargon Attack, Gobliins 2, Goblins 3, Ween: The Prophecy
 + AGOS engine: Simon the Sorcerer's Puzzle Pack
 + Parallaction engine: Nippon Safes Inc.
 + Touche: The Adventures of the Fifth Musketeer engine

* Tue Dec 12 2006 Sir Raorn <raorn@altlinux.ru> 0.9.1-alt1
- [0.9.1]

* Fri Jun 30 2006 Sir Raorn <raorn@altlinux.ru> 0.9.0-alt1
- [0.9.0]
 + Support for The Legend of Kyrandia and The Feeble Files
 + New improved GUI
 + Reworked detection code for SCUMM games
 + Added subtitle configuration controls to the options dialog
 + Numerous bugfixes in the SCUMM, SAGA, Simon, Broken Sword 2 and BASS engines
- Default theme placed in %_datadir/%name/themes
- Added sky.cpt and kyra.dat from https://svn.sourceforge.net/svnroot/scummvm/engine-data/trunk/
- Default "extrapath" set to %_datadir/%name/engine-data
- Default "themepath" set to %_datadir/%name/themes

* Sun Feb 12 2006 Sir Raorn <raorn@altlinux.ru> 0.8.2-alt1
- [0.8.2]

* Tue Jan 31 2006 Sir Raorn <raorn@altlinux.ru> 0.8.1-alt1
- [0.8.1]
- Removed debian-style menu

* Mon Oct 31 2005 Sir Raorn <raorn@altlinux.ru> 0.8.0-alt1
- [0.8.0]
- Updated Summary/description
- Fixed menu entry (closes: #5352)
- Added .desktop file
- Added %%_gamesdatadir/%name

* Tue Mar 29 2005 Sir Raorn <raorn@altlinux.ru> 0.7.1-alt1
- [0.7.1]
- Summary/Description translations dropped (specspo migration)

* Fri Dec 24 2004 Sir Raorn <raorn@altlinux.ru> 0.7.0-alt1
- [0.7.1]
- Wrapper is no longer needed (upstram sets default save path to ~/.scummvm)

* Wed Aug 04 2004 Sir Raorn <raorn@altlinux.ru> 0.6.1-alt1.1
- Oops! Fix %_bindir/scummvm attrs

* Tue Aug 03 2004 Sir Raorn <raorn@altlinux.ru> 0.6.1-alt1
- [0.6.1]
- Keep save files in ~/.scummvm (Closes #3921)

* Sat Mar 27 2004 Sir Raorn <raorn@altlinux.ru> 0.6.0-alt1
- 0.6.0

* Mon Feb 23 2004 Sir Raorn <raorn@altlinux.ru> 0.5.1-alt2
- CVS snapshot 20040223 (0.5.7-cvs)

* Wed Aug 13 2003 Vyacheslav Dikonov <slava@altlinux.ru> 0.5.1-alt1
- 0.5.1

* Wed Jun 25 2003 Vyacheslav Dikonov <slava@altlinux.ru> 0.4.1-alt1
- 0.4.1

* Mon Dec 23 2002 Vyacheslav Dikonov <slava@altlinux.ru> 0.3.0b-alt1
- ALTLnux build