svn commit: r473068 - in head/games/numptyphysics: . files
Dmitry Marakasov
amdmi3 at FreeBSD.org
Fri Jun 22 20:33:56 UTC 2018
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 ){
More information about the svn-ports-all
mailing list