Skip to content

Commit

Permalink
games/vcmi: the port had been updated to version 1.3.0
Browse files Browse the repository at this point in the history
Drop now useless `post-configure' target and PATCH_ARGS.

Reported by:	portscout
  • Loading branch information
Alexey Dokuchaev authored and Alexey Dokuchaev committed Aug 6, 2023
1 parent 0ed6216 commit 5418092
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 31 deletions.
11 changes: 1 addition & 10 deletions games/vcmi/Makefile
@@ -1,10 +1,7 @@
PORTNAME= vcmi
PORTVERSION= 1.2.1
PORTVERSION= 1.3.0
CATEGORIES= games

PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
PATCHFILES= c7bee037d2c06c56893d631651288c33e.patch:-p1

MAINTAINER= danfe@FreeBSD.org
COMMENT= Open-source engine for Heroes of Might and Magic III
WWW= https://vcmi.eu/
Expand Down Expand Up @@ -39,14 +36,8 @@ QT_USE= QT=buildtools:build,linguisttools:build,qmake:build \
QT=core,gui,network,widgets
QT_CMAKE_OFF= -DENABLE_LAUNCHER:BOOL=OFF -DENABLE_EDITOR:BOOL=OFF

post-configure:
${SED} -e 's,@GIT_SHA1@,c125e04,' ${WRKSRC}/Version.cpp.in \
> ${BUILD_WRKSRC}/Version.cpp

post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>

PATCH_ARGS+= -l
8 changes: 3 additions & 5 deletions games/vcmi/distinfo
@@ -1,5 +1,3 @@
TIMESTAMP = 1682700427
SHA256 (vcmi-vcmi-1.2.1_GH0.tar.gz) = 88ffc13da9b7d6ac8ed294b1b7719e5adc0cdc34a9f0d83d55b5b5c8d02e529a
SIZE (vcmi-vcmi-1.2.1_GH0.tar.gz) = 7143981
SHA256 (c7bee037d2c06c56893d631651288c33e.patch) = 128e6749191fb81c9432b4b40e838af5a942c3b42b051488c5675d5da2911a43
SIZE (c7bee037d2c06c56893d631651288c33e.patch) = 1538
TIMESTAMP = 1691137149
SHA256 (vcmi-vcmi-1.3.0_GH0.tar.gz) = 358c4ed57af292ce334582a7c0db81892b4bedcea7ab173d18dbb1dcf9c041cc
SIZE (vcmi-vcmi-1.3.0_GH0.tar.gz) = 7971172
11 changes: 0 additions & 11 deletions games/vcmi/files/patch-lib_CModHandler.h

This file was deleted.

11 changes: 11 additions & 0 deletions games/vcmi/files/patch-lib_CModVersion.h
@@ -0,0 +1,11 @@
--- lib/CModVersion.h.orig 2023-08-04 08:19:09 UTC
+++ lib/CModVersion.h
@@ -14,6 +14,8 @@ VCMI_LIB_NAMESPACE_BEGIN

struct DLL_LINKAGE CModVersion
{
+#undef major
+#undef minor
int major = 0;
int minor = 0;
int patch = 0;
51 changes: 46 additions & 5 deletions games/vcmi/pkg-plist
Expand Up @@ -12,10 +12,16 @@ lib/vcmi/libvcmi.so
share/applications/vcmiclient.desktop
%%QT%%share/applications/vcmieditor.desktop
%%QT%%share/applications/vcmilauncher.desktop
share/icons/hicolor/256x256/apps/vcmiclient.png
share/icons/hicolor/16x16/apps/vcmiclient.png
share/icons/hicolor/32x32/apps/vcmiclient.png
share/icons/hicolor/48x48/apps/vcmiclient.png
share/icons/hicolor/64x64/apps/vcmiclient.png
share/icons/hicolor/128x128/apps/vcmiclient.png
share/icons/hicolor/256x256/apps/vcmiclient.png
share/icons/hicolor/512x512/apps/vcmiclient.png
share/icons/hicolor/1024x1024/apps/vcmiclient.png
share/icons/hicolor/2048x2048/apps/vcmiclient.png
share/icons/hicolor/scalable/apps/vcmiclient.svg
%%QT%%share/icons/hicolor/128x128/apps/vcmieditor.png
%%QT%%share/icons/hicolor/256x256/apps/vcmieditor.png
%%QT%%share/icons/hicolor/32x32/apps/vcmieditor.png
Expand All @@ -25,11 +31,23 @@ share/icons/hicolor/64x64/apps/vcmiclient.png
%%DATADIR%%/Mods/vcmi/Data/QuickRecruitmentWindow/CreaturePurchaseCard.png
%%DATADIR%%/Mods/vcmi/Data/StackQueueLarge.png
%%DATADIR%%/Mods/vcmi/Data/StackQueueSmall.png
%%DATADIR%%/Mods/vcmi/Data/UnitMaxMovementHighlight.png
%%DATADIR%%/Mods/vcmi/Data/UnitMovementHighlight.png
%%DATADIR%%/Mods/vcmi/Data/debug/blocked.png
%%DATADIR%%/Mods/vcmi/Data/debug/grid.png
%%DATADIR%%/Mods/vcmi/Data/debug/spellRange.png
%%DATADIR%%/Mods/vcmi/Data/debug/visitable.png
%%DATADIR%%/Mods/vcmi/Data/questDialog.png
%%DATADIR%%/Mods/vcmi/Data/radialMenu/heroMove.png
%%DATADIR%%/Mods/vcmi/Data/radialMenu/heroSwap.png
%%DATADIR%%/Mods/vcmi/Data/radialMenu/itemEmpty.png
%%DATADIR%%/Mods/vcmi/Data/radialMenu/itemInactive.png
%%DATADIR%%/Mods/vcmi/Data/radialMenu/stackInfo.png
%%DATADIR%%/Mods/vcmi/Data/radialMenu/stackMerge.png
%%DATADIR%%/Mods/vcmi/Data/radialMenu/stackSplitDialog.png
%%DATADIR%%/Mods/vcmi/Data/radialMenu/stackSplitEqual.png
%%DATADIR%%/Mods/vcmi/Data/radialMenu/stackSplitOne.png
%%DATADIR%%/Mods/vcmi/Data/radialMenu/statusBar.png
%%DATADIR%%/Mods/vcmi/Data/s/std.verm
%%DATADIR%%/Mods/vcmi/Data/s/testy.erm
%%DATADIR%%/Mods/vcmi/Data/settingsWindow/checkBoxEmpty.png
Expand All @@ -54,14 +72,31 @@ share/icons/hicolor/64x64/apps/vcmiclient.png
%%DATADIR%%/Mods/vcmi/Data/stackWindow/info-panel-1.png
%%DATADIR%%/Mods/vcmi/Data/stackWindow/info-panel-2.png
%%DATADIR%%/Mods/vcmi/Data/stackWindow/spell-effects.png
%%DATADIR%%/Mods/vcmi/Maps/VCMI_Tests_2011b.h3m
%%DATADIR%%/Mods/vcmi/Sprites/PortraitsLarge.json
%%DATADIR%%/Mods/vcmi/Sprites/PortraitsSmall.json
%%DATADIR%%/Mods/vcmi/Sprites/QuickRecruitmentWindow/CreaturePurchaseCard.png
%%DATADIR%%/Mods/vcmi/Sprites/QuickRecruitmentWindow/QuickRecruitmentAllButton.def
%%DATADIR%%/Mods/vcmi/Sprites/QuickRecruitmentWindow/QuickRecruitmentNoneButton.def
%%DATADIR%%/Mods/vcmi/Sprites/QuickRecruitmentWindow/costBackground.png
%%DATADIR%%/Mods/vcmi/Sprites/ScSelC.json
%%DATADIR%%/Mods/vcmi/Sprites/battle/rangeHighlights/green/empty.png
%%DATADIR%%/Mods/vcmi/Sprites/battle/rangeHighlights/green/fullHex.png
%%DATADIR%%/Mods/vcmi/Sprites/battle/rangeHighlights/green/left.png
%%DATADIR%%/Mods/vcmi/Sprites/battle/rangeHighlights/green/leftHalf.png
%%DATADIR%%/Mods/vcmi/Sprites/battle/rangeHighlights/green/top.png
%%DATADIR%%/Mods/vcmi/Sprites/battle/rangeHighlights/green/topLeft.png
%%DATADIR%%/Mods/vcmi/Sprites/battle/rangeHighlights/green/topLeftCorner.png
%%DATADIR%%/Mods/vcmi/Sprites/battle/rangeHighlights/green/topLeftHalfCorner.png
%%DATADIR%%/Mods/vcmi/Sprites/battle/rangeHighlights/rangeHighlightsGreen.json
%%DATADIR%%/Mods/vcmi/Sprites/battle/rangeHighlights/rangeHighlightsRed.json
%%DATADIR%%/Mods/vcmi/Sprites/battle/rangeHighlights/red/empty.png
%%DATADIR%%/Mods/vcmi/Sprites/battle/rangeHighlights/red/fullHex.png
%%DATADIR%%/Mods/vcmi/Sprites/battle/rangeHighlights/red/left.png
%%DATADIR%%/Mods/vcmi/Sprites/battle/rangeHighlights/red/leftHalf.png
%%DATADIR%%/Mods/vcmi/Sprites/battle/rangeHighlights/red/top.png
%%DATADIR%%/Mods/vcmi/Sprites/battle/rangeHighlights/red/topLeft.png
%%DATADIR%%/Mods/vcmi/Sprites/battle/rangeHighlights/red/topLeftCorner.png
%%DATADIR%%/Mods/vcmi/Sprites/battle/rangeHighlights/red/topLeftHalfCorner.png
%%DATADIR%%/Mods/vcmi/Sprites/buttons/commander.json
%%DATADIR%%/Mods/vcmi/Sprites/buttons/commanderNormal.png
%%DATADIR%%/Mods/vcmi/Sprites/buttons/commanderPressed.png
Expand Down Expand Up @@ -116,6 +151,7 @@ share/icons/hicolor/64x64/apps/vcmiclient.png
%%DATADIR%%/Mods/vcmi/Sprites/vcmi/creatureIcons/towerSmall.png
%%DATADIR%%/Mods/vcmi/config/vcmi/chinese.json
%%DATADIR%%/Mods/vcmi/config/vcmi/english.json
%%DATADIR%%/Mods/vcmi/config/vcmi/french.json
%%DATADIR%%/Mods/vcmi/config/vcmi/german.json
%%DATADIR%%/Mods/vcmi/config/vcmi/polish.json
%%DATADIR%%/Mods/vcmi/config/vcmi/rmg/hdmod/aroundamarsh.JSON
Expand Down Expand Up @@ -242,7 +278,6 @@ share/icons/hicolor/64x64/apps/vcmiclient.png
%%DATADIR%%/config/battlefields.json
%%DATADIR%%/config/battles_graphics.json
%%DATADIR%%/config/bonuses.json
%%DATADIR%%/config/buildings5.json
%%DATADIR%%/config/campaignMedia.json
%%DATADIR%%/config/campaignSets.json
%%DATADIR%%/config/campaign_regions.json
Expand Down Expand Up @@ -296,7 +331,6 @@ share/icons/hicolor/64x64/apps/vcmiclient.png
%%DATADIR%%/config/objects/rewardablePickable.json
%%DATADIR%%/config/obstacles.json
%%DATADIR%%/config/randomMap.json
%%DATADIR%%/config/resolutions.json
%%DATADIR%%/config/resources.json
%%DATADIR%%/config/rivers.json
%%DATADIR%%/config/roads.json
Expand Down Expand Up @@ -327,20 +361,24 @@ share/icons/hicolor/64x64/apps/vcmiclient.png
%%DATADIR%%/config/skills.json
%%DATADIR%%/config/spells/ability.json
%%DATADIR%%/config/spells/adventure.json
%%DATADIR%%/config/spells/moats.json
%%DATADIR%%/config/spells/offensive.json
%%DATADIR%%/config/spells/other.json
%%DATADIR%%/config/spells/timed.json
%%DATADIR%%/config/spells/vcmiAbility.json
%%DATADIR%%/config/startres.json
%%DATADIR%%/config/terrainViewPatterns.json
%%DATADIR%%/config/terrains.json
%%DATADIR%%/config/widgets/battleWindow.json
%%DATADIR%%/config/widgets/adventureMap.json
%%DATADIR%%/config/widgets/battleWindow2.json
%%DATADIR%%/config/widgets/randomMapTab.json
%%DATADIR%%/config/widgets/settings/adventureOptionsTab.json
%%DATADIR%%/config/widgets/settings/battleOptionsTab.json
%%DATADIR%%/config/widgets/settings/generalOptionsTab.json
%%DATADIR%%/config/widgets/settings/library.json
%%DATADIR%%/config/widgets/settings/otherOptionsTab.json
%%DATADIR%%/config/widgets/settings/settingsMainContainer.json
%%QT%%%%DATADIR%%/launcher/icons/about-project.png
%%QT%%%%DATADIR%%/launcher/icons/menu-editor.png
%%QT%%%%DATADIR%%/launcher/icons/menu-game.png
%%QT%%%%DATADIR%%/launcher/icons/menu-lobby.png
Expand All @@ -352,7 +390,9 @@ share/icons/hicolor/64x64/apps/vcmiclient.png
%%QT%%%%DATADIR%%/launcher/icons/mod-enabled.png
%%QT%%%%DATADIR%%/launcher/icons/mod-update.png
%%QT%%%%DATADIR%%/launcher/icons/room-private.png
%%QT%%%%DATADIR%%/launcher/translation/chinese.qm
%%QT%%%%DATADIR%%/launcher/translation/english.qm
%%QT%%%%DATADIR%%/launcher/translation/french.qm
%%QT%%%%DATADIR%%/launcher/translation/german.qm
%%QT%%%%DATADIR%%/launcher/translation/polish.qm
%%QT%%%%DATADIR%%/launcher/translation/russian.qm
Expand Down Expand Up @@ -390,6 +430,7 @@ share/icons/hicolor/64x64/apps/vcmiclient.png
%%QT%%%%DATADIR%%/mapeditor/icons/toggle-pass.png
%%QT%%%%DATADIR%%/mapeditor/icons/toggle-underground.png
%%QT%%%%DATADIR%%/mapeditor/translation/english.qm
%%QT%%%%DATADIR%%/mapeditor/translation/french.qm
%%QT%%%%DATADIR%%/mapeditor/translation/german.qm
%%QT%%%%DATADIR%%/mapeditor/translation/polish.qm
%%QT%%%%DATADIR%%/mapeditor/translation/russian.qm
Expand Down

0 comments on commit 5418092

Please sign in to comment.