Hi ports --
Add some casts to appease clang6.
Also remove a USE_GMAKE=Yes since gmake isn't being used and it builds
fine with ninja.
OK?
~Brian
Index: Makefile
===================================================================
RCS file: /cvs/ports/games/lostpixels/Makefile,v
retrieving revision 1.17
diff -u -p -r1.17 Makefile
--- Makefile 26 Jul 2017 22:45:21 -0000 1.17
+++ Makefile 15 Apr 2018 20:15:19 -0000
@@ -25,7 +25,6 @@ LIB_DEPENDS = devel/sdl-net \
WANTLIB += SDL SDL_image SDL_mixer SDL_net SDL_ttf X11 Xau
WANTLIB += Xdmcp Xext Xrandr Xrender c freetype m pthread ${COMPILER_LIBCXX}
-USE_GMAKE = Yes
MODULES += devel/cmake \
lang/lua
MODLUA_BUILDDEP = No
Index: patches/patch-drawprimitives_cpp
===================================================================
RCS file: patches/patch-drawprimitives_cpp
diff -N patches/patch-drawprimitives_cpp
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-drawprimitives_cpp 15 Apr 2018 20:15:19 -0000
@@ -0,0 +1,14 @@
+$OpenBSD$
+
+Index: drawprimitives.cpp
+--- drawprimitives.cpp.orig
++++ drawprimitives.cpp
+@@ -35,7 +35,7 @@ void drawcircle(const Sint32 x, const Sint32 y, const
+ // Draw a rectangle - this is just a convinience wrapper around SDL_FillRect
+ void drawrect(const Sint32 x, const Sint32 y, const Sint32 width, const Sint32 height, const Uint32 color)
+ {
+- SDL_Rect rectLocation = { x, y, width, height };
++ SDL_Rect rectLocation = { static_cast<Sint16>(x), static_cast<Sint16>(y), static_cast<Uint16>(width), static_cast<Uint16>(height) };
+ SDL_FillRect(gScreen, &rectLocation, color);
+ }
+
Index: patches/patch-fonthandler_cpp
===================================================================
RCS file: patches/patch-fonthandler_cpp
diff -N patches/patch-fonthandler_cpp
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-fonthandler_cpp 15 Apr 2018 20:15:19 -0000
@@ -0,0 +1,14 @@
+$OpenBSD$
+
+Index: fonthandler.cpp
+--- fonthandler.cpp.orig
++++ fonthandler.cpp
+@@ -130,7 +130,7 @@ void renderFontHandlerText(Sint32 x, Sint32 y, const c
+ y = (SCR_HEIGHT - textsurface->h) / 2;
+ }
+
+- SDL_Rect textLocation = { x, y, 0, 0 };
++ SDL_Rect textLocation = { static_cast<Sint16>(x), static_cast<Sint16>(y), 0, 0 };
+
+ // BlitSurface neeeds an UNLOCKED screen!!
+ SDL_BlitSurface(textsurface, NULL, gScreen, &textLocation);