Hi,

Some casts to games/amph to make it build with clang6.
Builds and runs on amd64.

timo

Index: patches/patch-src_Element_cpp
===================================================================
RCS file: patches/patch-src_Element_cpp
diff -N patches/patch-src_Element_cpp
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_Element_cpp       9 Apr 2018 07:47:00 -0000
@@ -0,0 +1,27 @@
+$OpenBSD$
+
+Index: src/Element.cpp
+--- src/Element.cpp.orig
++++ src/Element.cpp
+@@ -279,7 +279,13 @@ CBackgroundElement::CBackgroundElement(short initx, sh
+ 
+ void  CBackgroundElement::OnAllocate()
+ {
+-      short   params[5] = {-1, xs, ys, xe - xs, ye - ys};
++      short   params[5] = {
++              -1,
++              static_cast<short>(xs),
++              static_cast<short>(ys),
++              static_cast<short>(xe - xs),
++              static_cast<short>(ye - ys)
++      };
+       unsigned char *tmpBmp;
+ 
+       tmpBmp = gShapeManager->GetBackground(params[1], params[2]);
+@@ -373,4 +379,4 @@ void       CBackgroundElement::Read(FILE *f)
+       CElement::Read(f);
+ 
+       OnAllocate();
+-}
+\ No newline at end of file
++}
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/games/amph/pkg/PLIST,v
retrieving revision 1.3
diff -u -p -r1.3 PLIST
--- pkg/PLIST   15 Sep 2004 00:46:07 -0000      1.3
+++ pkg/PLIST   9 Apr 2018 07:47:00 -0000
@@ -1,5 +1,5 @@
 @comment $OpenBSD: PLIST,v 1.3 2004/09/15 00:46:07 espie Exp $
-bin/amph
+@bin bin/amph
 share/amph/
 share/amph/amph.conf
 share/amph/amph.xpm

Reply via email to