Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fheroes2: update to 0.9.6 #11808

Merged
merged 2 commits into from
Aug 8, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 36 additions & 31 deletions games/fheroes2/Portfile
Original file line number Diff line number Diff line change
@@ -1,49 +1,54 @@
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem 1.0
PortSystem 1.0

PortGroup github 1.0
PortGroup cmake 1.1
PortGroup github 1.0
PortGroup cmake 1.1

github.setup ihhub fheroes2 0.9.4
github.setup ihhub fheroes2 0.9.6

categories games
platforms darwin
maintainers {@oleg-derevenetz gmail.com:oleg.derevenetz} openmaintainer
license GPL-2
categories games
platforms darwin
maintainers {@oleg-derevenetz gmail.com:oleg.derevenetz} openmaintainer
license GPL-2

description Free implementation of Heroes of Might and Magic II game engine
long_description ${description}
description Free implementation of Heroes of Might and Magic II game engine
long_description \
${description}

homepage https://ihhub.github.io/fheroes2/
homepage https://ihhub.github.io/fheroes2/

checksums rmd160 bbbc2533b03b432e4c0fa990bd63718ce41797ea \
sha256 d8c41db87cfa0fca42dae288c130dffd700a4c3d18051d9d9030069c9b8184bb \
size 4530628
checksums rmd160 a112a7467328bbfc855866a40b0a9a5b951aaa91 \
sha256 955ca7e0effe342e0437bf3e28c9e1ec0da53b376f8f402e94330dba602aab4d \
size 3179269

depends_lib port:libiconv \
port:libpng \
port:zlib \
port:libsdl2 \
port:libsdl2_ttf \
port:libsdl2_mixer \
port:libsdl2_image
depends_build port:gettext

patchfiles patch-mapregion-ctor.diff \
patch-missing-headers.diff \
patch-readme-txt.diff
depends_lib port:libpng \
port:zlib \
port:libsdl2 \
port:libsdl2_mixer \
port:libsdl2_image

compiler.cxx_standard 2011
compiler.thread_local_storage yes
patchfiles patch-readme-txt.diff

compiler.cxx_standard \
2011
compiler.thread_local_storage \
yes

post-build {
exec make -f Makefile -C ${worksrcpath}/files/lang
}

post-destroot {
xinstall -d -m 0755 ${destroot}${prefix}/share/examples/fheroes2
xinstall -d -m 0755 ${destroot}${prefix}/share/fheroes2/files/lang

xinstall -m 0644 ${worksrcpath}/LICENSE ${destroot}${prefix}/share/doc/fheroes2
xinstall -m 0644 ${worksrcpath}/fheroes2.key ${destroot}${prefix}/share/examples/fheroes2
xinstall -m 0755 ${worksrcpath}/script/demo/demo_unix.sh ${destroot}${prefix}/bin
xinstall -m 0644 ${worksrcpath}/LICENSE ${destroot}${prefix}/share/doc/fheroes2
xinstall -m 0644 ${worksrcpath}/fheroes2.key ${destroot}${prefix}/share/fheroes2
xinstall -m 0644 {*}[glob ${worksrcpath}/files/lang/*.mo] ${destroot}${prefix}/share/fheroes2/files/lang

move ${destroot}${prefix}/bin/demo_unix.sh ${destroot}${prefix}/bin/fheroes2-install-demo
copy ${destroot}${prefix}/share/doc/fheroes2/demo/demo_unix.sh ${destroot}${prefix}/bin/fheroes2-install-demo
}

notes "
Expand Down
10 changes: 0 additions & 10 deletions games/fheroes2/files/patch-mapregion-ctor.diff

This file was deleted.

142 changes: 0 additions & 142 deletions games/fheroes2/files/patch-missing-headers.diff

This file was deleted.

37 changes: 17 additions & 20 deletions games/fheroes2/files/patch-readme-txt.diff
Original file line number Diff line number Diff line change
@@ -1,25 +1,22 @@
--- doc/README.txt.orig 2021-06-11 01:14:58.000000000 +0300
+++ doc/README.txt 2021-06-11 01:30:03.000000000 +0300
@@ -6,15 +6,16 @@
download a free demo version of the game with help of our scripts.
--- docs/README.txt.orig 2021-06-11 01:14:58.000000000 +0300
+++ docs/README.txt 2021-06-11 01:30:03.000000000 +0300
@@ -10,13 +10,14 @@
Magic II game to be able to play.

--- Installation and Requirements ---
-You are required to have at a demo or full version of Heroes of Might and Magic II
-game to be able to play it.
+You will need to have a demo version or the full version of Heroes of Might and
+Magic II game to be able to play.
If you do not have the original Heroes of Might and Magic II game, please run
-'demo_windows.bat' file for Windows or 'demo_unix.sh' for Linux OS and macOS.
-This script will download and install all the necessary files from the demo
-version of the original Heroes of Might and Magic II game.
+'fheroes2-install-demo' script. This script will download and install all the
+necessary files from the demo version of the original Heroes of Might and Magic II
+game.

If you do not have the original Heroes of Might and Magic II game please run
-'demo_windows.bat' file on Windows or 'demo_unix.sh' for Linux OS and MacOS.
-This script will download and install all needed files.
+'fheroes2-install-demo' script. This script will download and install all needed
+files.

-If you have a legally purchased game, you need to copy all files which belong to
-fheroes2 into a folder with the original game.
+If you have a legally purchased game, you need to copy all the files belonging to
+the original game to the '.fheroes2' subdirectory of your home directory (it will
+be created when you start the game for a first time).
If you have a legally purchased copy of the original game, you will need to
-copy all files belonging to the original game to the fheroes2 installation
-directory.
+copy all files belonging to the original game to the '.fheroes2' subdirectory
+of your home directory (it will be created when you start the game for a first
+time).

--- License ---
This project is under GNU General Public License v2.0. Please refer to file