pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/games



Module Name:    pkgsrc
Committed By:   nia
Date:           Mon Aug 12 11:19:26 UTC 2024

Modified Files:
        pkgsrc/games: Makefile
Added Files:
        pkgsrc/games/vcmi: DESCR Makefile PLIST distinfo options.mk
        pkgsrc/games/vcmi/patches: patch-Global.h patch-lib_CStopWatch.h
            patch-lib_CThreadHelper.cpp patch-lib_modding_CModVersion.h

Log Message:
Import games/vcmi

VCMI is an open-source recreation of Heroes of Might & Magic III engine,
giving it new and extended possibilities.

This engine requires the game's original data files to run.  The
DRM-free version from GOG.com extracted with innoextract will work.


To generate a diff of this commit:
cvs rdiff -u -r1.551 -r1.552 pkgsrc/games/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/games/vcmi/DESCR pkgsrc/games/vcmi/Makefile \
    pkgsrc/games/vcmi/PLIST pkgsrc/games/vcmi/distinfo \
    pkgsrc/games/vcmi/options.mk
cvs rdiff -u -r0 -r1.1 pkgsrc/games/vcmi/patches/patch-Global.h \
    pkgsrc/games/vcmi/patches/patch-lib_CStopWatch.h \
    pkgsrc/games/vcmi/patches/patch-lib_CThreadHelper.cpp \
    pkgsrc/games/vcmi/patches/patch-lib_modding_CModVersion.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/games/Makefile
diff -u pkgsrc/games/Makefile:1.551 pkgsrc/games/Makefile:1.552
--- pkgsrc/games/Makefile:1.551 Thu Jun 20 17:10:29 2024
+++ pkgsrc/games/Makefile       Mon Aug 12 11:19:25 2024
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.551 2024/06/20 17:10:29 charlotte Exp $
+# $NetBSD: Makefile,v 1.552 2024/08/12 11:19:25 nia Exp $
 #
 
 COMMENT=       Games
@@ -432,6 +432,7 @@ SUBDIR+=    uqm
 SUBDIR+=       urban
 SUBDIR+=       urbanterror
 SUBDIR+=       valyriatear
+SUBDIR+=       vcmi
 SUBDIR+=       velena
 SUBDIR+=       violetland
 SUBDIR+=       vms-empire

Added files:

Index: pkgsrc/games/vcmi/DESCR
diff -u /dev/null pkgsrc/games/vcmi/DESCR:1.1
--- /dev/null   Mon Aug 12 11:19:26 2024
+++ pkgsrc/games/vcmi/DESCR     Mon Aug 12 11:19:25 2024
@@ -0,0 +1,5 @@
+VCMI is an open-source recreation of Heroes of Might & Magic III engine,
+giving it new and extended possibilities.
+
+This engine requires the game's original data files to run.  The
+DRM-free version from GOG.com extracted with innoextract will work.
Index: pkgsrc/games/vcmi/Makefile
diff -u /dev/null pkgsrc/games/vcmi/Makefile:1.1
--- /dev/null   Mon Aug 12 11:19:26 2024
+++ pkgsrc/games/vcmi/Makefile  Mon Aug 12 11:19:25 2024
@@ -0,0 +1,58 @@
+# $NetBSD: Makefile,v 1.1 2024/08/12 11:19:25 nia Exp $
+
+DISTNAME=      vcmi-1.5.6
+CATEGORIES=    games
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=vcmi/}
+
+GITHUB_SUBMODULES+=    vcmi innoextract \
+                       9977089412ebafe9f79936aa65a2edf16a84ae3e \
+                       launcher/lib/innoextract
+
+GITHUB_SUBMODULES+=    fuzzylite fuzzylite \
+                       7aee562d6ca17f3cf42588ffb5116e03017c3c50 \
+                       AI/FuzzyLite
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://vcmi.eu/
+COMMENT=       Open-source engine for Heroes of Might and Magic III
+LICENSE=       gnu-gpl-v2
+
+USE_LANGUAGES= c c++
+USE_TOOLS+=    pkg-config bash:run
+
+USE_CXX_FEATURES+=     c++17
+
+.include "../../mk/compiler.mk"
+
+.if ${CC_VERSION:Mgcc-*}
+CMAKE_ARGS+=   -DENABLE_PCH=OFF
+.endif
+
+.include "../../mk/bsd.fast.prefs.mk"
+
+LDFLAGS+=      ${COMPILER_RPATH_FLAG}${PREFIX}/lib/vcmi
+
+REPLACE_BASH+= vcmibuilder
+
+PYTHON_FOR_BUILD_ONLY=         tool
+
+CHECK_PORTABILITY_SKIP+=       CI/get_package_name.sh
+
+.include "options.mk"
+.include "../../devel/cmake/build.mk"
+.include "../../archivers/minizip/buildlink3.mk"
+.include "../../archivers/xz/buildlink3.mk"
+.include "../../audio/SDL2_mixer/buildlink3.mk"
+.include "../../converters/libiconv/buildlink3.mk"
+.include "../../devel/boost-headers/buildlink3.mk"
+.include "../../devel/boost-libs/buildlink3.mk"
+.include "../../devel/SDL2/buildlink3.mk"
+.include "../../fonts/SDL2_ttf/buildlink3.mk"
+.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
+.include "../../graphics/SDL2_image/buildlink3.mk"
+.include "../../lang/python/tool.mk"
+.include "../../lang/python/pyversion.mk"
+.include "../../multimedia/ffmpeg7/buildlink3.mk"
+.include "../../parallel/threadingbuildingblocks/buildlink3.mk"
+.include "../../sysutils/desktop-file-utils/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/games/vcmi/PLIST
diff -u /dev/null pkgsrc/games/vcmi/PLIST:1.1
--- /dev/null   Mon Aug 12 11:19:26 2024
+++ pkgsrc/games/vcmi/PLIST     Mon Aug 12 11:19:25 2024
@@ -0,0 +1,460 @@
+@comment $NetBSD: PLIST,v 1.1 2024/08/12 11:19:25 nia Exp $
+bin/vcmibuilder
+bin/vcmiclient
+${PLIST.qt}bin/vcmieditor
+${PLIST.qt}bin/vcmilauncher
+bin/vcmiserver
+lib/vcmi/AI/libBattleAI.so
+lib/vcmi/AI/libEmptyAI.so
+lib/vcmi/AI/libNullkiller.so
+lib/vcmi/AI/libStupidAI.so
+lib/vcmi/AI/libVCAI.so
+lib/vcmi/libvcmi.so
+share/applications/vcmiclient.desktop
+${PLIST.qt}share/applications/vcmieditor.desktop
+${PLIST.qt}share/applications/vcmilauncher.desktop
+share/icons/hicolor/1024x1024/apps/vcmiclient.png
+share/icons/hicolor/128x128/apps/vcmiclient.png
+${PLIST.qt}share/icons/hicolor/128x128/apps/vcmieditor.png
+share/icons/hicolor/16x16/apps/vcmiclient.png
+share/icons/hicolor/2048x2048/apps/vcmiclient.png
+share/icons/hicolor/22x22/apps/vcmiclient.png
+share/icons/hicolor/256x256/apps/vcmiclient.png
+${PLIST.qt}share/icons/hicolor/256x256/apps/vcmieditor.png
+share/icons/hicolor/32x32/apps/vcmiclient.png
+${PLIST.qt}share/icons/hicolor/32x32/apps/vcmieditor.png
+share/icons/hicolor/48x48/apps/vcmiclient.png
+${PLIST.qt}share/icons/hicolor/48x48/apps/vcmieditor.png
+share/icons/hicolor/512x512/apps/vcmiclient.png
+share/icons/hicolor/64x64/apps/vcmiclient.png
+${PLIST.qt}share/icons/hicolor/64x64/apps/vcmieditor.png
+share/icons/hicolor/scalable/apps/vcmiclient.svg
+${PLIST.qt}share/metainfo/eu.vcmi.VCMI.metainfo.xml
+share/vcmi/Mods/vcmi/Data/QuickRecruitmentWindow/CreaturePurchaseCard.png
+share/vcmi/Mods/vcmi/Data/StackQueueLarge.png
+share/vcmi/Mods/vcmi/Data/StackQueueSmall.png
+share/vcmi/Mods/vcmi/Data/UnitMaxMovementHighlight.png
+share/vcmi/Mods/vcmi/Data/UnitMovementHighlight.png
+share/vcmi/Mods/vcmi/Data/debug/blocked.png
+share/vcmi/Mods/vcmi/Data/debug/grid.png
+share/vcmi/Mods/vcmi/Data/debug/spellRange.png
+share/vcmi/Mods/vcmi/Data/debug/visitable.png
+share/vcmi/Mods/vcmi/Data/heroWindow/artifactSlotEmpty.png
+share/vcmi/Mods/vcmi/Data/heroWindow/backpackButtonIcon.png
+share/vcmi/Mods/vcmi/Data/heroWindow/commanderButtonIcon.png
+share/vcmi/Mods/vcmi/Data/lobby/iconFolder.png
+share/vcmi/Mods/vcmi/Data/lobby/iconPlayer.png
+share/vcmi/Mods/vcmi/Data/lobby/iconSend.png
+share/vcmi/Mods/vcmi/Data/lobby/selectionTabSortDate.png
+share/vcmi/Mods/vcmi/Data/lobby/townBorderBig.png
+share/vcmi/Mods/vcmi/Data/lobby/townBorderBigActivated.png
+share/vcmi/Mods/vcmi/Data/lobby/townBorderBigGrayedOut.png
+share/vcmi/Mods/vcmi/Data/lobby/townBorderSmallActivated.png
+share/vcmi/Mods/vcmi/Data/questDialog.png
+share/vcmi/Mods/vcmi/Data/radialMenu/altDown.png
+share/vcmi/Mods/vcmi/Data/radialMenu/altDownBottom.png
+share/vcmi/Mods/vcmi/Data/radialMenu/altUp.png
+share/vcmi/Mods/vcmi/Data/radialMenu/altUpTop.png
+share/vcmi/Mods/vcmi/Data/radialMenu/dismissHero.png
+share/vcmi/Mods/vcmi/Data/radialMenu/heroMove.png
+share/vcmi/Mods/vcmi/Data/radialMenu/heroSwap.png
+share/vcmi/Mods/vcmi/Data/radialMenu/itemEmpty.png
+share/vcmi/Mods/vcmi/Data/radialMenu/itemEmptyAlt.png
+share/vcmi/Mods/vcmi/Data/radialMenu/itemInactive.png
+share/vcmi/Mods/vcmi/Data/radialMenu/itemInactiveAlt.png
+share/vcmi/Mods/vcmi/Data/radialMenu/moveArtifacts.png
+share/vcmi/Mods/vcmi/Data/radialMenu/moveTroops.png
+share/vcmi/Mods/vcmi/Data/radialMenu/stackFillOne.png
+share/vcmi/Mods/vcmi/Data/radialMenu/stackMerge.png
+share/vcmi/Mods/vcmi/Data/radialMenu/stackSplitDialog.png
+share/vcmi/Mods/vcmi/Data/radialMenu/stackSplitEqual.png
+share/vcmi/Mods/vcmi/Data/radialMenu/stackSplitOne.png
+share/vcmi/Mods/vcmi/Data/radialMenu/statusBar.png
+share/vcmi/Mods/vcmi/Data/radialMenu/swapArtifacts.png
+share/vcmi/Mods/vcmi/Data/radialMenu/tradeHeroes.png
+share/vcmi/Mods/vcmi/Data/s/std.verm
+share/vcmi/Mods/vcmi/Data/s/testy.erm
+share/vcmi/Mods/vcmi/Data/settingsWindow/frameAudio.png
+share/vcmi/Mods/vcmi/Data/settingsWindow/frameMovement.png
+share/vcmi/Mods/vcmi/Data/settingsWindow/frameStackQueue.png
+share/vcmi/Mods/vcmi/Data/settingsWindow/gear.png
+share/vcmi/Mods/vcmi/Data/settingsWindow/scrollSpeed1.png
+share/vcmi/Mods/vcmi/Data/settingsWindow/scrollSpeed2.png
+share/vcmi/Mods/vcmi/Data/settingsWindow/scrollSpeed3.png
+share/vcmi/Mods/vcmi/Data/settingsWindow/scrollSpeed4.png
+share/vcmi/Mods/vcmi/Data/settingsWindow/scrollSpeed5.png
+share/vcmi/Mods/vcmi/Data/settingsWindow/scrollSpeed6.png
+share/vcmi/Mods/vcmi/Data/stackWindow/bonus-effects.png
+share/vcmi/Mods/vcmi/Data/stackWindow/button-panel.png
+share/vcmi/Mods/vcmi/Data/stackWindow/commander-abilities.png
+share/vcmi/Mods/vcmi/Data/stackWindow/commander-bg.png
+share/vcmi/Mods/vcmi/Data/stackWindow/icons.png
+share/vcmi/Mods/vcmi/Data/stackWindow/info-panel-0.png
+share/vcmi/Mods/vcmi/Data/stackWindow/info-panel-1.png
+share/vcmi/Mods/vcmi/Data/stackWindow/info-panel-2.png
+share/vcmi/Mods/vcmi/Data/stackWindow/spell-effects.png
+share/vcmi/Mods/vcmi/Sounds/we5.wav
+share/vcmi/Mods/vcmi/Sprites/PortraitsLarge.json
+share/vcmi/Mods/vcmi/Sprites/PortraitsSmall.json
+share/vcmi/Mods/vcmi/Sprites/QuickRecruitmentWindow/CreaturePurchaseCard.png
+share/vcmi/Mods/vcmi/Sprites/QuickRecruitmentWindow/QuickRecruitmentAllButton.def
+share/vcmi/Mods/vcmi/Sprites/QuickRecruitmentWindow/QuickRecruitmentNoneButton.def
+share/vcmi/Mods/vcmi/Sprites/QuickRecruitmentWindow/costBackground.png
+share/vcmi/Mods/vcmi/Sprites/ScSelC.json
+share/vcmi/Mods/vcmi/Sprites/battle/rangeHighlights/green/empty.png
+share/vcmi/Mods/vcmi/Sprites/battle/rangeHighlights/green/fullHex.png
+share/vcmi/Mods/vcmi/Sprites/battle/rangeHighlights/green/left.png
+share/vcmi/Mods/vcmi/Sprites/battle/rangeHighlights/green/leftHalf.png
+share/vcmi/Mods/vcmi/Sprites/battle/rangeHighlights/green/top.png
+share/vcmi/Mods/vcmi/Sprites/battle/rangeHighlights/green/topLeft.png
+share/vcmi/Mods/vcmi/Sprites/battle/rangeHighlights/green/topLeftCorner.png
+share/vcmi/Mods/vcmi/Sprites/battle/rangeHighlights/green/topLeftHalfCorner.png
+share/vcmi/Mods/vcmi/Sprites/battle/rangeHighlights/rangeHighlightsGreen.json
+share/vcmi/Mods/vcmi/Sprites/battle/rangeHighlights/rangeHighlightsRed.json
+share/vcmi/Mods/vcmi/Sprites/battle/rangeHighlights/red/empty.png
+share/vcmi/Mods/vcmi/Sprites/battle/rangeHighlights/red/fullHex.png
+share/vcmi/Mods/vcmi/Sprites/battle/rangeHighlights/red/left.png
+share/vcmi/Mods/vcmi/Sprites/battle/rangeHighlights/red/leftHalf.png
+share/vcmi/Mods/vcmi/Sprites/battle/rangeHighlights/red/top.png
+share/vcmi/Mods/vcmi/Sprites/battle/rangeHighlights/red/topLeft.png
+share/vcmi/Mods/vcmi/Sprites/battle/rangeHighlights/red/topLeftCorner.png
+share/vcmi/Mods/vcmi/Sprites/battle/rangeHighlights/red/topLeftHalfCorner.png
+share/vcmi/Mods/vcmi/Sprites/itpa.json
+share/vcmi/Mods/vcmi/Sprites/lobby/checkbox.json
+share/vcmi/Mods/vcmi/Sprites/lobby/checkboxBlueOff.png
+share/vcmi/Mods/vcmi/Sprites/lobby/checkboxBlueOn.png
+share/vcmi/Mods/vcmi/Sprites/lobby/checkboxOff.png
+share/vcmi/Mods/vcmi/Sprites/lobby/checkboxOn.png
+share/vcmi/Mods/vcmi/Sprites/lobby/dropdown.json
+share/vcmi/Mods/vcmi/Sprites/lobby/dropdownNormal.png
+share/vcmi/Mods/vcmi/Sprites/lobby/dropdownPressed.png
+share/vcmi/Mods/vcmi/Sprites/mapFormatIcons/vcmi1.png
+share/vcmi/Mods/vcmi/Sprites/stackWindow/cancel-normal.png
+share/vcmi/Mods/vcmi/Sprites/stackWindow/cancel-pressed.png
+share/vcmi/Mods/vcmi/Sprites/stackWindow/cancelButton.json
+share/vcmi/Mods/vcmi/Sprites/stackWindow/level-0.png
+share/vcmi/Mods/vcmi/Sprites/stackWindow/level-1.png
+share/vcmi/Mods/vcmi/Sprites/stackWindow/level-10.png
+share/vcmi/Mods/vcmi/Sprites/stackWindow/level-2.png
+share/vcmi/Mods/vcmi/Sprites/stackWindow/level-3.png
+share/vcmi/Mods/vcmi/Sprites/stackWindow/level-4.png
+share/vcmi/Mods/vcmi/Sprites/stackWindow/level-5.png
+share/vcmi/Mods/vcmi/Sprites/stackWindow/level-6.png
+share/vcmi/Mods/vcmi/Sprites/stackWindow/level-7.png
+share/vcmi/Mods/vcmi/Sprites/stackWindow/level-8.png
+share/vcmi/Mods/vcmi/Sprites/stackWindow/level-9.png
+share/vcmi/Mods/vcmi/Sprites/stackWindow/levels.json
+share/vcmi/Mods/vcmi/Sprites/stackWindow/switchModeIcons.json
+share/vcmi/Mods/vcmi/Sprites/stackWindow/upgrade-normal.png
+share/vcmi/Mods/vcmi/Sprites/stackWindow/upgrade-pressed.png
+share/vcmi/Mods/vcmi/Sprites/stackWindow/upgradeButton.json
+share/vcmi/Mods/vcmi/Sprites/vcmi/battleQueue/defendBig.png
+share/vcmi/Mods/vcmi/Sprites/vcmi/battleQueue/defendSmall.png
+share/vcmi/Mods/vcmi/Sprites/vcmi/battleQueue/statesBig.json
+share/vcmi/Mods/vcmi/Sprites/vcmi/battleQueue/statesSmall.json
+share/vcmi/Mods/vcmi/Sprites/vcmi/battleQueue/waitBig.png
+share/vcmi/Mods/vcmi/Sprites/vcmi/battleQueue/waitSmall.png
+share/vcmi/Mods/vcmi/Sprites/vcmi/creatureIcons/towerLarge.png
+share/vcmi/Mods/vcmi/Sprites/vcmi/creatureIcons/towerSmall.png
+share/vcmi/Mods/vcmi/Video/tutorial/AbortSpell.webm
+share/vcmi/Mods/vcmi/Video/tutorial/BattleDirection.webm
+share/vcmi/Mods/vcmi/Video/tutorial/BattleDirectionAbort.webm
+share/vcmi/Mods/vcmi/Video/tutorial/MapPanning.webm
+share/vcmi/Mods/vcmi/Video/tutorial/MapZooming.webm
+share/vcmi/Mods/vcmi/Video/tutorial/RadialWheel.webm
+share/vcmi/Mods/vcmi/Video/tutorial/RightClick.webm
+share/vcmi/Mods/vcmi/config/vcmi/chinese.json
+share/vcmi/Mods/vcmi/config/vcmi/czech.json
+share/vcmi/Mods/vcmi/config/vcmi/english.json
+share/vcmi/Mods/vcmi/config/vcmi/french.json
+share/vcmi/Mods/vcmi/config/vcmi/german.json
+share/vcmi/Mods/vcmi/config/vcmi/polish.json
+share/vcmi/Mods/vcmi/config/vcmi/portuguese.json
+share/vcmi/Mods/vcmi/config/vcmi/rmg/hdmod/aroundamarsh.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/hdmod/balance.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/hdmod/blockbuster.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/hdmod/clashOfDragons.json
+share/vcmi/Mods/vcmi/config/vcmi/rmg/hdmod/coldshadowsFantasy.json
+share/vcmi/Mods/vcmi/config/vcmi/rmg/hdmod/cube.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/hdmod/diamond.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/hdmod/extreme.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/hdmod/extreme2.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/hdmod/fear.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/hdmod/frozenDragons.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/hdmod/gimlisRevenge.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/hdmod/guerilla.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/hdmod/headquarters.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/hdmod/hypercube.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/hdmod/jebusCross.json
+share/vcmi/Mods/vcmi/config/vcmi/rmg/hdmod/longRun.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/hdmod/marathon.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/hdmod/miniNostalgia.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/hdmod/nostalgia.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/hdmod/oceansEleven.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/hdmod/panic.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/hdmod/poorJebus.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/hdmod/reckless.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/hdmod/roadrunner.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/hdmod/shaaafworld.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/hdmod/skirmish.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/hdmod/speed1.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/hdmod/speed2.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/hdmod/spider.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/hdmod/superslam.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/hdmod/triad.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/hdmod/vortex.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/hdmodUnused/anarchy.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/hdmodUnused/balance m+u 200%.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/hdmodUnused/midnightMix.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/hdmodUnused/skirmish m-u 200%.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/hdmodUnused/true random.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/heroes3/dwarvenTunnels.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/heroes3/golemsAplenty.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/heroes3/meetingInMuzgob.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/heroes3/monksRetreat.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/heroes3/newcomers.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/heroes3/readyOrNot.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/heroes3/smallRing.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/heroes3/southOfHell.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/heroes3/worldsAtWar.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/heroes3unused/dragon.json
+share/vcmi/Mods/vcmi/config/vcmi/rmg/heroes3unused/gauntlet.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/heroes3unused/ring.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/heroes3unused/riseOfPhoenix.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/symmetric/2sm0k.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/symmetric/2sm2a.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/symmetric/2sm2b(2).JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/symmetric/2sm2b.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/symmetric/2sm2c.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/symmetric/2sm2f(2).JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/symmetric/2sm2f.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/symmetric/2sm2h(2).JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/symmetric/2sm2h.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/symmetric/2sm2i(2).JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/symmetric/2sm2i.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/symmetric/2sm4d(2).JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/symmetric/2sm4d(3).JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/symmetric/2sm4d.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/symmetric/3sb0b.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/symmetric/3sb0c.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/symmetric/3sm3d.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/symmetric/4sm0d.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/symmetric/4sm0f.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/symmetric/4sm0g.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/symmetric/4sm4e.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/symmetric/5sb0a.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/symmetric/5sb0b.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/symmetric/6lm10.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/symmetric/6lm10a.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/symmetric/6sm0b.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/symmetric/6sm0d.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/symmetric/6sm0e.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/symmetric/7sb0b.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/symmetric/7sb0c.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/symmetric/8mm0e.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/symmetric/8mm6.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/symmetric/8mm6a.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/symmetric/8sm0c.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/symmetric/8sm0f.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/symmetric/8xm12.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/symmetric/8xm12a.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/symmetric/8xm8.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/unknownUnused/2mm2h.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/unknownUnused/2x2sm4d(3).JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/unknownUnused/4mm2h.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/unknownUnused/4sm3i.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/unknownUnused/6lm10a.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/unknownUnused/8xm12 huge.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/unknownUnused/8xm8 huge.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/unknownUnused/analogy.json
+share/vcmi/Mods/vcmi/config/vcmi/rmg/unknownUnused/cross.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/unknownUnused/cross2.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/unknownUnused/cross3.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/unknownUnused/deux paires.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/unknownUnused/doubled 8mm6.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/unknownUnused/elka.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/unknownUnused/goldenRing.json
+share/vcmi/Mods/vcmi/config/vcmi/rmg/unknownUnused/greatSands.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/unknownUnused/kite.JSON
+share/vcmi/Mods/vcmi/config/vcmi/rmg/unknownUnused/upgrade.json
+share/vcmi/Mods/vcmi/config/vcmi/rmg/unknownUnused/wheel.JSON
+share/vcmi/Mods/vcmi/config/vcmi/russian.json
+share/vcmi/Mods/vcmi/config/vcmi/spanish.json
+share/vcmi/Mods/vcmi/config/vcmi/towerCreature.json
+share/vcmi/Mods/vcmi/config/vcmi/towerFactions.json
+share/vcmi/Mods/vcmi/config/vcmi/ukrainian.json
+share/vcmi/Mods/vcmi/config/vcmi/vietnamese.json
+share/vcmi/Mods/vcmi/mod.json
+share/vcmi/config/ERMU_to_picture.json
+share/vcmi/config/NEUTRAL.PAL
+share/vcmi/config/ai/nkai/nkai-settings.json
+share/vcmi/config/ai/nkai/object-priorities.txt
+share/vcmi/config/ambientSounds.json
+share/vcmi/config/artifacts.json
+share/vcmi/config/battleEffects.json
+share/vcmi/config/battleStartpos.json
+share/vcmi/config/battlefields.json
+share/vcmi/config/battles_graphics.json
+share/vcmi/config/biomes.json
+share/vcmi/config/bonuses.json
+share/vcmi/config/campaignMedia.json
+share/vcmi/config/campaignSets.json
+share/vcmi/config/campaign_regions.json
+share/vcmi/config/commanders.json
+share/vcmi/config/creatures/castle.json
+share/vcmi/config/creatures/conflux.json
+share/vcmi/config/creatures/dungeon.json
+share/vcmi/config/creatures/fortress.json
+share/vcmi/config/creatures/inferno.json
+share/vcmi/config/creatures/necropolis.json
+share/vcmi/config/creatures/neutral.json
+share/vcmi/config/creatures/rampart.json
+share/vcmi/config/creatures/special.json
+share/vcmi/config/creatures/stronghold.json
+share/vcmi/config/creatures/tower.json
+share/vcmi/config/difficulty.json
+share/vcmi/config/factions/castle.json
+share/vcmi/config/factions/conflux.json
+share/vcmi/config/factions/dungeon.json
+share/vcmi/config/factions/fortress.json
+share/vcmi/config/factions/inferno.json
+share/vcmi/config/factions/necropolis.json
+share/vcmi/config/factions/neutral.json
+share/vcmi/config/factions/rampart.json
+share/vcmi/config/factions/random.json
+share/vcmi/config/factions/stronghold.json
+share/vcmi/config/factions/tower.json
+share/vcmi/config/filesystem.json
+share/vcmi/config/fonts.json
+share/vcmi/config/gameConfig.json
+share/vcmi/config/heroClasses.json
+share/vcmi/config/heroes/castle.json
+share/vcmi/config/heroes/conflux.json
+share/vcmi/config/heroes/dungeon.json
+share/vcmi/config/heroes/fortress.json
+share/vcmi/config/heroes/inferno.json
+share/vcmi/config/heroes/necropolis.json
+share/vcmi/config/heroes/portraits.json
+share/vcmi/config/heroes/rampart.json
+share/vcmi/config/heroes/special.json
+share/vcmi/config/heroes/stronghold.json
+share/vcmi/config/heroes/tower.json
+share/vcmi/config/highscoreCreatures.json
+share/vcmi/config/mainmenu.json
+share/vcmi/config/mapOverrides.json
+share/vcmi/config/objects/cartographer.json
+share/vcmi/config/objects/coverOfDarkness.json
+share/vcmi/config/objects/creatureBanks.json
+share/vcmi/config/objects/dwellings.json
+share/vcmi/config/objects/generic.json
+share/vcmi/config/objects/magicSpring.json
+share/vcmi/config/objects/magicWell.json
+share/vcmi/config/objects/moddables.json
+share/vcmi/config/objects/observatory.json
+share/vcmi/config/objects/rewardableBonusing.json
+share/vcmi/config/objects/rewardableOncePerHero.json
+share/vcmi/config/objects/rewardableOncePerWeek.json
+share/vcmi/config/objects/rewardableOnceVisitable.json
+share/vcmi/config/objects/rewardablePickable.json
+share/vcmi/config/objects/scholar.json
+share/vcmi/config/objects/shrine.json
+share/vcmi/config/objects/witchHut.json
+share/vcmi/config/obstacles.json
+share/vcmi/config/randomMap.json
+share/vcmi/config/resources.json
+share/vcmi/config/rivers.json
+share/vcmi/config/roads.json
+share/vcmi/config/schemas/artifact.json
+share/vcmi/config/schemas/battlefield.json
+share/vcmi/config/schemas/biome.json
+share/vcmi/config/schemas/bonus.json
+share/vcmi/config/schemas/creature.json
+share/vcmi/config/schemas/faction.json
+share/vcmi/config/schemas/hero.json
+share/vcmi/config/schemas/heroClass.json
+share/vcmi/config/schemas/lobbyProtocol/accountCreated.json
+share/vcmi/config/schemas/lobbyProtocol/accountJoinsRoom.json
+share/vcmi/config/schemas/lobbyProtocol/activateGameRoom.json
+share/vcmi/config/schemas/lobbyProtocol/activeAccounts.json
+share/vcmi/config/schemas/lobbyProtocol/activeGameRooms.json
+share/vcmi/config/schemas/lobbyProtocol/changeRoomDescription.json
+share/vcmi/config/schemas/lobbyProtocol/chatHistory.json
+share/vcmi/config/schemas/lobbyProtocol/chatMessage.json
+share/vcmi/config/schemas/lobbyProtocol/clientLogin.json
+share/vcmi/config/schemas/lobbyProtocol/clientLoginSuccess.json
+share/vcmi/config/schemas/lobbyProtocol/clientProxyLogin.json
+share/vcmi/config/schemas/lobbyProtocol/clientRegister.json
+share/vcmi/config/schemas/lobbyProtocol/gameStarted.json
+share/vcmi/config/schemas/lobbyProtocol/inviteReceived.json
+share/vcmi/config/schemas/lobbyProtocol/joinGameRoom.json
+share/vcmi/config/schemas/lobbyProtocol/joinRoomSuccess.json
+share/vcmi/config/schemas/lobbyProtocol/leaveGameRoom.json
+share/vcmi/config/schemas/lobbyProtocol/matchesHistory.json
+share/vcmi/config/schemas/lobbyProtocol/operationFailed.json
+share/vcmi/config/schemas/lobbyProtocol/requestChatHistory.json
+share/vcmi/config/schemas/lobbyProtocol/sendChatMessage.json
+share/vcmi/config/schemas/lobbyProtocol/sendInvite.json
+share/vcmi/config/schemas/lobbyProtocol/serverLogin.json
+share/vcmi/config/schemas/lobbyProtocol/serverLoginSuccess.json
+share/vcmi/config/schemas/lobbyProtocol/serverProxyLogin.json
+share/vcmi/config/schemas/mapHeader.json
+share/vcmi/config/schemas/mod.json
+share/vcmi/config/schemas/object.json
+share/vcmi/config/schemas/objectTemplate.json
+share/vcmi/config/schemas/objectType.json
+share/vcmi/config/schemas/obstacle.json
+share/vcmi/config/schemas/river.json
+share/vcmi/config/schemas/road.json
+share/vcmi/config/schemas/script.json
+share/vcmi/config/schemas/settings.json
+share/vcmi/config/schemas/skill.json
+share/vcmi/config/schemas/spell.json
+share/vcmi/config/schemas/template.json
+share/vcmi/config/schemas/terrain.json
+share/vcmi/config/schemas/townBuilding.json
+share/vcmi/config/schemas/townSiege.json
+share/vcmi/config/schemas/townStructure.json
+share/vcmi/config/shortcutsConfig.json
+share/vcmi/config/skills.json
+share/vcmi/config/spells/ability.json
+share/vcmi/config/spells/adventure.json
+share/vcmi/config/spells/moats.json
+share/vcmi/config/spells/offensive.json
+share/vcmi/config/spells/other.json
+share/vcmi/config/spells/timed.json
+share/vcmi/config/spells/vcmiAbility.json
+share/vcmi/config/terrainViewPatterns.json
+share/vcmi/config/terrains.json
+share/vcmi/config/textColors.json
+share/vcmi/config/widgets/advancedOptionsTab.json
+share/vcmi/config/widgets/adventureMap.json
+share/vcmi/config/widgets/battleWindow2.json
+share/vcmi/config/widgets/buttons/campaignBonusSelection.json
+share/vcmi/config/widgets/buttons/castleInterfaceQuickAccess.json
+share/vcmi/config/widgets/buttons/heroBackpack.json
+share/vcmi/config/widgets/buttons/heroCommander.json
+share/vcmi/config/widgets/buttons/lobbyCreateRoom.json
+share/vcmi/config/widgets/buttons/lobbyHideWindow.json
+share/vcmi/config/widgets/buttons/lobbyJoinRoom.json
+share/vcmi/config/widgets/buttons/lobbySendMessage.json
+share/vcmi/config/widgets/buttons/pregameInvitePlayers.json
+share/vcmi/config/widgets/buttons/pregameReturnToLobby.json
+share/vcmi/config/widgets/buttons/selectionTabSortDate.json
+share/vcmi/config/widgets/buttons/settingsWindow/button190.json
+share/vcmi/config/widgets/buttons/settingsWindow/button32.json
+share/vcmi/config/widgets/buttons/settingsWindow/button46.json
+share/vcmi/config/widgets/buttons/settingsWindow/button80.json
+share/vcmi/config/widgets/commonPrimitives.json
+share/vcmi/config/widgets/extraOptionsTab.json
+share/vcmi/config/widgets/lobbyWindow.json
+share/vcmi/config/widgets/mapOverview.json
+share/vcmi/config/widgets/playerOptionsTab.json
+share/vcmi/config/widgets/randomMapTab.json
+share/vcmi/config/widgets/settings/adventureOptionsTab.json
+share/vcmi/config/widgets/settings/battleOptionsTab.json
+share/vcmi/config/widgets/settings/generalOptionsTab.json
+share/vcmi/config/widgets/settings/library.json
+share/vcmi/config/widgets/settings/otherOptionsTab.json
+share/vcmi/config/widgets/settings/settingsMainContainer.json
+share/vcmi/config/widgets/turnOptionsDropdownLibrary.json
+share/vcmi/config/widgets/turnOptionsTab.json
Index: pkgsrc/games/vcmi/distinfo
diff -u /dev/null pkgsrc/games/vcmi/distinfo:1.1
--- /dev/null   Mon Aug 12 11:19:26 2024
+++ pkgsrc/games/vcmi/distinfo  Mon Aug 12 11:19:25 2024
@@ -0,0 +1,15 @@
+$NetBSD: distinfo,v 1.1 2024/08/12 11:19:25 nia Exp $
+
+BLAKE2s (fuzzylite-fuzzylite-7aee562d6ca17f3cf42588ffb5116e03017c3c50.tar.gz) = 752aabdf207e52c191d90ca89dcd8f6ff637faee89531b59deac5fe8040c0490
+SHA512 (fuzzylite-fuzzylite-7aee562d6ca17f3cf42588ffb5116e03017c3c50.tar.gz) = 
f7ef98b28c52ff7e793ca21d532f49fc547bae882ab77ed72fd4b43e80805d738c829be11e13a4f71c74166a0c4e54936a79d3f89ae68edced3cf39dc37c5be5
+Size (fuzzylite-fuzzylite-7aee562d6ca17f3cf42588ffb5116e03017c3c50.tar.gz) = 2194254 bytes
+BLAKE2s (vcmi-1.5.6.tar.gz) = 410b17366338dab4db609872baea805fc2a9879e1ae7a05a6e8a00010495c6fe
+SHA512 (vcmi-1.5.6.tar.gz) = b5ec4068cc4e176724b1c307e57758b94cc101ccebd7d60bfc620e4386802eec7f382026a6ce03391cd968d7410a3ebf324d84b0a3919c87bd6797fc75599d31
+Size (vcmi-1.5.6.tar.gz) = 9743615 bytes
+BLAKE2s (vcmi-innoextract-9977089412ebafe9f79936aa65a2edf16a84ae3e.tar.gz) = 3fd52b79fd6378c52f00ff3043cff6401dbd832e16977d8645ab6ea8843fe81f
+SHA512 (vcmi-innoextract-9977089412ebafe9f79936aa65a2edf16a84ae3e.tar.gz) = 
d78d70268afcc99badc62e1ac53f7c90add2af8818c34685e6ae505af8c4141024050fc6c861972cb51a696b62e9d368b77572b3c58ec8eddd1d04d5153a010e
+Size (vcmi-innoextract-9977089412ebafe9f79936aa65a2edf16a84ae3e.tar.gz) = 205354 bytes
+SHA1 (patch-Global.h) = 7a587fa006fb4cb2ab3c9a48c303027a8baa6ed3
+SHA1 (patch-lib_CStopWatch.h) = a5c75887c1fed973a46478de19b9c4f85838cb21
+SHA1 (patch-lib_CThreadHelper.cpp) = bcbbf7c6cedaea3e5a763882618d71e7849289f9
+SHA1 (patch-lib_modding_CModVersion.h) = 470f65e441bb8627e5b0bb53442015fa2cb91bd2
Index: pkgsrc/games/vcmi/options.mk
diff -u /dev/null pkgsrc/games/vcmi/options.mk:1.1
--- /dev/null   Mon Aug 12 11:19:26 2024
+++ pkgsrc/games/vcmi/options.mk        Mon Aug 12 11:19:25 2024
@@ -0,0 +1,35 @@
+# $NetBSD: options.mk,v 1.1 2024/08/12 11:19:25 nia Exp $
+
+PKG_OPTIONS_VAR=               PKG_OPTIONS.vcmi
+
+PKG_SUPPORTED_OPTIONS=         luajit
+
+PKG_OPTIONS_OPTIONAL_GROUPS+=  gui
+PKG_OPTIONS_GROUP.gui+=                qt5 qt6
+
+PKG_SUGGESTED_OPTIONS+=                qt5
+
+.include "../../lang/LuaJIT2/platform.mk"
+.if ${PLATFORM_SUPPORTS_LUAJIT:tl} == "yes"
+PKG_SUGGESTED_OPTIONS+=                luajit
+.endif
+
+.include "../../mk/bsd.options.mk"
+
+PLIST_VARS+=   qt
+.if !empty(PKG_OPTIONS:Mqt6)
+PLIST.qt=      yes
+.  include "../../x11/qt6-qtbase/buildlink3.mk"
+.elif !empty(PKG_OPTIONS:Mqt5)
+PLIST.qt=      yes
+.  include "../../x11/qt5-qtbase/buildlink3.mk"
+.else
+CMAKE_ARGS+=   -DENABLE_LAUNCHER=OFF
+CMAKE_ARGS+=   -DENABLE_EDITOR=OFF
+.endif
+
+.if !empty(PKG_OPTIONS:Mluajit)
+.  include "../../lang/LuaJIT2/buildlink3.mk"
+.else
+.  include "../../lang/lua51/buildlink3.mk"
+.endif

Index: pkgsrc/games/vcmi/patches/patch-Global.h
diff -u /dev/null pkgsrc/games/vcmi/patches/patch-Global.h:1.1
--- /dev/null   Mon Aug 12 11:19:26 2024
+++ pkgsrc/games/vcmi/patches/patch-Global.h    Mon Aug 12 11:19:25 2024
@@ -0,0 +1,17 @@
+$NetBSD: patch-Global.h,v 1.1 2024/08/12 11:19:25 nia Exp $
+
+Add support for NetBSD.
+
+--- Global.h.orig      2024-08-11 18:07:04.139480978 +0000
++++ Global.h
+@@ -41,6 +41,10 @@ static_assert(sizeof(bool) == 1, "Bool n
+ #  define VCMI_UNIX
+ #  define VCMI_XDG
+ #  define VCMI_FREEBSD
++#elif defined(__NetBSD__)
++#  define VCMI_UNIX
++#  define VCMI_XDG
++#  define VCMI_NETBSD
+ #elif defined(__OpenBSD__)
+ #  define VCMI_UNIX
+ #  define VCMI_XDG
Index: pkgsrc/games/vcmi/patches/patch-lib_CStopWatch.h
diff -u /dev/null pkgsrc/games/vcmi/patches/patch-lib_CStopWatch.h:1.1
--- /dev/null   Mon Aug 12 11:19:26 2024
+++ pkgsrc/games/vcmi/patches/patch-lib_CStopWatch.h    Mon Aug 12 11:19:25 2024
@@ -0,0 +1,15 @@
+$NetBSD: patch-lib_CStopWatch.h,v 1.1 2024/08/12 11:19:25 nia Exp $
+
+Add support for NetBSD.
+
+--- lib/CStopWatch.h.orig      2024-08-11 18:14:07.468508472 +0000
++++ lib/CStopWatch.h
+@@ -9,7 +9,7 @@
+  */
+ #pragma once
+ 
+-#if defined(__FreeBSD__) || defined(__OpenBSD__)
++#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
+       #include <sys/types.h>
+       #include <sys/time.h>
+       #include <sys/resource.h>
Index: pkgsrc/games/vcmi/patches/patch-lib_CThreadHelper.cpp
diff -u /dev/null pkgsrc/games/vcmi/patches/patch-lib_CThreadHelper.cpp:1.1
--- /dev/null   Mon Aug 12 11:19:26 2024
+++ pkgsrc/games/vcmi/patches/patch-lib_CThreadHelper.cpp       Mon Aug 12 11:19:26 2024
@@ -0,0 +1,25 @@
+$NetBSD: patch-lib_CThreadHelper.cpp,v 1.1 2024/08/12 11:19:26 nia Exp $
+
+Add support for NetBSD.
+
+--- lib/CThreadHelper.cpp.orig 2024-08-04 19:07:25.000000000 +0000
++++ lib/CThreadHelper.cpp
+@@ -15,7 +15,8 @@
+ #elif defined(VCMI_HAIKU)
+       #include <OS.h>
+ #elif !defined(VCMI_APPLE) && !defined(VCMI_FREEBSD) && \
+-      !defined(VCMI_HURD) && !defined(VCMI_OPENBSD)
++      !defined(VCMI_HURD) && !defined(VCMI_OPENBSD) && \
++      !defined(VCMI_NETBSD)
+       #include <sys/prctl.h>
+ #endif
+ 
+@@ -109,6 +110,8 @@ void setThreadName(const std::string &na
+       pthread_setname_np(name.c_str());
+ #elif defined(VCMI_FREEBSD)
+       pthread_setname_np(pthread_self(), name.c_str());
++#elif defined(VCMI_NETBSD)
++      pthread_setname_np(pthread_self(), "%s", (void *)name.c_str());
+ #elif defined(VCMI_HAIKU)
+       rename_thread(find_thread(NULL), name.c_str());
+ #elif defined(VCMI_UNIX)
Index: pkgsrc/games/vcmi/patches/patch-lib_modding_CModVersion.h
diff -u /dev/null pkgsrc/games/vcmi/patches/patch-lib_modding_CModVersion.h:1.1
--- /dev/null   Mon Aug 12 11:19:26 2024
+++ pkgsrc/games/vcmi/patches/patch-lib_modding_CModVersion.h   Mon Aug 12 11:19:26 2024
@@ -0,0 +1,15 @@
+$NetBSD: patch-lib_modding_CModVersion.h,v 1.1 2024/08/12 11:19:26 nia Exp $
+
+Add support for NetBSD.
+
+--- lib/modding/CModVersion.h.orig     2024-08-11 18:21:51.574618351 +0000
++++ lib/modding/CModVersion.h
+@@ -10,7 +10,7 @@
+ 
+ #pragma once
+ 
+-#if defined(__UCLIBC__) || defined(__FreeBSD__) || defined(__OpenBSD__)
++#if defined(__UCLIBC__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)
+ #undef major
+ #undef minor
+ #undef patch



Home | Main Index | Thread Index | Old Index