Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Mar 2019 20:18:14 +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: r495388 - in head/games/widelands: . files
Message-ID:  <201903112018.x2BKIEsE090948@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Mon Mar 11 20:18:13 2019
New Revision: 495388
URL: https://svnweb.freebsd.org/changeset/ports/495388

Log:
  - Remove some -Werror flags
  
  PR:		236211
  Reported by:	jbeich@FreeBSD.org

Modified:
  head/games/widelands/Makefile
  head/games/widelands/files/patch-CMakeLists.txt

Modified: head/games/widelands/Makefile
==============================================================================
--- head/games/widelands/Makefile	Mon Mar 11 20:13:30 2019	(r495387)
+++ head/games/widelands/Makefile	Mon Mar 11 20:18:13 2019	(r495388)
@@ -19,8 +19,8 @@ LIB_DEPENDS=	libpng.so:graphics/png \
 		libicuuc.so:devel/icu \
 		libboost_regex.so:devel/boost-libs
 
-USES=		cmake compiler:c++11-lib gettext \
-		tar:bzip2 python:build
+USES=		cmake compiler:c++11-lib gettext gl \
+		tar:bzip2 python:build sdl
 CMAKE_ARGS=	-DWL_INSTALL_BASEDIR="${PREFIX}" \
 		-DWL_INSTALL_DATADIR="${DATADIR}" \
 		-DWL_INSTALL_DOCDIR="${DOCSDIR}" \
@@ -28,10 +28,6 @@ CMAKE_ARGS=	-DWL_INSTALL_BASEDIR="${PREFIX}" \
 		-DWL_OPTIMIZE_FLAGS=""
 USE_GL=		gl glew
 USE_SDL=	sdl2 mixer2 image2 net2 ttf2
-CXXFLAGS_powerpc=	-Wno-maybe-uninitialized
-CXXFLAGS_powerpcspe=	-Wno-maybe-uninitialized
-CXXFLAGS_powerpc64=	-Wno-maybe-uninitialized
-CXXFLAGS_sparc64=	-Wno-maybe-uninitialized
 
 PORTDATA=	*
 PORTDOCS=	*

Modified: head/games/widelands/files/patch-CMakeLists.txt
==============================================================================
--- head/games/widelands/files/patch-CMakeLists.txt	Mon Mar 11 20:13:30 2019	(r495387)
+++ head/games/widelands/files/patch-CMakeLists.txt	Mon Mar 11 20:18:13 2019	(r495388)
@@ -9,6 +9,17 @@
    set(WL_DEBUG_FLAGS "-DNDEBUG -DNOPARACHUTE")
  elseif(CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo")
    set(WL_OPTIMIZE_FLAGS "-O3")
+@@ -179,8 +179,8 @@ endif()
+ # Turn some warnings into errors.
+ wl_add_flag(WL_COMPILE_DIAGNOSTICS "-Werror=format-security")
+ wl_add_flag(WL_COMPILE_DIAGNOSTICS "-Werror=return-type")
+-wl_add_flag(WL_COMPILE_DIAGNOSTICS "-Werror=shadow")
+-wl_add_flag(WL_COMPILE_DIAGNOSTICS "-Werror=uninitialized")
++wl_add_flag(WL_COMPILE_DIAGNOSTICS "-Wshadow")
++wl_add_flag(WL_COMPILE_DIAGNOSTICS "-Wuninitialized")
+ 
+ IF (WIN32)
+   add_definitions(-DMINGW_HAS_SECURE_API)
 @@ -225,7 +225,7 @@ if (NOT DEFINED WL_VERSION)
  else (NOT DEFINED WL_VERSION)
    add_custom_target (



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