From owner-svn-ports-head@freebsd.org Sat Jun 16 21:41:45 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DBA4610236BB; Sat, 16 Jun 2018 21:41:44 +0000 (UTC) (envelope-from swills@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9014670B32; Sat, 16 Jun 2018 21:41:44 +0000 (UTC) (envelope-from swills@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 726D74331; Sat, 16 Jun 2018 21:41:44 +0000 (UTC) (envelope-from swills@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w5GLfihV019133; Sat, 16 Jun 2018 21:41:44 GMT (envelope-from swills@FreeBSD.org) Received: (from swills@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w5GLfhPD019129; Sat, 16 Jun 2018 21:41:43 GMT (envelope-from swills@FreeBSD.org) Message-Id: <201806162141.w5GLfhPD019129@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: swills set sender to swills@FreeBSD.org using -f From: Steve Wills Date: Sat, 16 Jun 2018 21:41:43 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r472570 - in head/games/frogatto: . files X-SVN-Group: ports-head X-SVN-Commit-Author: swills X-SVN-Commit-Paths: in head/games/frogatto: . files X-SVN-Commit-Revision: 472570 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Jun 2018 21:41:45 -0000 Author: swills Date: Sat Jun 16 21:41:43 2018 New Revision: 472570 URL: https://svnweb.freebsd.org/changeset/ports/472570 Log: games/frogatto: fix build on HEAD PR: 229066 Submitted by: fiziologus@gmail.com (maintainer) Added: head/games/frogatto/files/patch-src-code_editor_dialog.cpp (contents, props changed) head/games/frogatto/files/patch-src-surface_cache.cpp (contents, props changed) head/games/frogatto/files/patch-src-texture.hpp (contents, props changed) Modified: head/games/frogatto/Makefile (contents, props changed) head/games/frogatto/files/patch-Makefile (contents, props changed) Modified: head/games/frogatto/Makefile ============================================================================== --- head/games/frogatto/Makefile Sat Jun 16 21:30:21 2018 (r472569) +++ head/games/frogatto/Makefile Sat Jun 16 21:41:43 2018 (r472570) @@ -3,7 +3,7 @@ PORTNAME= frogatto PORTVERSION= 1.3.1 -PORTREVISION= 14 +PORTREVISION= 15 CATEGORIES= games MAINTAINER= fiziologus@gmail.com @@ -26,6 +26,7 @@ USES= gmake pkgconfig ALL_TARGET= game server USE_GL= glew glu USE_SDL= sdl image mixer ttf +USE_CXXSTD= c++11 PLIST_FILES= bin/${PORTNAME} bin/${PORTNAME}-server Modified: head/games/frogatto/files/patch-Makefile ============================================================================== --- head/games/frogatto/files/patch-Makefile Sat Jun 16 21:30:21 2018 (r472569) +++ head/games/frogatto/files/patch-Makefile Sat Jun 16 21:41:43 2018 (r472570) @@ -14,7 +14,7 @@ # Initial compiler options, used before CXXFLAGS and CPPFLAGS. -BASE_CXXFLAGS += -g -fno-inline-functions -fthreadsafe-statics -Wnon-virtual-dtor -Werror -Wignored-qualifiers -Wformat -Wswitch -+BASE_CXXFLAGS += -fno-inline-functions -fthreadsafe-statics -Wnon-virtual-dtor -Werror -Wformat -Wswitch ++BASE_CXXFLAGS += -fno-inline-functions -fthreadsafe-statics -Wnon-virtual-dtor -Werror -Wformat -Wswitch -Wno-narrowing # Compiler include options, used after CXXFLAGS and CPPFLAGS. INC := $(shell pkg-config --cflags x11 sdl glu glew SDL_image libpng zlib) Added: head/games/frogatto/files/patch-src-code_editor_dialog.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/frogatto/files/patch-src-code_editor_dialog.cpp Sat Jun 16 21:41:43 2018 (r472570) @@ -0,0 +1,11 @@ +--- src/code_editor_dialog.cpp.orig 2018-06-16 12:59:49.843741000 +0300 ++++ src/code_editor_dialog.cpp 2018-06-16 13:01:13.695918000 +0300 +@@ -55,7 +55,7 @@ + + //std::cerr << "CED: " << x() << "," << y() << "; " << width() << "," << height() << std::endl; + drag_widget* dragger = new drag_widget(x(), y(), width(), height(), +- drag_widget::DRAG_HORIZONTAL, NULL, ++ drag_widget::DRAG_HORIZONTAL, [](int, int){}, + boost::bind(&code_editor_dialog::on_drag_end, this, _1, _2), + boost::bind(&code_editor_dialog::on_drag, this, _1, _2)); + Added: head/games/frogatto/files/patch-src-surface_cache.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/frogatto/files/patch-src-surface_cache.cpp Sat Jun 16 21:41:43 2018 (r472570) @@ -0,0 +1,11 @@ +--- src/surface_cache.cpp.orig 2018-06-16 13:59:29.319430000 +0300 ++++ src/surface_cache.cpp 2018-06-16 14:00:09.140102000 +0300 +@@ -116,7 +116,7 @@ + } + #endif // ANDROID + //std::cerr << "loading image '" << fname << "'\n"; +- if(surf.get() == false || surf->w == 0) { ++ if(surf.get() == nullptr || surf->w == 0) { + if(key != "") { + std::cerr << "failed to load image '" << key << "'\n"; + } Added: head/games/frogatto/files/patch-src-texture.hpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/frogatto/files/patch-src-texture.hpp Sat Jun 16 21:41:43 2018 (r472570) @@ -0,0 +1,11 @@ +--- src/texture.hpp.orig 2018-06-16 11:06:31.462187000 +0300 ++++ src/texture.hpp 2018-06-16 11:11:11.775394000 +0300 +@@ -58,7 +58,7 @@ + unsigned int get_id() const; + static void set_current_texture(unsigned int id); + void set_as_current_texture() const; +- bool valid() const { return id_; } ++ bool valid() const { return static_cast(id_); } + + static texture get(const std::string& str, int options=0); + static texture get(const std::string& str, const std::string& algorithm);