mirror of
https://abf.rosa.ru/djam/fheroes2.git
synced 2025-02-23 09:42:53 +00:00
Automatic import for version 20111109
This commit is contained in:
commit
3883b8d4e0
7 changed files with 194 additions and 0 deletions
2
.abf.yml
Normal file
2
.abf.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
sources:
|
||||
"fheroes2-src-r2693.tgz": eb2ea3323e1f3bde05ba5c35a12db6f7f8b6f39e
|
11
fheroes2-r2693-zlib.patch
Normal file
11
fheroes2-r2693-zlib.patch
Normal file
|
@ -0,0 +1,11 @@
|
|||
diff -urN fheroes-src/src/engine/IMG_savepng.cpp fheroes-src-patched/src/engine/IMG_savepng.cpp
|
||||
--- fheroes-src/src/engine/IMG_savepng.cpp 2010-03-23 11:44:39.000000000 +1000
|
||||
+++ fheroes-src-patched/src/engine/IMG_savepng.cpp 2011-12-09 00:48:27.819222589 +1100
|
||||
@@ -29,6 +29,7 @@
|
||||
* 11/08/2004 - Compr fix, levels -1,1-7 now work - Tyler Montbriand
|
||||
*/
|
||||
#include <stdlib.h>
|
||||
+#include <zlib.h>
|
||||
#include "SDL.h"
|
||||
#include "IMG_savepng.h"
|
||||
|
81
fheroes2.cfg
Normal file
81
fheroes2.cfg
Normal file
|
@ -0,0 +1,81 @@
|
|||
# Default config fheroes2.cfg options:
|
||||
#
|
||||
# path to directory data
|
||||
# data = data
|
||||
#
|
||||
# path to directory maps, you can set few maps
|
||||
# maps = maps
|
||||
# maps = c:\other_maps
|
||||
#
|
||||
# use alternative resource
|
||||
# alt resource = off
|
||||
#
|
||||
# sound: on off
|
||||
sound = on
|
||||
#
|
||||
# music: on,midi,cd,ext,off
|
||||
music = on
|
||||
#
|
||||
# sound volume: 0 - 10
|
||||
sound volume = 6
|
||||
#
|
||||
# music volume: 0 - 10
|
||||
music volume = 6
|
||||
#
|
||||
# external play music command:
|
||||
# playmus command = ""
|
||||
#
|
||||
# video mode (640x480, 800x576, 1024x768, 1280x1024 or other divisible 32)
|
||||
videomode = 1024x768
|
||||
#
|
||||
# heroes move speed: 0 - 10
|
||||
# heroes speed = 5
|
||||
#
|
||||
# AI move speed: 0 - 10
|
||||
# ai speed = 5
|
||||
#
|
||||
# battle speed: 0 - 10
|
||||
# battle speed = 5
|
||||
#
|
||||
# scroll speed: 1 - 4
|
||||
# scroll speed = 2
|
||||
#
|
||||
# fullscreen: on off (F4 switch)
|
||||
fullscreen = on
|
||||
#
|
||||
# debug (0 - 9)
|
||||
debug = off
|
||||
#
|
||||
# use ttf fonts
|
||||
# unicode = off
|
||||
#
|
||||
# force lang
|
||||
# lang = en
|
||||
#
|
||||
# force encode maps text
|
||||
# maps charset =
|
||||
#
|
||||
# font name (only with unicode = on)
|
||||
# fonts normal = bigfonts.ttf
|
||||
# fonts small = smallfonts.ttf
|
||||
# fonts normal size = 15
|
||||
# fonts small size = 10
|
||||
#
|
||||
# fonts render engine: (blended/solid) (only with unicode = on)
|
||||
# fonts small render = solid
|
||||
# fonts normal render = solid
|
||||
#
|
||||
# network port:
|
||||
# port = 5154
|
||||
#
|
||||
# pocket pc emulation (set auto on for videomode < 640x480)
|
||||
# pocket pc = off
|
||||
#
|
||||
# pocket pc options:
|
||||
# tap delay = 1050
|
||||
# pointer offset x = 0
|
||||
# pointer offset y = 0
|
||||
#
|
||||
# move mouse from keyboard (also see fheroes2.key):
|
||||
# emulate mouse = off
|
||||
# emulate mouse step = 10
|
9
fheroes2.desktop
Normal file
9
fheroes2.desktop
Normal file
|
@ -0,0 +1,9 @@
|
|||
[Desktop Entry]
|
||||
Name=Free Heroes 2
|
||||
Comment=Heroes Of Might And Magic 2 Engine
|
||||
Exec=/usr/games/fheroes2
|
||||
Icon=fheroes2
|
||||
StartupNotify=true
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Categories=Game;StrategyGame;
|
BIN
fheroes2.png
Normal file
BIN
fheroes2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.2 KiB |
25
fheroes2.sh
Executable file
25
fheroes2.sh
Executable file
|
@ -0,0 +1,25 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ ! -s /usr/share/games/fheroes2/data/HEROES2.AGG ]; then
|
||||
echo "You need to copy files from data and maps directories from original game"
|
||||
echo "into your /usr/share/games/fheroes2/{maps,data} directories respectively"
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
|
||||
if [ ! -d "$HOME/.fheroes2" ]; then
|
||||
mkdir -p $HOME/.fheroes2/files/save
|
||||
|
||||
ln -s /usr/share/games/fheroes2/data $HOME/.fheroes2/data
|
||||
ln -s /usr/share/games/fheroes2/maps $HOME/.fheroes2/maps
|
||||
|
||||
for i in fonts images lang music sounds stats; do
|
||||
ln -s /usr/share/games/fheroes2/files/$i $HOME/.fheroes2/files/$i
|
||||
done
|
||||
|
||||
cp /usr/share/games/fheroes2/fheroes2.cfg $HOME/.fheroes2/
|
||||
fi
|
||||
|
||||
export FHEROES2_DATA=$HOME/.fheroes2
|
||||
/usr/games/fheroes2.bin
|
||||
|
66
fheroes2.spec
Normal file
66
fheroes2.spec
Normal file
|
@ -0,0 +1,66 @@
|
|||
%define rev r2693
|
||||
Name: fheroes2
|
||||
Version: 20111109
|
||||
Release: %mkrel 1
|
||||
Summary: Free implementation of Heroes of the Might and Magic II engine
|
||||
License: GPL
|
||||
Group: Games/Strategy
|
||||
Url: http://sourceforge.net/projects/fheroes2/
|
||||
Source: http://sourceforge.net/projects/fheroes2/files/fheroes2/%{name}-src-%{rev}.tgz
|
||||
Source2: %{name}.sh
|
||||
Source3: %{name}.png
|
||||
Source4: %{name}.desktop
|
||||
Source5: %{name}.cfg
|
||||
Patch0: fheroes2-r2693-zlib.patch
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: SDL_image-devel
|
||||
BuildRequires: SDL_mixer-devel
|
||||
BuildRequires: SDL_net-devel
|
||||
BuildRequires: SDL_ttf-devel
|
||||
BuildRequires: freetype-devel
|
||||
BuildRequires: png-devel
|
||||
BuildRequires: zlib-devel
|
||||
|
||||
%description
|
||||
Free implementation of Heroes of the Might and Magic II engine.
|
||||
You need to copy files from data and maps directories from original game
|
||||
into your /usr/share/games/fheroes2/{maps,data} directories respectively
|
||||
|
||||
%prep
|
||||
%setup -qn fheroes-src
|
||||
%patch0 -p1 -b .zlib
|
||||
|
||||
%build
|
||||
%make WITH_AI=simple CONFIGURE_FHEROES2_DATA="%{_gamesdatadir}/%{name}/"
|
||||
|
||||
%install
|
||||
# let's create directory structure...
|
||||
%__mkdir_p %{buildroot}%{_gamesbindir}
|
||||
%__mkdir_p %{buildroot}%{_datadir}/applications
|
||||
%__mkdir_p %{buildroot}%{_datadir}/pixmaps
|
||||
%__mkdir_p %{buildroot}%{_gamesdatadir}/%{name}/{data,maps}
|
||||
|
||||
# and install what we need where we need it to be...
|
||||
%__install -pm755 %{name} %{buildroot}%{_gamesbindir}/%{name}.bin
|
||||
%__install -pm755 %{SOURCE2} %{buildroot}%{_gamesbindir}/%{name}
|
||||
%__install -pm 644 %{name}.cfg %{buildroot}%{_gamesdatadir}/%{name}/
|
||||
%__install -pm 644 %{name}.key %{buildroot}%{_gamesdatadir}/%{name}/
|
||||
%__install -pm 644 %{SOURCE3} %{buildroot}%{_datadir}/pixmaps/%{name}.png
|
||||
%__install -pm 644 %{SOURCE4} %{buildroot}%{_datadir}/applications/%{name}.desktop
|
||||
%__install -pm 644 %{SOURCE5} %{buildroot}%{_gamesdatadir}/%{name}/
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc AUTHORS changelog.txt COPYING LICENSE README
|
||||
%{_gamesbindir}/*
|
||||
%{_datadir}/pixmaps/%{name}.png
|
||||
%{_datadir}/applications/%{name}.desktop
|
||||
%{_gamesdatadir}/%{name}
|
||||
|
||||
|
||||
|
||||
%changelog
|
||||
* Thu Dec 08 2011 Andrey Bondrov <abondrov@mandriva.org> 20111109-1mdv2012.0
|
||||
+ Revision: 739019
|
||||
- imported package fheroes2
|
||||
|
Loading…
Add table
Reference in a new issue