- Resurrect games/lordsawar, unbreak, take maintainership

A turn-based strategy game where up to 8 players strive for control
of as many cities as possible. Produce new armies in cities to
conquer nearby cities. Using the income from those cities, make
more armies to take more cities. Send a hero to a temple to get a
quest, or maybe search a nearby ruin instead. Play with others or
against the computer.

WWW: http://www.nongnu.org/lordsawar/
This commit is contained in:
Dmitry Marakasov 2017-12-01 13:29:44 +00:00
parent c48ef0dc8b
commit b2bc2f009e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=455290
13 changed files with 414 additions and 1 deletions

1
MOVED
View File

@ -9603,7 +9603,6 @@ net/libsocketcpp||2017-11-06|Has expired: Uses gets(3)
security/py-btchip|security/py-btchip-python|2017-11-07|Rename to reflect official Python modules naming scheme
devel/pear-PPW||2017-11-09|Has expired: Project is EoL
lang/ats||2017-11-11|Has expired: Unmaintained, outdated, needs lots of refreshment
games/lordsawar||2017-11-11|Has expired: Broken for more than 6 months
databases/elixir-ecto_migrate||2017-11-11|Has expired: Broken for more than 6 months
audio/gspeakers||2017-11-11|Has expired: Broken for more than 6 months
net/p5-Filesys-SmbClient||2017-11-11|Has expired: Broken for more than 6 months

View File

@ -573,6 +573,7 @@
SUBDIR += lmarbles
SUBDIR += lmpc
SUBDIR += lolcat
SUBDIR += lordsawar
SUBDIR += lpairs
SUBDIR += lskat
SUBDIR += ltris

26
games/lordsawar/Makefile Normal file
View File

@ -0,0 +1,26 @@
# $FreeBSD$
PORTNAME= lordsawar
PORTVERSION= 0.3.1
PORTREVISION= 2
CATEGORIES= games
MASTER_SITES= SAVANNAH
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Warlords II clone
LICENSE= GPLv3+
LICENSE_FILE= ${WRKSRC}/COPYING
USES= compiler:c++11-lib gettext gmake libarchive pkgconfig shebangfix
USE_GNOME= gtkmm30 intltool libxslt
USE_GSTREAMER= mm
USE_CXXSTD= c++11
INSTALLS_ICONS= yes
GNU_CONFIGURE= yes
SHEBANG_FILES= create-lw-file
bash_CMD= /bin/sh
BROKEN_aarch64= Fails to build: runaway process
.include <bsd.port.mk>

3
games/lordsawar/distinfo Normal file
View File

@ -0,0 +1,3 @@
TIMESTAMP = 1477596930
SHA256 (lordsawar-0.3.1.tar.gz) = 9bc75c4c14953e9d70bd4c130a1b8803aac681b97c7616c657241c1e4fe864ab
SIZE (lordsawar-0.3.1.tar.gz) = 26112514

View File

@ -0,0 +1,11 @@
--- src/MapRenderer.cpp.orig 2015-06-10 18:06:19 UTC
+++ src/MapRenderer.cpp
@@ -72,7 +72,7 @@ void MapRenderer::render_tile(Vector<int
}
else
{
- if (style->getImage() == false)
+ if (!style->getImage())
{
printf ("pic for style %d for tile %d at %d,%d is null\n",
style->getType(), mtile->getType(), tile.x, tile.y);

View File

@ -0,0 +1,17 @@
--- src/LocationList.h.orig 2010-05-11 08:50:34 UTC
+++ src/LocationList.h
@@ -74,8 +74,14 @@
for (int j = 0; j < s; j++)
{
Vector<int> pos = t->getPos() + Vector<int>(i,j);
+#if defined(_LIBCPP_VERSION)
+ typename PositionMap::const_iterator it = d_object.find(pos);
+ if (it != d_object.end())
+ d_object.erase(it);
+#else
if (d_object.find(pos) != d_object.end())
d_object.erase(d_object.find(pos));
+#endif
}
delete t;
}

View File

@ -0,0 +1,11 @@
--- src/armyproto.cpp.orig 2011-02-12 19:13:14 UTC
+++ src/armyproto.cpp
@@ -34,7 +34,7 @@
ArmyProto::ArmyProto(const ArmyProto& a)
:ArmyProtoBase(a), d_id(a.d_id), d_defends_ruins(a.d_defends_ruins),
- d_awardable(a.d_awardable), d_image_name(a.d_image_name),
+ d_awardable(a.d_awardable),
d_gender(a.d_gender)
{
for (unsigned int c = Shield::WHITE; c <= Shield::NEUTRAL; c++)

View File

@ -0,0 +1,26 @@
--- src/setlist.h.orig 2015-07-03 20:03:50 UTC
+++ src/setlist.h
@@ -35,7 +35,11 @@ public:
SetList(Glib::ustring ext){extension=ext;};
~SetList()
{
+#if defined(_LIBCPP_VERSION)
+ for (typename SetList<T>::iterator it = this->begin(); it != this->end();
+#else
for (class SetList<T>::iterator it = this->begin(); it != this->end();
+#endif
it++)
delete (*it);
};
@@ -62,7 +66,11 @@ public:
bool contains(Glib::ustring name) const
{
+#if defined(_LIBCPP_VERSION)
+ for (typename SetList<T>::const_iterator it = this->begin();
+#else
for (class SetList<T>::const_iterator it = this->begin();
+#endif
it != this->end(); it++)
if ((*it)->getName() == name)
return true;

View File

@ -0,0 +1,42 @@
--- src/bigmap.cpp.orig 2015-06-10 17:45:00 UTC
+++ src/bigmap.cpp
@@ -67,10 +67,10 @@ BigMap::BigMap()
BigMap::~BigMap()
{
- if (buffer == true)
+ if (buffer)
buffer.clear();
- if (magnified_buffer == true)
+ if (magnified_buffer)
magnified_buffer.clear();
delete d_renderer;
@@ -112,7 +112,7 @@ void BigMap::set_view(Rectangle new_view
// this represents a 1 tile border around the outside of the picture.
// it gets rid of the black border.
- if (buffer == true)
+ if (buffer)
buffer.clear();
buffer_view.dim = view.dim + Vector<int>(2, 2);
@@ -122,7 +122,7 @@ void BigMap::set_view(Rectangle new_view
buffer_gc = Cairo::Context::create(buffer);
//now create the part that will go out to the gtk::image
- if (outgoing == true)
+ if (outgoing)
outgoing.clear();
outgoing = Cairo::Surface::create(buffer, Cairo::CONTENT_COLOR_ALPHA, image.get_width(), image.get_height());
@@ -174,7 +174,7 @@ void BigMap::draw(Player *player, bool r
//Glib::RefPtr<Gdk::Pixmap> outgoing;
if (magnification_factor != 1.0)
{
- if (magnified_buffer == true)
+ if (magnified_buffer)
magnified_buffer.clear();
magnified_buffer = magnify(buffer);
clip_viewable_buffer(magnified_buffer, p, outgoing);

View File

@ -0,0 +1,10 @@
--- src/game-parameters.h.orig 2015-06-10 17:55:57 UTC
+++ src/game-parameters.h
@@ -117,6 +117,7 @@ public:
return 8;
else if (param == GameParameters::Player::OFF)
return 0; //no equiv.
+ return 0;
}
static GameParameters::Player::Type player_param_string_to_player_param(Glib::ustring s)
{

View File

@ -0,0 +1,11 @@
--- src/gui/stack-army-button.cpp.orig 2015-06-20 22:48:43 UTC
+++ src/gui/stack-army-button.cpp
@@ -146,7 +146,7 @@ void StackArmyButton::fill_army_button()
{
bool greyed_out = false;
Stack *active_stack = p->getActivestack();
- if (active_stack->getArmyById(d_army->getId()) == false)
+ if (!active_stack->getArmyById(d_army->getId()))
greyed_out = true;
army_image->property_pixbuf() =
gc->getCircledArmyPic(p->getArmyset(), d_army->getTypeId(),

View File

@ -0,0 +1,8 @@
A turn-based strategy game where up to 8 players strive for control
of as many cities as possible. Produce new armies in cities to
conquer nearby cities. Using the income from those cities, make
more armies to take more cities. Send a hero to a temple to get a
quest, or maybe search a nearby ruin instead. Play with others or
against the computer.
WWW: http://www.nongnu.org/lordsawar/

248
games/lordsawar/pkg-plist Normal file
View File

@ -0,0 +1,248 @@
bin/lordsawar
bin/lordsawar-editor
bin/lordsawar-game-host-client
bin/lordsawar-game-host-server
bin/lordsawar-game-list-client
bin/lordsawar-game-list-server
bin/lordsawar-import
bin/lordsawar-upgrade-file
man/man6/lordsawar-editor.6.gz
man/man6/lordsawar-game-host-client.6.gz
man/man6/lordsawar-game-host-server.6.gz
man/man6/lordsawar-game-list-client.6.gz
man/man6/lordsawar-game-list-server.6.gz
man/man6/lordsawar-import.6.gz
man/man6/lordsawar.6.gz
share/appdata/lordsawar-appdata.xml
share/applications/lordsawar-editor.desktop
share/applications/lordsawar.desktop
share/icons/hicolor/32x32/apps/lordsawar-editor.png
share/icons/hicolor/32x32/apps/lordsawar.png
share/icons/hicolor/64x64/apps/lordsawar-editor.png
share/icons/hicolor/64x64/apps/lordsawar.png
share/locale/ca/LC_MESSAGES/lordsawar.mo
share/locale/da/LC_MESSAGES/lordsawar.mo
share/locale/de/LC_MESSAGES/lordsawar.mo
share/locale/hu/LC_MESSAGES/lordsawar.mo
share/locale/nl/LC_MESSAGES/lordsawar.mo
share/locale/pl/LC_MESSAGES/lordsawar.mo
%%DATADIR%%/army/bigdefault.lwa
%%DATADIR%%/army/default.lwa
%%DATADIR%%/army/duel.lwa
%%DATADIR%%/citynames.xml
%%DATADIR%%/citysets/bigdefault.lwc
%%DATADIR%%/citysets/bigdol.lwc
%%DATADIR%%/citysets/default.lwc
%%DATADIR%%/citysets/dol.lwc
%%DATADIR%%/glade/about-dialog.ui
%%DATADIR%%/glade/army-bonus-dialog.ui
%%DATADIR%%/glade/army-gains-level-dialog.ui
%%DATADIR%%/glade/army-info-window.ui
%%DATADIR%%/glade/buy-production-dialog.ui
%%DATADIR%%/glade/city-defeated-dialog.ui
%%DATADIR%%/glade/city-info-window.ui
%%DATADIR%%/glade/city-looted-dialog.ui
%%DATADIR%%/glade/city-pillaged-dialog.ui
%%DATADIR%%/glade/city-raze-dialog.ui
%%DATADIR%%/glade/city-razed-dialog.ui
%%DATADIR%%/glade/city-rename-dialog.ui
%%DATADIR%%/glade/city-sacked-dialog.ui
%%DATADIR%%/glade/city-window.ui
%%DATADIR%%/glade/destination-dialog.ui
%%DATADIR%%/glade/diplomacy-dialog.ui
%%DATADIR%%/glade/diplomacy-report-dialog.ui
%%DATADIR%%/glade/disband-stack-dialog.ui
%%DATADIR%%/glade/editor/armyset-info-dialog.ui
%%DATADIR%%/glade/editor/armyset-window.ui
%%DATADIR%%/glade/editor/backpack-editor-dialog.ui
%%DATADIR%%/glade/editor/city-editor-dialog.ui
%%DATADIR%%/glade/editor/cityset-info-dialog.ui
%%DATADIR%%/glade/editor/cityset-window.ui
%%DATADIR%%/glade/editor/editor-quit-dialog.ui
%%DATADIR%%/glade/editor/editor-splash-window.ui
%%DATADIR%%/glade/editor/fight-order-editor-dialog.ui
%%DATADIR%%/glade/editor/hero-editor-dialog.ui
%%DATADIR%%/glade/editor/image-editor-dialog.ui
%%DATADIR%%/glade/editor/itemlist-dialog.ui
%%DATADIR%%/glade/editor/main-window.ui
%%DATADIR%%/glade/editor/map-info-dialog.ui
%%DATADIR%%/glade/editor/masked-image-editor-dialog.ui
%%DATADIR%%/glade/editor/new-map-dialog.ui
%%DATADIR%%/glade/editor/players-dialog.ui
%%DATADIR%%/glade/editor/reward-editor-dialog.ui
%%DATADIR%%/glade/editor/reward-list-dialog.ui
%%DATADIR%%/glade/editor/road-editor-tip.ui
%%DATADIR%%/glade/editor/ruin-editor-dialog.ui
%%DATADIR%%/glade/editor/select-army-dialog.ui
%%DATADIR%%/glade/editor/select-hidden-ruin-dialog.ui
%%DATADIR%%/glade/editor/select-item-dialog.ui
%%DATADIR%%/glade/editor/select-reward-dialog.ui
%%DATADIR%%/glade/editor/shieldset-info-dialog.ui
%%DATADIR%%/glade/editor/shieldset-window.ui
%%DATADIR%%/glade/editor/signpost-editor-dialog.ui
%%DATADIR%%/glade/editor/smallmap-editor-dialog.ui
%%DATADIR%%/glade/editor/stack-editor-dialog.ui
%%DATADIR%%/glade/editor/switch-sets-dialog.ui
%%DATADIR%%/glade/editor/temple-editor-dialog.ui
%%DATADIR%%/glade/editor/tile-preview-dialog.ui
%%DATADIR%%/glade/editor/tile-size-editor-dialog.ui
%%DATADIR%%/glade/editor/tileset-explosion-picture-editor-dialog.ui
%%DATADIR%%/glade/editor/tileset-flag-editor-dialog.ui
%%DATADIR%%/glade/editor/tileset-info-dialog.ui
%%DATADIR%%/glade/editor/tileset-selector-editor-dialog.ui
%%DATADIR%%/glade/editor/tileset-smallmap-building-colors-dialog.ui
%%DATADIR%%/glade/editor/tileset-window.ui
%%DATADIR%%/glade/editor/tilestyle-organizer-dialog.ui
%%DATADIR%%/glade/fight-order-dialog.ui
%%DATADIR%%/glade/fight-window.ui
%%DATADIR%%/glade/fighter.ui
%%DATADIR%%/glade/game-button-box-desktop.ui
%%DATADIR%%/glade/game-button-box-large-screen.ui
%%DATADIR%%/glade/game-button-box-netbook.ui
%%DATADIR%%/glade/game-loaded-dialog.ui
%%DATADIR%%/glade/game-lobby-dialog.ui
%%DATADIR%%/glade/game-options-dialog.ui
%%DATADIR%%/glade/game-over-dialog.ui
%%DATADIR%%/glade/game-preferences-dialog.ui
%%DATADIR%%/glade/game-quit-dialog.ui
%%DATADIR%%/glade/game-window.ui
%%DATADIR%%/glade/hero-brings-allies-dialog.ui
%%DATADIR%%/glade/hero-dialog.ui
%%DATADIR%%/glade/hero-levels-dialog.ui
%%DATADIR%%/glade/hero-offer-dialog.ui
%%DATADIR%%/glade/history-report-dialog.ui
%%DATADIR%%/glade/item-bonus-dialog.ui
%%DATADIR%%/glade/item-report-dialog.ui
%%DATADIR%%/glade/load-scenario-dialog.ui
%%DATADIR%%/glade/main-preferences-dialog.ui
%%DATADIR%%/glade/medal-awarded-dialog.ui
%%DATADIR%%/glade/military-advisor-dialog.ui
%%DATADIR%%/glade/new-network-game-dialog.ui
%%DATADIR%%/glade/new-profile-dialog.ui
%%DATADIR%%/glade/new-random-map-dialog.ui
%%DATADIR%%/glade/next-player-turn-dialog.ui
%%DATADIR%%/glade/pick-network-game-to-join-dialog.ui
%%DATADIR%%/glade/player-died-dialog.ui
%%DATADIR%%/glade/player-resign-completed-dialog.ui
%%DATADIR%%/glade/player-resign-dialog.ui
%%DATADIR%%/glade/preferences-dialog.ui
%%DATADIR%%/glade/quest-assigned-dialog.ui
%%DATADIR%%/glade/quest-expired-dialog.ui
%%DATADIR%%/glade/quest-report-dialog.ui
%%DATADIR%%/glade/report-dialog.ui
%%DATADIR%%/glade/ruin-report-dialog.ui
%%DATADIR%%/glade/ruin-rewarded-dialog.ui
%%DATADIR%%/glade/ruin-searched-dialog.ui
%%DATADIR%%/glade/ruinfight-finished-dialog.ui
%%DATADIR%%/glade/ruinfight-started-dialog.ui
%%DATADIR%%/glade/sage-dialog.ui
%%DATADIR%%/glade/signpost-change-dialog.ui
%%DATADIR%%/glade/splash-window.ui
%%DATADIR%%/glade/stack-army-button-desktop.ui
%%DATADIR%%/glade/stack-army-button-large-screen.ui
%%DATADIR%%/glade/stack-army-button-netbook.ui
%%DATADIR%%/glade/stack-info-dialog.ui
%%DATADIR%%/glade/stack-info-window.ui
%%DATADIR%%/glade/stack-tile-box-desktop.ui
%%DATADIR%%/glade/stack-tile-box-large-screen.ui
%%DATADIR%%/glade/stack-tile-box-netbook.ui
%%DATADIR%%/glade/status-box-desktop.ui
%%DATADIR%%/glade/status-box-large-screen.ui
%%DATADIR%%/glade/status-box-netbook.ui
%%DATADIR%%/glade/surrender-dialog.ui
%%DATADIR%%/glade/surrender-refused-dialog.ui
%%DATADIR%%/glade/temple-visit-dialog.ui
%%DATADIR%%/glade/treachery-dialog.ui
%%DATADIR%%/glade/triumphs-dialog.ui
%%DATADIR%%/glade/use-item-dialog.ui
%%DATADIR%%/glade/use-item-on-city-dialog.ui
%%DATADIR%%/glade/use-item-on-player-dialog.ui
%%DATADIR%%/heronames.xml
%%DATADIR%%/map/dol.map
%%DATADIR%%/map/duel.map
%%DATADIR%%/music/back1.ogg
%%DATADIR%%/music/battle.ogg
%%DATADIR%%/music/bless.ogg
%%DATADIR%%/music/defeat.ogg
%%DATADIR%%/music/hero.ogg
%%DATADIR%%/music/intro.ogg
%%DATADIR%%/music/music.xml
%%DATADIR%%/music/victory.ogg
%%DATADIR%%/ruinnames.xml
%%DATADIR%%/shield/default.lws
%%DATADIR%%/shield/dol.lws
%%DATADIR%%/shield/plain.lws
%%DATADIR%%/signposts.xml
%%DATADIR%%/templenames.xml
%%DATADIR%%/tilesets/bigdefault.lwt
%%DATADIR%%/tilesets/bigstark.lwt
%%DATADIR%%/tilesets/bigwesnoth.lwt
%%DATADIR%%/tilesets/default.lwt
%%DATADIR%%/tilesets/stark.lwt
%%DATADIR%%/tilesets/wesnoth.lwt
%%DATADIR%%/various/arrows-medium.png
%%DATADIR%%/various/arrows.png
%%DATADIR%%/various/bag.png
%%DATADIR%%/various/bigmedals.png
%%DATADIR%%/various/buttons-medium.png
%%DATADIR%%/various/buttons.png
%%DATADIR%%/various/castle_icon.ico
%%DATADIR%%/various/castle_icon.png
%%DATADIR%%/various/city_occupied.png
%%DATADIR%%/various/cursors.png
%%DATADIR%%/various/diplomacy-large.png
%%DATADIR%%/various/diplomacy-small.png
%%DATADIR%%/various/editor/button_12x12.png
%%DATADIR%%/various/editor/button_1x1.png
%%DATADIR%%/various/editor/button_2x2.png
%%DATADIR%%/various/editor/button_3x3.png
%%DATADIR%%/various/editor/button_6x6.png
%%DATADIR%%/various/editor/button_bag.png
%%DATADIR%%/various/editor/button_blank.png
%%DATADIR%%/various/editor/button_bridge.png
%%DATADIR%%/various/editor/button_castle.png
%%DATADIR%%/various/editor/button_erase.png
%%DATADIR%%/various/editor/button_move.png
%%DATADIR%%/various/editor/button_port.png
%%DATADIR%%/various/editor/button_road.png
%%DATADIR%%/various/editor/button_ruin.png
%%DATADIR%%/various/editor/button_selector.png
%%DATADIR%%/various/editor/button_signpost.png
%%DATADIR%%/various/editor/button_stack.png
%%DATADIR%%/various/editor/button_temple.png
%%DATADIR%%/various/hero-inactive.png
%%DATADIR%%/various/hero-newlevel-female.png
%%DATADIR%%/various/hero-newlevel-male.png
%%DATADIR%%/various/hero.png
%%DATADIR%%/various/items/items.xml
%%DATADIR%%/various/lordsawar_logo.png
%%DATADIR%%/various/medals_mask.png
%%DATADIR%%/various/movebonus.png
%%DATADIR%%/various/parley_offered.png
%%DATADIR%%/various/parley_refused.png
%%DATADIR%%/various/prodshieldset-medium.png
%%DATADIR%%/various/prodshieldset.png
%%DATADIR%%/various/recruit_female.png
%%DATADIR%%/various/recruit_male.png
%%DATADIR%%/various/ruin_1.png
%%DATADIR%%/various/ruin_2.png
%%DATADIR%%/various/ship.png
%%DATADIR%%/various/smallcity.png
%%DATADIR%%/various/smalldefense.png
%%DATADIR%%/various/smallexploredruin.png
%%DATADIR%%/various/smallincome.png
%%DATADIR%%/various/smallruinedcity.png
%%DATADIR%%/various/smalltemple.png
%%DATADIR%%/various/smalltreasury.png
%%DATADIR%%/various/smallunexploredruin.png
%%DATADIR%%/various/smallunexploredstronghold.png
%%DATADIR%%/various/smallupkeep.png
%%DATADIR%%/various/splash_screen.jpg
%%DATADIR%%/various/tileset_icon.ico
%%DATADIR%%/various/tileset_icon.png
%%DATADIR%%/various/tilestyles.png
%%DATADIR%%/various/waypoints.png
%%DATADIR%%/various/win.png
%%DATADIR%%/various/xslt/as-0.2.1-0.3.0.xsl
%%DATADIR%%/various/xslt/gs-0.2.0-0.2.1.xsl
%%DATADIR%%/various/xslt/pbm-0.2.0-0.2.1.xsl