The diff below fixes the build of this port.

However, it only partly works for me. It draws a nice albeit minuscule
Mandelbrot set. As soon as I hover with the mouse over the window, it
exits with this error:

X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  42 (X_SetInputFocus)
  Serial number of failed request:  384
  Current serial number in output stream:  384

Index: Makefile
===================================================================
RCS file: /cvs/ports/misc/wmmand/Makefile,v
retrieving revision 1.19
diff -u -p -r1.19 Makefile
--- Makefile    12 Jul 2019 20:47:55 -0000      1.19
+++ Makefile    25 Feb 2021 22:15:19 -0000
@@ -4,7 +4,7 @@ COMMENT=                wm-dockapp; mandelbrot explore
 
 DISTNAME=              wmMand-1.0
 PKGNAME=               ${DISTNAME:L}
-REVISION=              2
+REVISION=              3
 CATEGORIES=            misc x11 x11/windowmaker
 
 HOMEPAGE=              http://nis-www.lanl.gov/~mgh/WindowMaker/DockApps.shtml
Index: patches/patch-wmMand_wmMand_c
===================================================================
RCS file: /cvs/ports/misc/wmmand/patches/patch-wmMand_wmMand_c,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 patch-wmMand_wmMand_c
--- patches/patch-wmMand_wmMand_c       30 Mar 2001 15:17:51 -0000      1.1.1.1
+++ patches/patch-wmMand_wmMand_c       25 Feb 2021 22:08:52 -0000
@@ -1,7 +1,9 @@
 $OpenBSD: patch-wmMand_wmMand_c,v 1.1.1.1 2001/03/30 15:17:51 wilfried Exp $
---- wmMand/wmMand.c.orig       Mon Feb 15 17:30:27 1999
-+++ wmMand/wmMand.c    Fri Mar 30 16:38:00 2001
-@@ -504,11 +504,16 @@ void ButtonPressEvent(XButtonEvent *xev,
+
+Index: wmMand/wmMand.c
+--- wmMand/wmMand.c.orig
++++ wmMand/wmMand.c
+@@ -504,11 +504,16 @@ void ButtonPressEvent(XButtonEvent *xev, DisplayInfo *
  
        } else if ((xev->x >= 50)&&(xev->x <= 58)){
  
Index: patches/patch-wmMand_xvgifwr_c
===================================================================
RCS file: patches/patch-wmMand_xvgifwr_c
diff -N patches/patch-wmMand_xvgifwr_c
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-wmMand_xvgifwr_c      25 Feb 2021 22:11:05 -0000
@@ -0,0 +1,13 @@
+$OpenBSD$
+
+Index: wmMand/xvgifwr.c
+--- wmMand/xvgifwr.c.orig
++++ wmMand/xvgifwr.c
+@@ -38,6 +38,7 @@
+ 
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <string.h>
+ #include <ctype.h>
+ #include <stddef.h>
+ #define PARM(a) a
Index: patches/patch-wmgeneral_wmgeneral_c
===================================================================
RCS file: patches/patch-wmgeneral_wmgeneral_c
diff -N patches/patch-wmgeneral_wmgeneral_c
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-wmgeneral_wmgeneral_c 25 Feb 2021 22:14:15 -0000
@@ -0,0 +1,23 @@
+$OpenBSD$
+
+Index: wmgeneral/wmgeneral.c
+--- wmgeneral/wmgeneral.c.orig
++++ wmgeneral/wmgeneral.c
+@@ -34,6 +34,17 @@
+ 
+ #include "wmgeneral.h"
+ 
++  /********************/
++ /* Global Variables */
++/********************/
++
++Display                       *display;
++Window                        Root;
++int                   d_depth;
++GC                    NormalGC;
++XpmIcon                       wmgen;
++Window                        iconwin, win;
++
+   /*****************/
+  /* X11 Variables */
+ /*****************/
Index: patches/patch-wmgeneral_wmgeneral_h
===================================================================
RCS file: patches/patch-wmgeneral_wmgeneral_h
diff -N patches/patch-wmgeneral_wmgeneral_h
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-wmgeneral_wmgeneral_h 25 Feb 2021 22:14:15 -0000
@@ -0,0 +1,24 @@
+$OpenBSD$
+
+Index: wmgeneral/wmgeneral.h
+--- wmgeneral/wmgeneral.h.orig
++++ wmgeneral/wmgeneral.h
+@@ -28,12 +28,12 @@ typedef struct {
+  /* Global variable */
+ /*******************/
+ 
+-Display               *display;
+-Window          Root;
+-int           d_depth;
+-GC              NormalGC;
+-XpmIcon         wmgen;
+-Window                iconwin, win;
++extern Display                *display;
++extern Window         Root;
++extern int            d_depth;
++extern GC             NormalGC;
++extern XpmIcon                wmgen;
++extern Window         iconwin, win;
+ 
+ 
+   /***********************/
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/misc/wmmand/pkg/PLIST,v
retrieving revision 1.2
diff -u -p -r1.2 PLIST
--- pkg/PLIST   15 Sep 2004 17:54:17 -0000      1.2
+++ pkg/PLIST   25 Feb 2021 22:16:18 -0000
@@ -1,3 +1,3 @@
 @comment $OpenBSD: PLIST,v 1.2 2004/09/15 17:54:17 espie Exp $
-bin/wmMand
+@bin bin/wmMand
 @man man/man1/wmMand.1

Reply via email to