325.8. fheroes2-1.1.17
Heroes of Might and Magic II engine, for a player's own copy of the game data
1.1.17-1 · GPL-2.0-or-later · 6.8 SBU · 9.3 MiB, 18 files · 44_apps, 208 of 422 · ports/core/games-strategy/fheroes2
Homepage: https://ihhub.github.io/fheroes2/
Depends on: cmake, ninja, pkgconf, sdl2-compat, sdl2-mixer, sdl2-image, libpng, zlib.
Required by: no port names it.
Sources: fheroes2-1.1.17.tar.gz (12.5 MiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/44_apps/phase.env && kpkg install fheroes2'
build.sh:
mkdir build && cd build
cmake .. -G Ninja \
-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DUSE_SDL_VERSION=SDL2 \
-DENABLE_IMAGE=ON \
-DENABLE_TOOLS=OFF \
-DGET_HOMM2_DEMO=OFF \
-DFHEROES2_DATA=share/fheroes2
ninja fheroes2
DESTDIR=$PKG cmake --install .
cd ..
rm -f "$PKG/usr/share/applications/fheroes2.desktop"
cat > "$PKG/usr/share/applications/fheroes2.desktop" <<'DESKTOP'
[Desktop Entry]
Type=Application
Name=fheroes2
GenericName=Turn-based Strategy Game
Comment=Heroes of Might and Magic II, from your own game data
Exec=fheroes2
Icon=fheroes2
Terminal=false
StartupWMClass=fheroes2
Categories=Game;StrategyGame;
Keywords=heroes;homm2;might;magic;strategy;fheroes2;
DESKTOP
chmod 644 "$PKG/usr/share/applications/fheroes2.desktop"
Programs: fheroes2.
Directories: /usr/share/doc/fheroes2, /usr/share/fheroes2, /usr/share/licenses/fheroes2.