--- pioneer.orig/Makefile 2016-09-13 22:34:28 UTC +++ pioneer/Makefile @@ -36,7 +36,7 @@ USE_GITHUB= yes GH_ACCOUNT= pioneerspacesim -GH_TAGNAME= 20160610 +GH_TAGNAME= 20161028 USES= autoreconf gmake pkgconfig USE_GL= gl @@ -58,16 +58,19 @@ "Game;Simulation;" false SUB_FILES= pkg-message -SUB_LIST= QUICKSTART_PATH="${QUICKSTART_PATH}" -OPTIONS_DEFINE= DOCS MODELCOMPILER PROFILER +OPTIONS_DEFINE= DOCS MODELCOMPILER NOGPUJOBS PROFILER OPTIONS_DEFAULT= MODELCOMPILER +DOCS_SUB_LIST= QUICKSTART_PATH="${DOCSDIR}" +DOCS_SUB_LIST_OFF= \ + QUICKSTART_PATH="https://raw.githubusercontent.com/${GH_ACCOUNT}/${GH_PROJECT}/${GH_TAGNAME}" MODELCOMPILER_DESC= Build/install modelcompiler tool MODELCOMPILER_PLIST_FILES= bin/${PORTNAME}-modelcompiler +NOGPUJOBS_DESC= Disable EnableGPUJobs for config.ini by default PROFILER_DESC= Build with internal profiler PROFILER_CONFIGURE_ON= --enable-profiler -.include +.include .if ${OPSYS} == FreeBSD && ${OSVERSION} < 1000054 USE_GCC= yes @@ -76,29 +79,30 @@ CPPFLAGS+= -I${LOCALBASE}/include .endif -.if ${PORT_OPTIONS:MDOCS} -QUICKSTART_PATH= ${DOCSDIR} -.else -QUICKSTART_PATH= \ - https://raw.githubusercontent.com/${GH_ACCOUNT}/${GH_PROJECT}/${GH_TAGNAME} -.endif - post-patch: .SILENT ${REINPLACE_CMD} -e '/^OPTIMISE=/d' \ ${WRKSRC}/configure.ac ${REINPLACE_CMD} -e 's/std:://g' \ ${WRKSRC}/src/Orbit.cpp ${REINPLACE_CMD} -e 's/std::to_string/to_string/g' \ + ${WRKSRC}/src/graphics/opengl/GenGasGiantColourMaterial.cpp \ ${WRKSRC}/src/graphics/opengl/RendererGL.cpp post-patch-MODELCOMPILER-off: .SILENT ${REINPLACE_CMD} -e 's/pioneer modelcompiler/pioneer/' \ ${WRKSRC}/src/Makefile.am +post-patch-NOGPUJOBS-on: .SILENT +# Revert 41272a856d9072404efbfdb10f0e3c9e4f96bb4d commit, in case of +# GL_OUT_OF_MEMORY OpenGL error, when turning to gas giant planet + ${REINPLACE_CMD} -e '/EnableGPUJobs/s|1|0|' \ + ${WRKSRC}/src/GameConfig.cpp + post-patch-PROFILER-off: .SILENT ${REINPLACE_CMD} -e '/^SUBDIRS/s/ profiler//' \ ${WRKSRC}/contrib/Makefile.am - ${REINPLACE_CMD} -i '.p.bak' -e '/libjson.a/s| \\|| ; /libprofiler.a/d' \ + ${REINPLACE_CMD} -i '.p.bak' -e \ + '/libprofiler.a/d; $$!N; /libprofiler.a$$/s| \\||; P; D' \ ${WRKSRC}/src/Makefile.am ${REINPLACE_CMD} -i '.p.bak' -e '/contrib\/profiler/d' \ ${WRKSRC}/configure.ac @@ -114,4 +118,4 @@ ${MV} ${STAGEDIR}${PREFIX}/bin/modelcompiler \ ${STAGEDIR}${PREFIX}/bin/${PORTNAME}-modelcompiler -.include +.include --- pioneer.orig/distinfo 2016-06-13 16:12:46 UTC +++ pioneer/distinfo @@ -1,2 +1,3 @@ -SHA256 (pioneerspacesim-pioneer-0.0.20160610-20160610_GH0.tar.gz) = 3e658c2747242d2e134ece0ffe910088cb1ecc6e6fcb1b88a3bd75646bafa1c4 -SIZE (pioneerspacesim-pioneer-0.0.20160610-20160610_GH0.tar.gz) = 194457994 +TIMESTAMP = 1477647657 +SHA256 (pioneerspacesim-pioneer-0.0.20161028-20161028_GH0.tar.gz) = d8ceefc7ec22ecdbaf2408a13c80d0368675feebff558457bef2ffc7258f4b77 +SIZE (pioneerspacesim-pioneer-0.0.20161028-20161028_GH0.tar.gz) = 194439211