Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Nov 2016 10:24:07 +0000 (UTC)
From:      Guido Falsi <madpilot@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r425132 - head/games/pioneer
Message-ID:  <201611021024.uA2AO7Nh048608@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: madpilot
Date: Wed Nov  2 10:24:07 2016
New Revision: 425132
URL: https://svnweb.freebsd.org/changeset/ports/425132

Log:
  - Update pioneer to 20161028
  - Add NOGPUJOBS option
  
  PR:		213873
  Submitted by:	lightside <lightside@gmx.com>

Modified:
  head/games/pioneer/Makefile
  head/games/pioneer/distinfo

Modified: head/games/pioneer/Makefile
==============================================================================
--- head/games/pioneer/Makefile	Wed Nov  2 10:21:47 2016	(r425131)
+++ head/games/pioneer/Makefile	Wed Nov  2 10:24:07 2016	(r425132)
@@ -36,7 +36,7 @@ LIB_DEPENDS=	libcurl.so:ftp/curl \
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	pioneerspacesim
-GH_TAGNAME=	20160610
+GH_TAGNAME=	20161028
 
 USES=		autoreconf gmake pkgconfig
 USE_GL=		gl
@@ -58,16 +58,19 @@ DESKTOP_ENTRIES="Pioneer" "${COMMENT}" \
 		"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 <bsd.port.options.mk>
+.include <bsd.port.pre.mk>
 
 .if ${OPSYS} == FreeBSD && ${OSVERSION} < 1000054
 USE_GCC=	yes
@@ -76,29 +79,30 @@ USES+=		compiler:c++11-lang
 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 @@ post-install-MODELCOMPILER-on:
 	${MV} ${STAGEDIR}${PREFIX}/bin/modelcompiler \
 		${STAGEDIR}${PREFIX}/bin/${PORTNAME}-modelcompiler
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>

Modified: head/games/pioneer/distinfo
==============================================================================
--- head/games/pioneer/distinfo	Wed Nov  2 10:21:47 2016	(r425131)
+++ head/games/pioneer/distinfo	Wed Nov  2 10:24:07 2016	(r425132)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201611021024.uA2AO7Nh048608>