Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Jun 2018 21:15:16 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r473163 - in head/games/allacrost: . files
Message-ID:  <201806232115.w5NLFG77043663@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Sat Jun 23 21:15:16 2018
New Revision: 473163
URL: https://svnweb.freebsd.org/changeset/ports/473163

Log:
  - Add missing depends
  - Fix build with clang 6

Added:
  head/games/allacrost/files/patch-src_common_gui_option.cpp   (contents, props changed)
  head/games/allacrost/files/patch-src_engine_system.cpp   (contents, props changed)
  head/games/allacrost/files/patch-src_engine_video_video.cpp   (contents, props changed)
Modified:
  head/games/allacrost/Makefile

Modified: head/games/allacrost/Makefile
==============================================================================
--- head/games/allacrost/Makefile	Sat Jun 23 20:24:30 2018	(r473162)
+++ head/games/allacrost/Makefile	Sat Jun 23 21:15:16 2018	(r473163)
@@ -22,12 +22,14 @@ LIB_DEPENDS=	libpng.so:graphics/png \
 GNU_CONFIGURE=	yes
 USES=		gettext gmake iconv jpeg lua:51 openal:al
 USE_SDL=	sdl ttf net
-USE_GL=		yes
+USE_GL=		gl glu
+USE_XORG=	x11
 QT_NONSTANDARD=	yes # used when EDITOR enabled
 
 CONFIGURE_ARGS=	--datadir=${DATADIR}
 CPPFLAGS+=	-I${LOCALBASE}/include -I${LUA_INCDIR}
 LDFLAGS+=	-L${LOCALBASE}/lib -L${LUA_LIBDIR}
+CXXFLAGS+=	-Wno-c++11-narrowing
 LLD_UNSAFE=	yes
 
 WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}

Added: head/games/allacrost/files/patch-src_common_gui_option.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/allacrost/files/patch-src_common_gui_option.cpp	Sat Jun 23 21:15:16 2018	(r473163)
@@ -0,0 +1,11 @@
+--- src/common/gui/option.cpp.orig	2010-05-16 23:38:35 UTC
++++ src/common/gui/option.cpp
+@@ -527,7 +527,7 @@ bool OptionBox::IsEnabled(uint32 index) 
+ StillImage* OptionBox::GetEmbeddedImage(uint32 index) const {
+ 	if (index >= GetNumberOptions()) {
+ 		IF_PRINT_WARNING(VIDEO_DEBUG) << "argument index was invalid: " << index << endl;
+-		return false;
++		return nullptr;
+ 	}
+ 
+ 	return _options[index].image;

Added: head/games/allacrost/files/patch-src_engine_system.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/allacrost/files/patch-src_engine_system.cpp	Sat Jun 23 21:15:16 2018	(r473163)
@@ -0,0 +1,11 @@
+--- src/engine/system.cpp.orig	2010-05-16 23:38:27 UTC
++++ src/engine/system.cpp
+@@ -271,7 +271,7 @@ bool SystemEngine::SingletonInitialize()
+ 	#elif (defined(__linux__) || defined(__FreeBSD__)) && !defined(RELEASE_BUILD)
+ 		// Look for translation files in LOCALEDIR only if they are not available in the
+ 		// current directory.
+-		if (ifstream("dat/config/settings.lua") == NULL) {
++		if (!ifstream("dat/config/settings.lua")) {
+ 			bindtextdomain(PACKAGE, LOCALEDIR);
+ 			bind_textdomain_codeset(PACKAGE, "UTF-8");
+ 			textdomain(PACKAGE);

Added: head/games/allacrost/files/patch-src_engine_video_video.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/allacrost/files/patch-src_engine_video_video.cpp	Sat Jun 23 21:15:16 2018	(r473163)
@@ -0,0 +1,20 @@
+--- src/engine/video/video.cpp.orig	2010-05-16 23:38:27 UTC
++++ src/engine/video/video.cpp
+@@ -470,7 +470,7 @@ bool VideoEngine::ApplySettings() {
+ 		SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, 4);
+ 		SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, 1);
+ 
+-		if (SDL_SetVideoMode(_temp_width, _temp_height, 0, flags) == false) {
++		if (SDL_SetVideoMode(_temp_width, _temp_height, 0, flags) == nullptr) {
+ 			// RGB values of 1 for each and 8 for depth seemed to be sufficient.
+ 			// 565 and 16 here because it works with them on this computer.
+ 			// NOTE from prophile: this ought to be changed to 5558
+@@ -483,7 +483,7 @@ bool VideoEngine::ApplySettings() {
+ 			SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, 0);
+ 			SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, 1);
+ 
+-			if (SDL_SetVideoMode(_temp_width, _temp_height, 0, flags) == false) {
++			if (SDL_SetVideoMode(_temp_width, _temp_height, 0, flags) == nullptr) {
+ 				IF_PRINT_WARNING(VIDEO_DEBUG) << "SDL_SetVideoMode() failed with error: " << SDL_GetError() << endl;
+ 
+ 				_temp_fullscreen = _fullscreen;



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