diff --git a/games/powder-toy/Makefile b/games/powder-toy/Makefile index f4e344329676..2bad8d6cf2ef 100644 --- a/games/powder-toy/Makefile +++ b/games/powder-toy/Makefile @@ -1,60 +1,62 @@ PORTNAME= powder-toy DISTVERSIONPREFIX= v DISTVERSION= 97.0.352 +PORTREVISION= 1 CATEGORIES= games MAINTAINER= amdmi3@FreeBSD.org COMMENT= 'Falling sand' physics sandbox with air pressure and velocity support WWW= https://powdertoy.co.uk/ \ https://github.com/The-Powder-Toy/The-Powder-Toy LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libfftw3f.so:math/fftw3-float \ libfftw3.so:math/fftw3 \ libcurl.so:ftp/curl \ libpng.so:graphics/png \ libjsoncpp.so:devel/jsoncpp USE_GITHUB= yes GH_ACCOUNT= The-Powder-Toy GH_PROJECT= The-Powder-Toy USES= compiler:c++17-lang luajit:luajit-openresty meson pkgconfig \ python:build sdl USE_SDL= sdl2 MESON_ARGS= -Dapp_exe="${PORTNAME}" PORTDOCS= README.md changelog.txt OPTIONS_DEFINE= DOCS SSE OPTIONS_DEFAULT_amd64= SSE SSE_DESC= Enable SSE optimizations SSE_MESON_ON= -Dx86_sse=auto SSE_MESON_OFF= -Dx86_sse=none post-patch: @${REINPLACE_CMD} -e 's|python3|${PYTHON_CMD}|' ${WRKSRC}/meson.build do-install: ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/powder-toy ${STAGEDIR}${PREFIX}/bin/ ${INSTALL_DATA} ${BUILD_WRKSRC}/resources/powder.desktop ${STAGEDIR}${PREFIX}/share/applications/uk.co.powdertoy.tpt.desktop # as mentioned in appdata @${MKDIR} ${STAGEDIR}${PREFIX}/share/appdata ${INSTALL_DATA} ${BUILD_WRKSRC}/resources/appdata.xml ${STAGEDIR}${PREFIX}/share/appdata/powder-toy.appdata.xml -.for s in 16 32 48 256 +.for s in 16 24 32 48 256 @${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}x${s}/apps - ${INSTALL_DATA} ${WRKSRC}/resources/generated_icons/icon_exe${${s} == 256:?:_${s}}.png \ - ${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}x${s}/apps/powder-toy.png .endfor - ${INSTALL_DATA} ${WRKSRC}/resources/generated_icons/icon_exe_32.png \ - ${STAGEDIR}${PREFIX}/share/pixmaps/powder-toy.png + ${INSTALL_DATA} ${WRKSRC}/resources/generated_icons/icon_exe_16.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/16x16/apps/powder-toy.png + ${INSTALL_DATA} ${WRKSRC}/resources/generated_icons/icon_exe_32.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/24x24/apps/powder-toy.png # for e.g. lxpanel + ${INSTALL_DATA} ${WRKSRC}/resources/generated_icons/icon_exe_32.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/32x32/apps/powder-toy.png + ${INSTALL_DATA} ${WRKSRC}/resources/generated_icons/icon_exe_48.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/48x48/apps/powder-toy.png + ${INSTALL_DATA} ${WRKSRC}/resources/generated_icons/icon_exe.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/256x256/apps/powder-toy.png do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} .for f in ${PORTDOCS} ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/ .endfor .include diff --git a/games/powder-toy/files/patch-resources_powder.template.desktop b/games/powder-toy/files/patch-resources_powder.template.desktop new file mode 100644 index 000000000000..e60b76b7e182 --- /dev/null +++ b/games/powder-toy/files/patch-resources_powder.template.desktop @@ -0,0 +1,8 @@ +--- resources/powder.template.desktop.orig 2023-01-04 02:02:45 UTC ++++ resources/powder.template.desktop +@@ -5,4 +5,4 @@ Comment=@APPCOMMENT@ + MimeType=application/vnd.powdertoy.save;x-scheme-handler/ptsave; + Categories=Game;Simulation; + Exec=@APPEXE@ %u +-Icon=@APPVENDOR@-@APPEXE@ ++Icon=@APPEXE@ diff --git a/games/powder-toy/files_/patch-resources_powder.appdata.xml b/games/powder-toy/files_/patch-resources_powder.appdata.xml deleted file mode 100644 index b6bc4e2b6685..000000000000 --- a/games/powder-toy/files_/patch-resources_powder.appdata.xml +++ /dev/null @@ -1,11 +0,0 @@ ---- resources/powder.appdata.xml.orig 2020-02-27 03:38:53 UTC -+++ resources/powder.appdata.xml -@@ -8,7 +8,7 @@ - - moderate - -- powder.desktop -+ powder-toy.desktop - -

- The Powder Toy is a free physics sandbox game, which simulates air pressure and velocity, heat, gravity and a countless number of interactions between different substances! The game provides you with various building materials, liquids, gases and electronic components which can be used to construct complex machines, guns, bombs, realistic terrains and almost anything else. You can then mine them and watch cool explosions, add intricate wirings, play with little stickmen or operate your machine. You can browse and play thousands of different saves made by the community or upload your own - we welcome your creations! diff --git a/games/powder-toy/files_/patch-resources_powder.desktop b/games/powder-toy/files_/patch-resources_powder.desktop deleted file mode 100644 index eecd45588cbf..000000000000 --- a/games/powder-toy/files_/patch-resources_powder.desktop +++ /dev/null @@ -1,12 +0,0 @@ ---- resources/powder.desktop.orig 2019-02-17 19:08:04 UTC -+++ resources/powder.desktop -@@ -3,7 +3,7 @@ Version=1.0 - Encoding=UTF-8 - Name=Powder Toy - Comment=Physics sandbox game --Exec=powder --Icon=powder -+Exec=powder-toy -+Icon=powder-toy - Type=Application - Categories=Game;Simulation; diff --git a/games/powder-toy/pkg-plist b/games/powder-toy/pkg-plist index 46bab49ed0f4..c44befb1ae41 100644 --- a/games/powder-toy/pkg-plist +++ b/games/powder-toy/pkg-plist @@ -1,8 +1,8 @@ bin/powder-toy share/appdata/powder-toy.appdata.xml share/applications/uk.co.powdertoy.tpt.desktop share/icons/hicolor/16x16/apps/powder-toy.png +share/icons/hicolor/24x24/apps/powder-toy.png share/icons/hicolor/256x256/apps/powder-toy.png share/icons/hicolor/32x32/apps/powder-toy.png share/icons/hicolor/48x48/apps/powder-toy.png -share/pixmaps/powder-toy.png