Hi ports --
The fix for this one is the same as f1spirit. While here, remove a
hardcoded -O2.
OK?
~Brian
Index: patches/patch-build_linux_Makefile
===================================================================
RCS file: /cvs/ports/games/roadfighter/patches/patch-build_linux_Makefile,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 patch-build_linux_Makefile
--- patches/patch-build_linux_Makefile 19 Mar 2009 18:28:18 -0000 1.1.1.1
+++ patches/patch-build_linux_Makefile 15 Apr 2018 21:09:10 -0000
@@ -1,6 +1,7 @@
$OpenBSD: patch-build_linux_Makefile,v 1.1.1.1 2009/03/19 18:28:18 landry Exp $
---- build/linux/Makefile.orig Wed Mar 19 21:58:51 2008
-+++ build/linux/Makefile Sat Mar 7 12:44:30 2009
+Index: build/linux/Makefile
+--- build/linux/Makefile.orig
++++ build/linux/Makefile
@@ -1,11 +1,11 @@
EXE = roadfighter
SRC = src
@@ -22,7 +23,7 @@ $OpenBSD: patch-build_linux_Makefile,v 1
CC = g++
-CFLAGS = -g3 -O3 `sdl-config --cflags` -I/usr/X11R6/include
-LDFLAGS = `sdl-config --libs` -L/usr/X11R6/lib/ -lSDL_image -lSDL_mixer -lSDL_sound -lSDL_ttf
-+CFLAGS+= -g -O2 `sdl-config --cflags` -I/usr/X11R6/include
++CFLAGS+= -g `sdl-config --cflags` -I/usr/X11R6/include
+LDFLAGS+= `sdl-config --libs` -L/usr/X11R6/lib/ -lSDL_image -lSDL_mixer -lSDL_sound -lSDL_ttf
RM = rm -f
CP = cp -r
Index: patches/patch-src_auxiliar_cpp
===================================================================
RCS file: patches/patch-src_auxiliar_cpp
diff -N patches/patch-src_auxiliar_cpp
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_auxiliar_cpp 15 Apr 2018 21:09:10 -0000
@@ -0,0 +1,16 @@
+$OpenBSD$
+
+clang6 fix
+
+Index: src/auxiliar.cpp
+--- src/auxiliar.cpp.orig
++++ src/auxiliar.cpp
+@@ -84,7 +84,7 @@ SDL_Surface *load_maskedimage(char *imagefile,char *ma
+ mask=IMG_Load(name);
+
+ if (tmp==0 ||
+- mask==0) return false;
++ mask==0) return 0;
+
+ res=SDL_DisplayFormatAlpha(tmp);
+