Index: head/games/powder-toy/Makefile =================================================================== --- head/games/powder-toy/Makefile (revision 493501) +++ head/games/powder-toy/Makefile (revision 493502) @@ -1,67 +1,67 @@ # Created by: Dmitry Marakasov # $FreeBSD$ PORTNAME= powder-toy -PORTVERSION= 93.3 -PORTREVISION= 1 +PORTVERSION= 94.0 DISTVERSIONPREFIX= v CATEGORIES= games MAINTAINER= amdmi3@FreeBSD.org COMMENT= 'Falling sand' physics sandbox with air pressure and velocity support LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libfftw3f.so:math/fftw3-float \ libfftw3.so:math/fftw3 USE_GITHUB= yes GH_ACCOUNT= ThePowderToy GH_PROJECT= The-Powder-Toy -USES= compiler:c++11-lang scons localbase:ldflags lua:51 pkgconfig -USE_SDL= sdl -USE_XORG= x11 +USES= compiler:c++11-lang scons sdl localbase:ldflags lua:51 pkgconfig +USE_SDL= sdl2 MAKE_ENV= LINKFLAGS="${LINKFLAGS}" SUB_FILES= ${PORTNAME}.sh PORTDOCS= README.md TODO -DESKTOP_ENTRIES="The Powder Toy" \ - "" \ - "${PREFIX}/share/pixmaps/${PORTNAME}.ico" \ - "${PORTNAME}" \ - "Game;Simulation;" \ - "" - OPTIONS_DEFINE= DOCS OPTIMIZED_CFLAGS SSE SSE3 OPENGL OPTIONS_DEFAULT= OPTIMIZED_CFLAGS OPTIONS_DEFAULT_amd64= SSE # upstream also uses -funsafe-loop-optimizations, but it's not supported by clang OPTIMIZED_CFLAGS_CXXFLAGS= -O3 -ftree-vectorize -funsafe-math-optimizations -ffast-math -fomit-frame-pointer SSE_MAKE_ARGS_OFF= --no-sse SSE3_DESC= Enable SSE3 optimizations SSE3_MAKE_ARGS= --sse3 SSE3_IMPLIES= SSE OPENGL_USE= GL=gl,glu,glew OPENGL_MAKE_ARGS= --opengl --opengl-renderer OPENGL_BROKEN= Application dies with SIGBUS at startup post-patch: @${REINPLACE_CMD} -e '/#include/ s|lua5.1/|lua51/|' ${WRKSRC}/src/lua/LuaCompat.h do-install: ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${STAGEDIR}${PREFIX}/bin/${PORTNAME} ${INSTALL_PROGRAM} ${WRKSRC}/build/powder* ${STAGEDIR}${PREFIX}/libexec/${PORTNAME} - ${INSTALL_DATA} ${WRKSRC}/resources/powder.ico ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.ico + ${INSTALL_DATA} ${WRKSRC}/resources/powder.desktop ${STAGEDIR}${PREFIX}/share/applications/powder-toy.desktop + @${MKDIR} ${STAGEDIR}${PREFIX}/share/appdata + ${INSTALL_DATA} ${WRKSRC}/resources/powder.appdata.xml ${STAGEDIR}${PREFIX}/share/appdata/powder-toy.appdata.xml +.for s in 16 24 32 48 128 256 + @${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}x${s}/apps + ${INSTALL_DATA} ${WRKSRC}/resources/icon/powder-${s}.png \ + ${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}x${s}/apps/powder-toy.png +.endfor + ${INSTALL_DATA} ${WRKSRC}/resources/icon/powder-32.png \ + ${STAGEDIR}${PREFIX}/share/pixmaps/powder-toy.png do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} .for f in ${PORTDOCS} ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/ .endfor .include Index: head/games/powder-toy/distinfo =================================================================== --- head/games/powder-toy/distinfo (revision 493501) +++ head/games/powder-toy/distinfo (revision 493502) @@ -1,3 +1,3 @@ -TIMESTAMP = 1525264085 -SHA256 (ThePowderToy-The-Powder-Toy-v93.3_GH0.tar.gz) = 6c5f5914e4ae0ac8500c7203ec69517a2fd4380dece6b33247ed719aa12e074e -SIZE (ThePowderToy-The-Powder-Toy-v93.3_GH0.tar.gz) = 996138 +TIMESTAMP = 1550501901 +SHA256 (ThePowderToy-The-Powder-Toy-v94.0_GH0.tar.gz) = 01bb365caa584e454aaad813a75a2db49478ae410075f27f79a3df931e8d9301 +SIZE (ThePowderToy-The-Powder-Toy-v94.0_GH0.tar.gz) = 1253460 Index: head/games/powder-toy/files/patch-SConscript =================================================================== --- head/games/powder-toy/files/patch-SConscript (nonexistent) +++ head/games/powder-toy/files/patch-SConscript (revision 493502) @@ -0,0 +1,15 @@ +--- SConscript.orig 2019-02-17 19:08:04 UTC ++++ SConscript +@@ -364,11 +364,7 @@ def findLibs(env, conf): + FatalError("OpenGL framework not found or not installed") + + if platform == "Linux" or platform == "FreeBSD": +- if not conf.CheckLib('X11'): +- FatalError("X11 development library not found or not installed") +- +- if not conf.CheckLib('rt'): +- FatalError("librt not found or not installed") ++ pass + elif platform == "Windows": + #These need to go last + if not conf.CheckLib('gdi32') or not conf.CheckLib('winmm') or (not msvc and not conf.CheckLib('dxguid')): Property changes on: head/games/powder-toy/files/patch-SConscript ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/games/powder-toy/files/patch-resources_powder.appdata.xml =================================================================== --- head/games/powder-toy/files/patch-resources_powder.appdata.xml (nonexistent) +++ head/games/powder-toy/files/patch-resources_powder.appdata.xml (revision 493502) @@ -0,0 +1,10 @@ +--- resources/powder.appdata.xml.orig 2019-02-17 19:08:04 UTC ++++ resources/powder.appdata.xml +@@ -1,6 +1,6 @@ + + +- powder.desktop ++ powder-toy.desktop + CC0-1.0 + GPL-3.0 + Powder Toy Property changes on: head/games/powder-toy/files/patch-resources_powder.appdata.xml ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/games/powder-toy/files/patch-resources_powder.desktop =================================================================== --- head/games/powder-toy/files/patch-resources_powder.desktop (nonexistent) +++ head/games/powder-toy/files/patch-resources_powder.desktop (revision 493502) @@ -0,0 +1,12 @@ +--- 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; Property changes on: head/games/powder-toy/files/patch-resources_powder.desktop ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/games/powder-toy/pkg-plist =================================================================== --- head/games/powder-toy/pkg-plist (revision 493501) +++ head/games/powder-toy/pkg-plist (revision 493502) @@ -1,3 +1,11 @@ bin/powder-toy libexec/powder-toy -share/pixmaps/powder-toy.ico +share/appdata/powder-toy.appdata.xml +share/applications/powder-toy.desktop +share/icons/hicolor/128x128/apps/powder-toy.png +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