diff options
author | plunky <plunky@pkgsrc.org> | 2020-05-21 08:42:57 +0000 |
---|---|---|
committer | plunky <plunky@pkgsrc.org> | 2020-05-21 08:42:57 +0000 |
commit | 06267b4e592e5748fcdd7ce895a0ea0a04937816 (patch) | |
tree | e17ffa365b5e8530009c6630348b53bc99a7e114 /games | |
parent | 68f9d9d44c8ccb2ed6e99d2fbd190295de125c0b (diff) | |
download | pkgsrc-06267b4e592e5748fcdd7ce895a0ea0a04937816.tar.gz |
Added openhexagon-2.0-preview from pkgsrc-wip
"You are a triangle."
Fast paced, challenging, free to play, open source game.
You control a little triangle, which can be rotated clockwise or
counterclockwise. Your goal is to suvive as long as possible by
dodging polygons that move towards the center. Things get more
difficult as time passes!
Features a lot of variety and full customization: users can
create/modify/share levels, patterns, music, sounds, scripts,
and more.
Play in Official Mode and submit your highscores to the
server. Be the first in the leaderboards!
Clone of the game "Super Hexagon" by Terry Cavanagh.
Please check it out and consider buying it if you like Open Hexagon!
Diffstat (limited to 'games')
-rw-r--r-- | games/Makefile | 3 | ||||
-rw-r--r-- | games/openhexagon/DESCR | 18 | ||||
-rw-r--r-- | games/openhexagon/Makefile | 84 | ||||
-rw-r--r-- | games/openhexagon/PLIST | 172 | ||||
-rw-r--r-- | games/openhexagon/distinfo | 40 | ||||
-rw-r--r-- | games/openhexagon/files/openhexagon.sh | 34 | ||||
-rw-r--r-- | games/openhexagon/patches/patch-CMakeLists.txt | 19 | ||||
-rw-r--r-- | games/openhexagon/patches/patch-src_SSVOpenHexagon_Online_Online.cpp | 22 |
8 files changed, 391 insertions, 1 deletions
diff --git a/games/Makefile b/games/Makefile index 94562ea282e..e8f702de4e3 100644 --- a/games/Makefile +++ b/games/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.489 2020/05/20 16:34:22 micha Exp $ +# $NetBSD: Makefile,v 1.490 2020/05/21 08:42:57 plunky Exp $ # COMMENT= Games @@ -300,6 +300,7 @@ SUBDIR+= not_tetris SUBDIR+= nudoku SUBDIR+= omega SUBDIR+= onscripter +SUBDIR+= openhexagon SUBDIR+= openjk SUBDIR+= openmortal SUBDIR+= openmw diff --git a/games/openhexagon/DESCR b/games/openhexagon/DESCR new file mode 100644 index 00000000000..0f8387d5c73 --- /dev/null +++ b/games/openhexagon/DESCR @@ -0,0 +1,18 @@ + "You are a triangle." + +Fast paced, challenging, free to play, open source game. + +You control a little triangle, which can be rotated clockwise or +counterclockwise. Your goal is to suvive as long as possible by +dodging polygons that move towards the center. Things get more +difficult as time passes! + +Features a lot of variety and full customization: users can +create/modify/share levels, patterns, music, sounds, scripts, +and more. + +Play in Official Mode and submit your highscores to the +server. Be the first in the leaderboards! + +Clone of the game "Super Hexagon" by Terry Cavanagh. +Please check it out and consider buying it if you like Open Hexagon! diff --git a/games/openhexagon/Makefile b/games/openhexagon/Makefile new file mode 100644 index 00000000000..5325e5ac949 --- /dev/null +++ b/games/openhexagon/Makefile @@ -0,0 +1,84 @@ +# $NetBSD: Makefile,v 1.1 2020/05/21 08:42:57 plunky Exp $ +# + +DISTNAME= openhexagon-2.0 +CATEGORIES= games + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= https://vittorioromeo.info/projects.html +COMMENT= Open-source clone of the game "Super Hexagon by Terry Cavanagh" +LICENSE= afl-3.0 + +USE_LANGUAGES= c c++14 +USE_CMAKE= yes +USE_TOOLS+= pax sed + +# (sorted in dependency order) +MODULES= SSVUtils-c8190f843ab5bdfcff99e92aec7421c413c887e3 \ + SSVEntitySystem-8123beabe3bc8ffe91cb94e6ba061254f3bba18b \ + SSVJsonCpp-a45c64c418dc0b1fab1eec52fa70b6a14308c635 \ + SSVUtilsJson-95836250e3a9b65883f22991190e652a455121c1 \ + SSVStart-112229f184f5e4cf88c71fe67b4588806d290f71 \ + SSVMenuSystem-03d32b26b2880a35d5daa1ad7ab6199a4d19c742 \ + SSVLuaWrapper-ca905bddae86358182cf85eff2d0220ccdd785d0 \ + SSVOpenHexagonAssets-1d125de695be2e74c9f2ad3198e8b5b29911d010 \ + SSVOpenHexagon-2.0-preview + +.for dist in ${MODULES:=.tar.gz} +DISTFILES+= ${dist} +SITES.${dist}+= ${MASTER_SITE_GITHUB:S,^,-,:=SuperV1234/${dist:S,-,/archive/,}} +.endfor + +WRKSRC= ${WRKDIR}/${MODULES:MSSVOpenHexagon-*} + +SUBST_CLASSES+= wrap +SUBST_STAGE.wrap= pre-configure +SUBST_MESSAGE.wrap= Adjusting shell wrapper +SUBST_FILES.wrap= ${PKGBASE} +SUBST_VARS.wrap= PREFIX PKGBASE + +SUBST_CLASSES+= include +SUBST_STAGE.include= post-configure +SUBST_MESSAGE.include= Fixing hardcoded include path +SUBST_FILES.include= extlibs/SSVLuaWrapper/include/SSVLuaWrapper/LuaContext/LuaContext.h +SUBST_SED.include= -e 's,lua5.1,lua-${LUA_VERSION_MAJOR}.${LUA_VERSION_MINOR},' + +CMAKE_ARGS+= -DPKGBASE=${PKGBASE} +CMAKE_ARGS+= -DBUILD_SHARED_LIB:BOOL=OFF +CMAKE_ARGS+= -DLUA_LIBRARY=${BUILDLINK_DIR}/lib/liblua${LUA_VERSION_MAJOR}.${LUA_VERSION_MINOR}.so +CMAKE_ARGS+= -DLUA_INCLUDE_DIR=${BUILDLINK_DIR}/${LUA_INCDIR} + +.for mod in ${MODULES:NSSVOpenHexagon*:C/-.*//} +CMAKE_ARGS+= -D${mod:tu}_INCLUDE_DIR=${WRKSRC}/extlibs/${mod}/include +CMAKE_ARGS+= -D${mod:tu}_LIBRARY_RELEASE=${WRKSRC}/extlibs/${mod}/lib${mod}-s.a +.endfor + +CONFIGURE_DIRS+= ${MODULES:NSSVOpenHexagon*:C/-.*//:%=extlibs/%} . + +INSTALL_DIRS+= . + +INSTALLATION_DIRS+= bin lib/${PKGBASE} + +pre-patch: + for d in ${WRKDIR}/*/extlibs/*; do \ + ${RMDIR} $${d} && ${LN} -s ${WRKDIR}/$${d##*/}-* $${d}; \ + done + +post-extract: + ${CP} ${FILESDIR}/${PKGBASE}.sh ${WRKSRC}/${PKGBASE} + +post-build: + for p in ${WRKDIR}/${MODULES:MSSVOpenHexagonAssets-*}/_RELEASE/Packs/*; do \ + ${ECHO} "{ \"name\":\"$${p##*/}\", \"priority\":0 }" >$${p}/pack.json; \ + done + +post-install: + ${INSTALL_SCRIPT} ${WRKSRC}/${PKGBASE} ${DESTDIR}${PREFIX}/bin + cd ${WRKDIR}/${MODULES:MSSVOpenHexagonAssets-*}/_RELEASE && \ + ${PAX} -rwpm Assets Packs ${DESTDIR}${PREFIX}/lib/${PKGBASE} + +LUA_VERSIONS_ACCEPTED= 51 + +.include "../../lang/lua/buildlink3.mk" +.include "../../multimedia/sfml/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/games/openhexagon/PLIST b/games/openhexagon/PLIST new file mode 100644 index 00000000000..3f5739dd72c --- /dev/null +++ b/games/openhexagon/PLIST @@ -0,0 +1,172 @@ +@comment $NetBSD: PLIST,v 1.1 2020/05/21 08:42:57 plunky Exp $ +bin/openhexagon +lib/openhexagon/Assets/assets.json +lib/openhexagon/Assets/beep.ogg +lib/openhexagon/Assets/bottomBar.png +lib/openhexagon/Assets/creditsBar1.png +lib/openhexagon/Assets/creditsBar2.png +lib/openhexagon/Assets/creditsBar2b.png +lib/openhexagon/Assets/creditsBar2c.png +lib/openhexagon/Assets/creditsBar2d.png +lib/openhexagon/Assets/death.ogg +lib/openhexagon/Assets/gameOver.ogg +lib/openhexagon/Assets/go.ogg +lib/openhexagon/Assets/imagine.ttf +lib/openhexagon/Assets/levelUp.ogg +lib/openhexagon/Assets/openHexagon.ogg +lib/openhexagon/Assets/swap.ogg +lib/openhexagon/Assets/titleBar.png +lib/openhexagon/ConfigOverrides/debug.json +lib/openhexagon/ConfigOverrides/fraps.json +lib/openhexagon/ConfigOverrides/fullscreen.json +lib/openhexagon/ConfigOverrides/highfps.json +lib/openhexagon/ConfigOverrides/no3D.json +lib/openhexagon/ConfigOverrides/noaudio.json +lib/openhexagon/ConfigOverrides/nocosmeticscript.json +lib/openhexagon/ConfigOverrides/windowed.json +lib/openhexagon/Packs/VeeDefault/Levels/easy.json +lib/openhexagon/Packs/VeeDefault/Levels/extra.json +lib/openhexagon/Packs/VeeDefault/Levels/goldenratio.json +lib/openhexagon/Packs/VeeDefault/Levels/hard.json +lib/openhexagon/Packs/VeeDefault/Levels/lunatic.json +lib/openhexagon/Packs/VeeDefault/Levels/normal.json +lib/openhexagon/Packs/VeeDefault/Levels/pi.json +lib/openhexagon/Packs/VeeDefault/Levels/tutorial.json +lib/openhexagon/Packs/VeeDefault/Levels/tutorial2.json +lib/openhexagon/Packs/VeeDefault/Music/callMeKatla.json +lib/openhexagon/Packs/VeeDefault/Music/captainCool.json +lib/openhexagon/Packs/VeeDefault/Music/drFinkelfracken.json +lib/openhexagon/Packs/VeeDefault/Music/jackRussel.json +lib/openhexagon/Packs/VeeDefault/Music/mazeOfMayonnaise.json +lib/openhexagon/Packs/VeeDefault/Music/milkyWays.json +lib/openhexagon/Packs/VeeDefault/Music/starshipShowdown.json +lib/openhexagon/Packs/VeeDefault/Music/steampunkWarlord.json +lib/openhexagon/Packs/VeeDefault/Scripts/alternativepatterns.lua +lib/openhexagon/Packs/VeeDefault/Scripts/common.lua +lib/openhexagon/Packs/VeeDefault/Scripts/commonpatterns.lua +lib/openhexagon/Packs/VeeDefault/Scripts/defaultLevels/easypatterns.lua +lib/openhexagon/Packs/VeeDefault/Scripts/defaultLevels/hardpatterns.lua +lib/openhexagon/Packs/VeeDefault/Scripts/defaultLevels/lunaticpatterns.lua +lib/openhexagon/Packs/VeeDefault/Scripts/defaultLevels/normalpatterns.lua +lib/openhexagon/Packs/VeeDefault/Scripts/defaultLevels/pipatterns.lua +lib/openhexagon/Packs/VeeDefault/Scripts/defaultLevels/tutorial.lua +lib/openhexagon/Packs/VeeDefault/Scripts/defaultLevels/zen.lua +lib/openhexagon/Packs/VeeDefault/Scripts/patternizerpatterns.lua +lib/openhexagon/Packs/VeeDefault/Scripts/utils.lua +lib/openhexagon/Packs/VeeDefault/Styles/danger.json +lib/openhexagon/Packs/VeeDefault/Styles/dangertest.json +lib/openhexagon/Packs/VeeDefault/Styles/dark.json +lib/openhexagon/Packs/VeeDefault/Styles/goldenratio.json +lib/openhexagon/Packs/VeeDefault/Styles/gray.json +lib/openhexagon/Packs/VeeDefault/Styles/light.json +lib/openhexagon/Packs/VeeDefault/Styles/pistyle.json +lib/openhexagon/Packs/VeeDefault/Styles/toxic.json +lib/openhexagon/Packs/VeeDefault/Styles/tutorial.json +lib/openhexagon/Packs/VeeDefault/Styles/tutorial2.json +lib/openhexagon/Packs/VeeDefault/pack.json +lib/openhexagon/Packs/VeeEndurance/Levels/commando.json +lib/openhexagon/Packs/VeeEndurance/Levels/commando.tracked +lib/openhexagon/Packs/VeeEndurance/Levels/labyrinth.json +lib/openhexagon/Packs/VeeEndurance/Levels/labyrinth.tracked +lib/openhexagon/Packs/VeeEndurance/Music/commandoSteve.json +lib/openhexagon/Packs/VeeEndurance/Scripts/alternativepatterns.lua +lib/openhexagon/Packs/VeeEndurance/Scripts/common.lua +lib/openhexagon/Packs/VeeEndurance/Scripts/commonpatterns.lua +lib/openhexagon/Packs/VeeEndurance/Scripts/defaultLevels/commando.lua +lib/openhexagon/Packs/VeeEndurance/Scripts/defaultLevels/labyrinth.lua +lib/openhexagon/Packs/VeeEndurance/Scripts/patternizerpatterns.lua +lib/openhexagon/Packs/VeeEndurance/Scripts/utils.lua +lib/openhexagon/Packs/VeeEndurance/Styles/wordless.json +lib/openhexagon/Packs/VeeEndurance/Styles/wordlessinverse.json +lib/openhexagon/Packs/VeeEndurance/pack.json +lib/openhexagon/Packs/VeeEvolution/Levels/disc-o.json +lib/openhexagon/Packs/VeeEvolution/Levels/disc-o.tracked +lib/openhexagon/Packs/VeeEvolution/Levels/evotutorial.json +lib/openhexagon/Packs/VeeEvolution/Levels/g-force.json +lib/openhexagon/Packs/VeeEvolution/Levels/g-force.tracked +lib/openhexagon/Packs/VeeEvolution/Levels/massacre.json +lib/openhexagon/Packs/VeeEvolution/Levels/massacre.tracked +lib/openhexagon/Packs/VeeEvolution/Levels/reppaws.json +lib/openhexagon/Packs/VeeEvolution/Levels/reppaws.tracked +lib/openhexagon/Packs/VeeEvolution/Levels/slither.json +lib/openhexagon/Packs/VeeEvolution/Levels/slither.tracked +lib/openhexagon/Packs/VeeEvolution/Music/cpumood.json +lib/openhexagon/Packs/VeeEvolution/Music/dischipo.json +lib/openhexagon/Packs/VeeEvolution/Music/gmoomh.json +lib/openhexagon/Packs/VeeEvolution/Music/massacrev2.json +lib/openhexagon/Packs/VeeEvolution/Music/minimal.json +lib/openhexagon/Packs/VeeEvolution/Music/pep.json +lib/openhexagon/Packs/VeeEvolution/Scripts/alternativepatterns.lua +lib/openhexagon/Packs/VeeEvolution/Scripts/common.lua +lib/openhexagon/Packs/VeeEvolution/Scripts/commonpatterns.lua +lib/openhexagon/Packs/VeeEvolution/Scripts/defaultLevels/disc-o.lua +lib/openhexagon/Packs/VeeEvolution/Scripts/defaultLevels/evotutorial.lua +lib/openhexagon/Packs/VeeEvolution/Scripts/defaultLevels/g-force.lua +lib/openhexagon/Packs/VeeEvolution/Scripts/defaultLevels/massacre.lua +lib/openhexagon/Packs/VeeEvolution/Scripts/defaultLevels/reppaws.lua +lib/openhexagon/Packs/VeeEvolution/Scripts/defaultLevels/slither.lua +lib/openhexagon/Packs/VeeEvolution/Scripts/evolutionpatterns.lua +lib/openhexagon/Packs/VeeEvolution/Scripts/nextpatterns.lua +lib/openhexagon/Packs/VeeEvolution/Scripts/patternizerpatterns.lua +lib/openhexagon/Packs/VeeEvolution/Scripts/utils.lua +lib/openhexagon/Packs/VeeEvolution/Styles/disc-o.json +lib/openhexagon/Packs/VeeEvolution/Styles/evotutorial.json +lib/openhexagon/Packs/VeeEvolution/Styles/g-force.json +lib/openhexagon/Packs/VeeEvolution/Styles/massacre.json +lib/openhexagon/Packs/VeeEvolution/Styles/reppaws.json +lib/openhexagon/Packs/VeeEvolution/Styles/slither.json +lib/openhexagon/Packs/VeeEvolution/pack.json +lib/openhexagon/Packs/VeeNext/Levels/acceleradiant.json +lib/openhexagon/Packs/VeeNext/Levels/incongruence.json +lib/openhexagon/Packs/VeeNext/Levels/incongruence.tracked +lib/openhexagon/Packs/VeeNext/Levels/polyhedrug.json +lib/openhexagon/Packs/VeeNext/Levels/polyhedrug.tracked +lib/openhexagon/Packs/VeeNext/Music/flirtFlirt.json +lib/openhexagon/Packs/VeeNext/Music/johnnyDerp.json +lib/openhexagon/Packs/VeeNext/Music/mrGawne.json +lib/openhexagon/Packs/VeeNext/Scripts/alternativepatterns.lua +lib/openhexagon/Packs/VeeNext/Scripts/common.lua +lib/openhexagon/Packs/VeeNext/Scripts/commonpatterns.lua +lib/openhexagon/Packs/VeeNext/Scripts/defaultLevels/acceleradiant.lua +lib/openhexagon/Packs/VeeNext/Scripts/defaultLevels/incongruence.lua +lib/openhexagon/Packs/VeeNext/Scripts/defaultLevels/polyhedrug.lua +lib/openhexagon/Packs/VeeNext/Scripts/nextpatterns.lua +lib/openhexagon/Packs/VeeNext/Scripts/patternizerpatterns.lua +lib/openhexagon/Packs/VeeNext/Scripts/utils.lua +lib/openhexagon/Packs/VeeNext/Styles/acceleradiant.json +lib/openhexagon/Packs/VeeNext/Styles/incongruence.json +lib/openhexagon/Packs/VeeNext/Styles/polyhedrug.json +lib/openhexagon/Packs/VeeNext/pack.json +lib/openhexagon/Packs/cube/Music/callMeKatla.ogg +lib/openhexagon/Packs/cube/Music/captainCool.ogg +lib/openhexagon/Packs/cube/Music/commandoSteve.ogg +lib/openhexagon/Packs/cube/Music/drFinkelfracken.ogg +lib/openhexagon/Packs/cube/Music/jackRussel.ogg +lib/openhexagon/Packs/cube/Music/mazeOfMayonnaise.ogg +lib/openhexagon/Packs/cube/Music/milkyWays.ogg +lib/openhexagon/Packs/cube/Music/starshipShowdown.ogg +lib/openhexagon/Packs/cube/Music/steampunkWarlord.ogg +lib/openhexagon/Packs/cube/Sounds/test.ogg +lib/openhexagon/Packs/cube/pack.json +lib/openhexagon/Packs/hypercube/Music/cpumood.ogg +lib/openhexagon/Packs/hypercube/Music/dischipo.ogg +lib/openhexagon/Packs/hypercube/Music/flirtFlirt.ogg +lib/openhexagon/Packs/hypercube/Music/gmoomh.ogg +lib/openhexagon/Packs/hypercube/Music/johnnyDerp.ogg +lib/openhexagon/Packs/hypercube/Music/massacrev2.ogg +lib/openhexagon/Packs/hypercube/Music/minimal.ogg +lib/openhexagon/Packs/hypercube/Music/mrGawne.ogg +lib/openhexagon/Packs/hypercube/Music/pep.ogg +lib/openhexagon/Packs/hypercube/Music/tengil.ogg +lib/openhexagon/Packs/hypercube/pack.json +lib/openhexagon/SSVOpenHexagon +lib/openhexagon/_DOCUMENTATION/README.html +lib/openhexagon/_DOCUMENTATION/README_CONFIGOVERRIDES.html +lib/openhexagon/_DOCUMENTATION/README_EVENTS.html +lib/openhexagon/_DOCUMENTATION/README_LEVELS.html +lib/openhexagon/_DOCUMENTATION/README_MUSIC.html +lib/openhexagon/_DOCUMENTATION/README_ONLINE.html +lib/openhexagon/_DOCUMENTATION/README_SCRIPTING.html +lib/openhexagon/_DOCUMENTATION/README_SOUNDS.html +lib/openhexagon/_DOCUMENTATION/README_STYLES.html +lib/openhexagon/config.json diff --git a/games/openhexagon/distinfo b/games/openhexagon/distinfo new file mode 100644 index 00000000000..1a0772bb6b5 --- /dev/null +++ b/games/openhexagon/distinfo @@ -0,0 +1,40 @@ +$NetBSD: distinfo,v 1.1 2020/05/21 08:42:57 plunky Exp $ + +SHA1 (SSVEntitySystem-8123beabe3bc8ffe91cb94e6ba061254f3bba18b.tar.gz) = e950b4d6dc4e9304baaefff7080203480304cf4a +RMD160 (SSVEntitySystem-8123beabe3bc8ffe91cb94e6ba061254f3bba18b.tar.gz) = 9c149e64d7e44c552afd24ee2766c70d5460e7d9 +SHA512 (SSVEntitySystem-8123beabe3bc8ffe91cb94e6ba061254f3bba18b.tar.gz) = e1baa7cb26bc2215baf569b1aa1a4240b17310b2e1717a23f9e9978cf8bc4f72df64573aa474b17bbfe6896793c48a9facd0ed80e4d0f792631297dd548aaf81 +Size (SSVEntitySystem-8123beabe3bc8ffe91cb94e6ba061254f3bba18b.tar.gz) = 8727 bytes +SHA1 (SSVJsonCpp-a45c64c418dc0b1fab1eec52fa70b6a14308c635.tar.gz) = 58e7ba1d423bfc665d25af04867c73a6a64ca85c +RMD160 (SSVJsonCpp-a45c64c418dc0b1fab1eec52fa70b6a14308c635.tar.gz) = facfac9b3ed42cf110b08efe7f7f8061b39a3819 +SHA512 (SSVJsonCpp-a45c64c418dc0b1fab1eec52fa70b6a14308c635.tar.gz) = ddda771a57d13d5bc4aa877b2c7c50092a00ddffeefcbe0aaf70b978451d29599b3d69ef387372a52c37244edbad9dbfcf3e4013c273873a39c590042881e2d9 +Size (SSVJsonCpp-a45c64c418dc0b1fab1eec52fa70b6a14308c635.tar.gz) = 39249 bytes +SHA1 (SSVLuaWrapper-ca905bddae86358182cf85eff2d0220ccdd785d0.tar.gz) = 095585d544f693db3e59b30f08752de44eeef9db +RMD160 (SSVLuaWrapper-ca905bddae86358182cf85eff2d0220ccdd785d0.tar.gz) = 8f55374360b2874ac2f85db45e52dee035549750 +SHA512 (SSVLuaWrapper-ca905bddae86358182cf85eff2d0220ccdd785d0.tar.gz) = 4bc3180232f73acaa2cc02ebd4bf86b1971ea4dfad04e22e7ea49b983e99e580720c2e6250969c8b7dfd76738a987074f9dd60c352dd38b3755007c83127760a +Size (SSVLuaWrapper-ca905bddae86358182cf85eff2d0220ccdd785d0.tar.gz) = 20005 bytes +SHA1 (SSVMenuSystem-03d32b26b2880a35d5daa1ad7ab6199a4d19c742.tar.gz) = 310c5ab4dfed8f5bb28493b53ccb5c3519559fd8 +RMD160 (SSVMenuSystem-03d32b26b2880a35d5daa1ad7ab6199a4d19c742.tar.gz) = df70f743baa65d8ce6c40df6c47e711d0466567f +SHA512 (SSVMenuSystem-03d32b26b2880a35d5daa1ad7ab6199a4d19c742.tar.gz) = cde4b7694147d4045d89e46facefaf4d47e7263dc290643ff1498f7eae0f40c1bae5fa86f35f7981445d3c2f7fc22ecd8c65a6ec117dea0cd48fe5ca212a0ce2 +Size (SSVMenuSystem-03d32b26b2880a35d5daa1ad7ab6199a4d19c742.tar.gz) = 8911 bytes +SHA1 (SSVOpenHexagon-2.0-preview.tar.gz) = 6bb86de3a194e816957d8cdd55fc423259c2c000 +RMD160 (SSVOpenHexagon-2.0-preview.tar.gz) = 7feefde13a795d687dbe09b96062e149851f5d5c +SHA512 (SSVOpenHexagon-2.0-preview.tar.gz) = 0836b6b477227ee768ce43f411b065b1b25fff6ba16401d5ebde1443cde3f03e36d9bb1d11043e958a3f4a38e9af2f0b801aecd39b4edb31007c45c9ce074fdb +Size (SSVOpenHexagon-2.0-preview.tar.gz) = 317548 bytes +SHA1 (SSVOpenHexagonAssets-1d125de695be2e74c9f2ad3198e8b5b29911d010.tar.gz) = 10e28692d4c97218587b9c381fb811128964d6ae +RMD160 (SSVOpenHexagonAssets-1d125de695be2e74c9f2ad3198e8b5b29911d010.tar.gz) = c4d0a272df325b2475a59fa12eeb3d1ab0828fd9 +SHA512 (SSVOpenHexagonAssets-1d125de695be2e74c9f2ad3198e8b5b29911d010.tar.gz) = 616491b2378031f0b1ca124ecfb54448ad19a13979927ac58a588b6aa7af1ac4059194cfc2ee78739352938b843f09df8564e6dcd82201e8ccadae3cd7523d2e +Size (SSVOpenHexagonAssets-1d125de695be2e74c9f2ad3198e8b5b29911d010.tar.gz) = 43488512 bytes +SHA1 (SSVStart-112229f184f5e4cf88c71fe67b4588806d290f71.tar.gz) = cbf1fa5b8acad236de089c07f2f6f4d45eabe9a8 +RMD160 (SSVStart-112229f184f5e4cf88c71fe67b4588806d290f71.tar.gz) = 0049b678079b0d0126d57e3014318b1b8f16d26e +SHA512 (SSVStart-112229f184f5e4cf88c71fe67b4588806d290f71.tar.gz) = 3e2a1114274bb86cee4ec303a7b2be6f7fa24a3cbd74cf4bd9b5f24056fda40188892b11f955e078877fbfe92f4ea1a95e8350438d5921646e74fb1f1de98817 +Size (SSVStart-112229f184f5e4cf88c71fe67b4588806d290f71.tar.gz) = 23834 bytes +SHA1 (SSVUtils-c8190f843ab5bdfcff99e92aec7421c413c887e3.tar.gz) = 3e3ef609c586c4ec19f2832479a1118f15c0a827 +RMD160 (SSVUtils-c8190f843ab5bdfcff99e92aec7421c413c887e3.tar.gz) = 0179924721b01f7fec4fb38a5c44fc92805e33b1 +SHA512 (SSVUtils-c8190f843ab5bdfcff99e92aec7421c413c887e3.tar.gz) = 66d4d194045b52bf0f5c4ce76afac0d070237cb22829527078a8a50dd522e0fac307b5fd8e90c96347db30591ab08d2eaa0ea7b4ec72386ea5c4ccdbe06ae13d +Size (SSVUtils-c8190f843ab5bdfcff99e92aec7421c413c887e3.tar.gz) = 49728 bytes +SHA1 (SSVUtilsJson-95836250e3a9b65883f22991190e652a455121c1.tar.gz) = 31338e8e2f569d6a53267989ab6fca2449d52e82 +RMD160 (SSVUtilsJson-95836250e3a9b65883f22991190e652a455121c1.tar.gz) = 2c38b263bfd125772dd4c2799a5579a41e941b3f +SHA512 (SSVUtilsJson-95836250e3a9b65883f22991190e652a455121c1.tar.gz) = bcc01f6dc70353100ca3cf184d16c65ebac0cc0b256aa31c0c9c8925b96eb6cd3dc79c685d4d250f83ca3656498d927da796c5fdd813518db3d15cf096a11f97 +Size (SSVUtilsJson-95836250e3a9b65883f22991190e652a455121c1.tar.gz) = 8298 bytes +SHA1 (patch-CMakeLists.txt) = 7dacdc7f2596b7586b9b73bac1404621f2b01009 +SHA1 (patch-src_SSVOpenHexagon_Online_Online.cpp) = 0676a63784d6e5ac0a24ba4b6a7ae5513c6c8d3a diff --git a/games/openhexagon/files/openhexagon.sh b/games/openhexagon/files/openhexagon.sh new file mode 100644 index 00000000000..c5b6108b881 --- /dev/null +++ b/games/openhexagon/files/openhexagon.sh @@ -0,0 +1,34 @@ +#! /bin/sh + +set -e + +# set up the home directory +dir="$HOME/.@PKGBASE@" +if [ ! -d "$dir" ]; then + if [ ! -d "$HOME" ]; then + echo "error: no HOME directory" + exit 1 + fi + if [ -e "$dir" ]; then + echo "error: $dir exists" + exit 1 + fi + mkdir "$dir" +fi +cd "$dir" + +for dir in Assets ConfigOverrides Packs _DOCUMENTATION +do + if [ ! -e "$dir" ]; then + ln -hs "@PREFIX@/lib/@PKGBASE@/$dir" . + fi +done + +for file in config.json +do + if [ ! -e "$file" ]; then + cp "@PREFIX@/lib/@PKGBASE@/$file" . + fi +done + +exec @PREFIX@/lib/@PKGBASE@/SSVOpenHexagon diff --git a/games/openhexagon/patches/patch-CMakeLists.txt b/games/openhexagon/patches/patch-CMakeLists.txt new file mode 100644 index 00000000000..0ced785d8de --- /dev/null +++ b/games/openhexagon/patches/patch-CMakeLists.txt @@ -0,0 +1,19 @@ +$NetBSD: patch-CMakeLists.txt,v 1.1 2020/05/21 08:42:57 plunky Exp $ + +install in pkgsrc dirs + +--- CMakeLists.txt.orig 2013-07-13 23:37:47.000000000 +0000 ++++ CMakeLists.txt +@@ -65,10 +65,8 @@ target_link_libraries(${PROJECT_NAME} ${ + target_link_libraries(${PROJECT_NAME} ${LUA_LIBRARY}) + + if(UNIX) +- install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION /usr/local/games/${PROJECT_NAME}/) +- install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION ${CMAKE_SOURCE_DIR}/_RELEASE/) +- install(DIRECTORY _RELEASE/ DESTINATION /usr/local/games/SSVOpenHexagon/) +- install(PROGRAMS _RELEASE/${PROJECT_NAME} DESTINATION /usr/local/games/${PROJECT_NAME}/ PERMISSIONS WORLD_EXECUTE WORLD_READ) ++ install(DIRECTORY _RELEASE/ DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/${PKGBASE}/) ++ install(PROGRAMS ${PROJECT_NAME} DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/${PKGBASE}/) + else(WIN32) + install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION ./_RELEASE/) + endif() diff --git a/games/openhexagon/patches/patch-src_SSVOpenHexagon_Online_Online.cpp b/games/openhexagon/patches/patch-src_SSVOpenHexagon_Online_Online.cpp new file mode 100644 index 00000000000..4522391fbbf --- /dev/null +++ b/games/openhexagon/patches/patch-src_SSVOpenHexagon_Online_Online.cpp @@ -0,0 +1,22 @@ +$NetBSD: patch-src_SSVOpenHexagon_Online_Online.cpp,v 1.1 2020/05/21 08:42:57 plunky Exp $ + +Avoid crash after 75 seconds. + +--- src/SSVOpenHexagon/Online/Online.cpp.orig 2013-07-13 23:37:47.000000000 +0000 ++++ src/SSVOpenHexagon/Online/Online.cpp +@@ -143,6 +143,7 @@ namespace hg + TcpSocket socket; + Packet packet0x01, packet0x11; + packet0x01 << int8_t{0x01} << (string)mValidator << (float)mDifficulty << (string)mName; ++#if 0 + socket.connect(hostIp, hostPort); socket.send(packet0x01); socket.receive(packet0x11); + uint8_t packetID, pass; + string response[2]; +@@ -164,6 +165,7 @@ namespace hg + else log("Error: could not get scores", "Online"); + } + socket.disconnect(); ++#endif + log("Finished getting scores", "Online"); + startGetFriendsScores(mTarget, mNames, mValidator, mDifficulty); + cleanUp(); |