Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Jun 2018 20:33:55 +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: r473068 - in head/games/numptyphysics: . files
Message-ID:  <201806222033.w5MKXtOu079612@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Fri Jun 22 20:33:55 2018
New Revision: 473068
URL: https://svnweb.freebsd.org/changeset/ports/473068

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

Added:
  head/games/numptyphysics/files/patch-Game.cpp   (contents, props changed)
Modified:
  head/games/numptyphysics/Makefile

Modified: head/games/numptyphysics/Makefile
==============================================================================
--- head/games/numptyphysics/Makefile	Fri Jun 22 20:32:35 2018	(r473067)
+++ head/games/numptyphysics/Makefile	Fri Jun 22 20:33:55 2018	(r473068)
@@ -16,12 +16,15 @@ LICENSE_FILE=	${WRKSRC}/COPYING
 USES=		tar:bzip2 desktop-file-utils
 GNU_CONFIGURE=	yes
 USE_SDL=	sdl image
+USE_XORG=	x11
 INSTALLS_ICONS=	yes
 
 CONFIGURE_ENV=	AUTOMAKE="${TRUE}" ACLOCAL="${TRUE}" MISSING="${TRUE}"
 LDFLAGS+=	-L${LOCALBASE}/lib -lpthread
 CPPFLAGS+=	-I${LOCALBASE}/include -DINSTALL_BASE_PATH=\"\\\"${DATADIR}\\\"\"
 
+CXXFLAGS+=	-Wno-c++11-narrowing
+
 WRKSRC=		${WRKDIR}/${PORTNAME}
 
 OPTIONS_DEFINE=	MOREFPS
@@ -41,6 +44,6 @@ post-patch-MOREFPS-on:
 		${WRKSRC}/Config.h
 
 post-build:
-	${STRIP_CMD} ${WRKSRC}/${PORTNAME}
+	@${STRIP_CMD} ${WRKSRC}/${PORTNAME}
 
 .include <bsd.port.mk>

Added: head/games/numptyphysics/files/patch-Game.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/numptyphysics/files/patch-Game.cpp	Fri Jun 22 20:33:55 2018	(r473068)
@@ -0,0 +1,11 @@
+--- Game.cpp.orig	2008-11-11 16:54:38 UTC
++++ Game.cpp
+@@ -1495,7 +1495,7 @@ void init( bool useDummyVideo=false )
+     throw "Couldn't initialize SDL";
+   }
+   
+-  if ( mkdir( (string(getenv("HOME"))+"/"USER_BASE_PATH).c_str(),
++  if ( mkdir( (string(getenv("HOME"))+"/" USER_BASE_PATH).c_str(),
+ 	      0755)==0 ) {
+     printf("created user dir\n");
+   } else if ( errno==EEXIST ){



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