On Tue, 07 Jun 2016, Reyk Floeter wrote:

> On Tue, Jun 07, 2016 at 08:48:26PM +0200, David Coppa wrote:
> > On Tue, Jun 7, 2016 at 8:35 PM, Reyk Floeter <r...@openbsd.org> wrote:
> > > On Tue, Jun 07, 2016 at 08:23:01PM +0200, Reyk Floeter wrote:
> > >> On Tue, Jun 07, 2016 at 05:27:51PM +0200, David Coppa wrote:
> > >> > Hi Reyk,
> > >> >
> > >> > Since I've just found (by reading your howto about the Lenovo Thinkpad
> > >> > X1 Carbon) that you're using Window Maker...
> > >> > Could you please test the attached diff that updates our windowmaker
> > >> > port to its latest release, 0.95.7?
> > >> >
> > >> > Ciao!
> > >> > David
> > >>
> > >> Sure!
> > >>
> > >
> > > It compiles, installed, but one annoying thing is that window-resize
> > > seems to be broken ('Maximize active window' gives strange results and
> > > covers the dock)
> > >
> > > There might be other issues.
> > 
> > Can you try starting from scratch with a clean environment?
> > 
> > I mean:
> > 
> > $ mv ~/GNUstep ~/GNUstep.old
> > 
> 
> Yes, that helped.
> 
> A few other things have changed (like the default menu, in a negative
> way hiding xterm and Firefox somewhere in a submenu).  Maximization
> now includes the space behind the dock - I have to get used to this.
> 
> I also don't like the new "jumping" icons.  They should focus on
> modernizing wmaker (eg. by adding support for DPI scaling) instead
> bloating it with gimmicks (11 different ways of maximization?!).
> But there is a chance that something will happen now ;)
> 
> After all, I think the ports update is OK.

Widening the audience to ports@

Here's a new version of the diff.
I've stolen some useful patches from FreeBSD, and fixed a time_t
issue.

Maybe it's the right time to update our prehistoric port of Window
Maker...

If you're a wmaker user, please test!

Ciao,
David

Index: Makefile
===================================================================
RCS file: /cvs/ports/x11/windowmaker/Makefile,v
retrieving revision 1.93
diff -u -p -u -p -r1.93 Makefile
--- Makefile    11 Mar 2016 20:28:33 -0000      1.93
+++ Makefile    8 Jun 2016 14:16:50 -0000
@@ -3,14 +3,15 @@
 COMMENT-main=          window manager that emulates NEXTSTEP(tm)
 COMMENT-lang=          language subpackage for Window Maker
 
-V=                     0.92.0
+V =                    0.95.7
 DISTNAME=              WindowMaker-${V}
 PKGNAME-main=          ${DISTNAME:L}
-REVISION-main=         56
 FULLPKGNAME-lang=      windowmaker-lang-${V}
-REVISION-lang=         5
 
-SHARED_LIBS += wraster              5.0      # 4.0
+SHARED_LIBS +=  WINGs                     0.0 # 2.1
+SHARED_LIBS +=  WMaker                    0.0 # 1.1
+SHARED_LIBS +=  WUtil                     0.0 # 3.0
+SHARED_LIBS +=  wraster                   5.1 # 4.1
 
 CATEGORIES=            x11 x11/windowmaker
 
@@ -19,22 +20,27 @@ HOMEPAGE=           http://windowmaker.org/
 # GPLv2+
 PERMIT_PACKAGE_CDROM=  Yes
 
-WANTLIB += X11 Xext Xft Xinerama Xpm Xrender c expat fontconfig
-WANTLIB += freetype jpeg m png pthread-stubs tiff gif xcb z
+WANTLIB += ICE SM X11 Xmu Xext Xft Xinerama Xpm Xrandr Xrender
+WANTLIB += Xt c expat fontconfig freetype gif jpeg kvm m png
+WANTLIB += pthread pthread-stubs tiff xcb z
 
 MASTER_SITES=          ${MASTER_SITE_WINDOWMAKER:=source/release/}
-EXTRACT_SUFX=          .tar.bz2
 
 NO_TEST=               Yes
 SEPARATE_BUILD=                Yes
 CONFIGURE_STYLE=       gnu
-CONFIGURE_ARGS+=       --enable-static \
+CONFIGURE_ARGS+=       --disable-magick \
+                       --disable-webp \
+                       --enable-randr \
+                       --enable-static \
                        --enable-xinerama \
-                       --with-datadir="${LOCALBASE}/share/WindowMaker" \
-                       --with-nlsdir="${LOCALBASE}/share/locale"
+                       --localedir="${LOCALBASE}/share/locale"
 
-CONFIGURE_ENV=         CPPFLAGS="-I${LOCALBASE}/include" 
LIBS="-L${LOCALBASE}/lib" \
-                       LINGUAS='be bg bs ca cs da de el es et fi fr gl hr hu 
it ja ko ms nl no pl pt ro ru sk sv tr zh_CN zh_TW'
+CONFIGURE_ENV=         CPPFLAGS="-I${X11BASE}/include -I${LOCALBASE}/include" \
+                       LIBS="-L${X11BASE}/lib -L${LOCALBASE}/lib" \
+                       LINGUAS='*' \
+                       ac_cv_lib_exif_exif_data_new_from_file=no \
+                       wm_cv_func_secure_getenv=no
 
 MULTI_PACKAGES=                -main -lang
 
@@ -43,27 +49,24 @@ LIB_DEPENDS=                graphics/tiff \
                        graphics/png \
                        graphics/giflib
 
-RUN_DEPENDS-lang=      x11/windowmaker>=0.90.0
+RUN_DEPENDS-lang =     x11/windowmaker>=${V}
 LIB_DEPENDS-lang=
 WANTLIB-lang=
 
-post-patch:
-# Rename wrongly named locale files
-       @mv ${WRKSRC}/WindowMaker/menu.cz ${WRKSRC}/WindowMaker/menu.cs
-       @mv ${WRKSRC}/WindowMaker/menu.se ${WRKSRC}/WindowMaker/menu.sv
+WMAKER_SHARE =         ${PREFIX}/share/WindowMaker
 
 pre-configure:
-       @perl -pi -e "s|%%PREFIX%%|${PREFIX}|g" \
-       ${WRKSRC}/WINGs/wapplication.c \
-       ${WRKSRC}/WPrefs.app/Menu.c \
-       ${WRKSRC}/WPrefs.app/Paths.c \
-       ${WRKSRC}/WindowMaker/Defaults/WMWindowAttributes.in \
-       ${WRKSRC}/WindowMaker/Defaults/WindowMaker.in
+       @touch ${WRKSRC}/configure.ac ${WRKSRC}/aclocal.m4 \
+               ${WRKSRC}/configure ${WRKSRC}/Makefile.am \
+               ${WRKSRC}/Makefile.in
 
 post-install:
        mv ${WRKINST}/${SYSCONFDIR}/WindowMaker ${PREFIX}/share/examples/
        ${INSTALL_DATA_DIR} ${PREFIX}/share/WindowMaker/Sounds
        ${INSTALL_DATA_DIR} ${PREFIX}/GNUstep/Applications
        ln -s ${LOCALBASE}/share/WPrefs 
${PREFIX}/GNUstep/Applications/WPrefs.app
+# Rename wrongly named locale files
+       @mv ${WMAKER_SHARE}/menu.cz ${WMAKER_SHARE}/menu.cs
+       @mv ${WMAKER_SHARE}/menu.se ${WMAKER_SHARE}/menu.sv
 
 .include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /cvs/ports/x11/windowmaker/distinfo,v
retrieving revision 1.7
diff -u -p -u -p -r1.7 distinfo
--- distinfo    18 Jan 2015 03:16:03 -0000      1.7
+++ distinfo    8 Jun 2016 14:16:50 -0000
@@ -1,2 +1,2 @@
-SHA256 (WindowMaker-0.92.0.tar.bz2) = 
tDHOn0fF1M1Sq1uCmM/1b9VwDW5gUrFJ4ZtsVn5SbbE=
-SIZE (WindowMaker-0.92.0.tar.bz2) = 2202748
+SHA256 (WindowMaker-0.95.7.tar.gz) = 
hC1IbEshKxnRDbriwxXG/yDG5lFHHqpFIUs7gy2Al6k=
+SIZE (WindowMaker-0.95.7.tar.gz) = 3238325
Index: patches/patch-WINGs_Makefile_in
===================================================================
RCS file: /cvs/ports/x11/windowmaker/patches/patch-WINGs_Makefile_in,v
retrieving revision 1.7
diff -u -p -u -p -r1.7 patch-WINGs_Makefile_in
--- patches/patch-WINGs_Makefile_in     1 Nov 2005 17:28:34 -0000       1.7
+++ patches/patch-WINGs_Makefile_in     8 Jun 2016 14:16:50 -0000
@@ -1,21 +1,11 @@
 $OpenBSD: patch-WINGs_Makefile_in,v 1.7 2005/11/01 17:28:34 wilfried Exp $
---- WINGs/Makefile.in.orig     Sun Jun 19 05:23:00 2005
-+++ WINGs/Makefile.in  Mon Oct 31 18:34:05 2005
-@@ -114,7 +114,7 @@ wprefs_datadir = @wprefs_datadir@
+--- WINGs/Makefile.in.orig     Tue Aug 11 20:52:19 2015
++++ WINGs/Makefile.in  Wed Jun  8 10:03:21 2016
+@@ -513,6 +513,7 @@ libWUtil_la_SOURCES = \
+ 
+ AM_CFLAGS = 
+ AM_CPPFLAGS = -DRESOURCE_PATH=\"$(datadir)/WINGs\" \
++       -DPREFIX=\"$(prefix)\" \
+        -I$(top_srcdir)/WINGs/WINGs -I$(top_srcdir)/wrlib -I$(top_srcdir)/src \
+       @XFTFLAGS@ @HEADER_SEARCH_PATH@
  
- AUTOMAKE_OPTIONS = no-dependencies
- 
--SUBDIRS = WINGs . po Documentation Resources Examples Extras Tests
-+SUBDIRS = WINGs . po Documentation Resources Extras
- 
- #libWINGs_la_LDFLAGS = -version-info 1:1:0
- 
-@@ -138,7 +138,7 @@ AM_CPPFLAGS = -DLOCALEDIR=\"$(NLSDIR)\"
- 
- AM_CFLAGS = @NOSTRICTALIASING@
- 
--INCLUDES = -I$(top_srcdir)/WINGs/WINGs -I$(top_srcdir)/wrlib 
-I$(top_srcdir)/src      -DRESOURCE_PATH=\"$(datadir)/WINGs\" @XFTFLAGS@ 
@HEADER_SEARCH_PATH@ -DDEBUG
-+INCLUDES = -I$(top_srcdir)/WINGs/WINGs -I$(top_srcdir)/wrlib 
-I$(top_srcdir)/src      -DRESOURCE_PATH=\"$(datadir)/WINGs\" @XFTFLAGS@ 
@HEADER_SEARCH_PATH@
- 
- 
- DISTCLEANFILES = WINGs.pc
Index: patches/patch-WINGs_array_c
===================================================================
RCS file: patches/patch-WINGs_array_c
diff -N patches/patch-WINGs_array_c
--- patches/patch-WINGs_array_c 20 May 2010 10:58:08 -0000      1.2
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,12 +0,0 @@
-$OpenBSD: patch-WINGs_array_c,v 1.2 2010/05/20 10:58:08 espie Exp $
---- WINGs/array.c.orig Tue Oct 12 20:28:08 2004
-+++ WINGs/array.c      Thu May 20 12:50:56 2010
-@@ -230,6 +230,8 @@ WMGetFromArray(WMArray *array, int index)
- void*
- WMPopFromArray(WMArray *array)
- {
-+    wassertr(array->itemCount > 0);
-+
-     array->itemCount--;
- 
-     return array->items[array->itemCount];
Index: patches/patch-WINGs_findfile_c
===================================================================
RCS file: patches/patch-WINGs_findfile_c
diff -N patches/patch-WINGs_findfile_c
--- patches/patch-WINGs_findfile_c      25 Apr 2007 11:31:53 -0000      1.1
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,127 +0,0 @@
-$OpenBSD: patch-WINGs_findfile_c,v 1.1 2007/04/25 11:31:53 wilfried Exp $
---- WINGs/findfile.c.orig      Tue Oct 12 20:30:07 2004
-+++ WINGs/findfile.c   Wed Mar 14 21:16:22 2007
-@@ -23,6 +23,7 @@
- 
- #include "WUtil.h"
- 
-+#include <errno.h>
- #include <stdlib.h>
- #include <unistd.h>
- #include <string.h>
-@@ -79,6 +80,7 @@ getuserhomedir(char *username)
- char*
- wexpandpath(char *path)
- {
-+    char *origpath = path;
-     char buffer2[PATH_MAX+2];
-     char buffer[PATH_MAX+2];
-     int i;
-@@ -91,25 +93,29 @@ wexpandpath(char *path)
-         path++;
-         if (*path=='/' || *path==0) {
-             home = wgethomedir();
-+            if (strlen(home) > PATH_MAX)
-+                goto error;
-             strcat(buffer, home);
-         } else {
-             int j;
-             j = 0;
-             while (*path!=0 && *path!='/') {
-+                if (j > PATH_MAX)
-+                    goto error;
-                 buffer2[j++] = *path;
-                 buffer2[j] = 0;
-                 path++;
-             }
-             home = getuserhomedir(buffer2);
--            if (!home)
--                return NULL;
-+            if (!home || strlen(home) > PATH_MAX)
-+                goto error;
-             strcat(buffer, home);
-         }
-     }
- 
-     i = strlen(buffer);
- 
--    while (*path!=0) {
-+    while (*path!=0 && i <= PATH_MAX) {
-         char *tmp;
- 
-         if (*path=='$') {
-@@ -119,35 +125,50 @@ wexpandpath(char *path)
-             if (*path=='(') {
-                 path++;
-                 while (*path!=0 && *path!=')') {
-+                    if (j > PATH_MAX)
-+                        goto error;
-                     buffer2[j++] = *(path++);
-                     buffer2[j] = 0;
-                 }
--                if (*path==')')
-+                if (*path==')') {
-                     path++;
--                tmp = getenv(buffer2);
-+                    tmp = getenv(buffer2);
-+                } else {
-+                    tmp = NULL;
-+                }
-                 if (!tmp) {
-+                    if ((i += strlen(buffer2)+2) > PATH_MAX)
-+                        goto error;
-                     buffer[i] = 0;
-                     strcat(buffer, "$(");
-                     strcat(buffer, buffer2);
--                    strcat(buffer, ")");
--                    i += strlen(buffer2)+3;
-+                    if (*(path-1)==')') {
-+                        if (++i > PATH_MAX)
-+                            goto error;
-+                        strcat(buffer, ")");
-+                    }
-                 } else {
-+                    if ((i += strlen(tmp)) > PATH_MAX)
-+                        goto error;
-                     strcat(buffer, tmp);
--                    i += strlen(tmp);
-                 }
-             } else {
-                 while (*path!=0 && *path!='/') {
-+                    if (j > PATH_MAX)
-+                        goto error;
-                     buffer2[j++] = *(path++);
-                     buffer2[j] = 0;
-                 }
-                 tmp = getenv(buffer2);
-                 if (!tmp) {
-+                    if ((i += strlen(buffer2)+1) > PATH_MAX)
-+                        goto error;
-                     strcat(buffer, "$");
-                     strcat(buffer, buffer2);
--                    i += strlen(buffer2)+1;
-                 } else {
-+                    if ((i += strlen(tmp)) > PATH_MAX)
-+                        goto error;
-                     strcat(buffer, tmp);
--                    i += strlen(tmp);
-                 }
-             }
-         } else {
-@@ -156,7 +177,16 @@ wexpandpath(char *path)
-         }
-     }
- 
-+    if (*path!=0)
-+        goto error;
-+
-     return wstrdup(buffer);
-+
-+error:
-+    errno = ENAMETOOLONG;
-+    wsyserror(_("could not expand %s"), origpath);
-+    /* FIXME: too many functions handle a return value of NULL incorrectly */
-+    exit(1);
- }
- 
- 
Index: patches/patch-WINGs_string_c
===================================================================
RCS file: patches/patch-WINGs_string_c
diff -N patches/patch-WINGs_string_c
--- patches/patch-WINGs_string_c        25 Apr 2007 11:32:55 -0000      1.4
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,20 +0,0 @@
-$OpenBSD: patch-WINGs_string_c,v 1.4 2007/04/25 11:32:55 wilfried Exp $
---- WINGs/string.c.orig        Tue Oct 12 20:32:12 2004
-+++ WINGs/string.c     Thu Mar 15 20:00:31 2007
-@@ -1,6 +1,6 @@
- 
- #include "wconfig.h"
--
-+#include <assert.h>
- #include <string.h>
- #include <stdlib.h>
- #include <ctype.h>
-@@ -153,7 +153,7 @@ wtokenjoin(char **list, int count)
- void
- wtokenfree(char **tokens, int count)
- {
--    while (--count) wfree(tokens[count]);
-+    while (count--) wfree(tokens[count]);
-     wfree(tokens);
- }
- 
Index: patches/patch-WINGs_wapplication_c
===================================================================
RCS file: /cvs/ports/x11/windowmaker/patches/patch-WINGs_wapplication_c,v
retrieving revision 1.4
diff -u -p -u -p -r1.4 patch-WINGs_wapplication_c
--- patches/patch-WINGs_wapplication_c  20 May 2010 10:58:08 -0000      1.4
+++ patches/patch-WINGs_wapplication_c  8 Jun 2016 14:16:50 -0000
@@ -1,12 +1,12 @@
 $OpenBSD: patch-WINGs_wapplication_c,v 1.4 2010/05/20 10:58:08 espie Exp $
---- WINGs/wapplication.c.orig  Sun Oct 24 05:13:29 2004
-+++ WINGs/wapplication.c       Thu May 20 12:50:56 2010
-@@ -175,7 +175,7 @@ WMPathForResourceOfType(char *resource, char *ext)
-         }
-     }
+--- WINGs/wapplication.c.orig  Tue Aug 11 20:41:14 2015
++++ WINGs/wapplication.c       Wed Jun  8 09:52:32 2016
+@@ -187,7 +187,7 @@ char *WMPathForResourceOfType(const char *resource, co
+       if (path)
+               goto out;
+ 
+-      path = checkFile("/usr/local/GNUstep", appdir, ext, resource);
++      path = checkFile(PREFIX "/GNUstep", appdir, ext, resource);
+       if (path)
+               goto out;
  
--    path = checkFile("/usr/local/GNUstep", appdir, ext, resource);
-+    path = checkFile("%%PREFIX%%/GNUstep", appdir, ext, resource);
-     if (path) {
-         wfree(appdir);
-         return path;
Index: patches/patch-WINGs_wwindow_c
===================================================================
RCS file: patches/patch-WINGs_wwindow_c
diff -N patches/patch-WINGs_wwindow_c
--- patches/patch-WINGs_wwindow_c       20 May 2010 10:58:08 -0000      1.3
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,29 +0,0 @@
-$OpenBSD: patch-WINGs_wwindow_c,v 1.3 2010/05/20 10:58:08 espie Exp $
---- WINGs/wwindow.c.orig       Sun Oct 24 04:58:20 2004
-+++ WINGs/wwindow.c    Thu May 20 12:50:56 2010
-@@ -254,14 +254,14 @@ static void
- setMiniwindow(WMWindow *win, RImage *image)
- {
-     WMScreen *scr= win->view->screen;
--    CARD32 *data;
-+    long *data;
-     int x, y;
-     int o;
- 
-     if (!image)
-       return;
- 
--    data = wmalloc((image->width * image->height + 2) * sizeof(CARD32));
-+    data = wmalloc((image->width * image->height + 2) * sizeof(long));
- 
-     o= 0;
-     data[o++] = image->width;
-@@ -269,7 +269,7 @@ setMiniwindow(WMWindow *win, RImage *image)
- 
-     for (y= 0; y < image->height; y++) {
-         for (x= 0; x < image->width; x++) {
--            CARD32 pixel;
-+            long pixel;
-             int offs= (x+y*image->width);
-             
-             if (image->format == RRGBFormat)
Index: patches/patch-WPrefs_app_Appearance_c
===================================================================
RCS file: patches/patch-WPrefs_app_Appearance_c
diff -N patches/patch-WPrefs_app_Appearance_c
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-WPrefs_app_Appearance_c       8 Jun 2016 14:16:50 -0000
@@ -0,0 +1,15 @@
+$OpenBSD$
+
+On OpenBSD, time_t is long long.
+
+--- WPrefs.app/Appearance.c.orig       Wed Jun  8 13:11:47 2016
++++ WPrefs.app/Appearance.c    Wed Jun  8 13:13:05 2016
+@@ -923,7 +923,7 @@ static char *makeFileName(const char *prefix)
+               char buf[30];
+ 
+               wfree(fname);
+-              sprintf(buf, "%08lx.cache", time(NULL));
++              sprintf(buf, "%08llx.cache", (long long)time(NULL));
+               fname = wstrconcat(prefix, buf);
+       }
+ 
Index: patches/patch-WPrefs_app_Makefile_in
===================================================================
RCS file: patches/patch-WPrefs_app_Makefile_in
diff -N patches/patch-WPrefs_app_Makefile_in
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-WPrefs_app_Makefile_in        8 Jun 2016 14:16:50 -0000
@@ -0,0 +1,11 @@
+$OpenBSD$
+--- WPrefs.app/Makefile.in.orig        Tue Aug 11 20:52:19 2015
++++ WPrefs.app/Makefile.in     Wed Jun  8 10:03:29 2016
+@@ -455,6 +455,7 @@ WPrefs_SOURCES = \
+ #     Themes.c
+ AM_CFLAGS = 
+ AM_CPPFLAGS = -DRESOURCE_PATH=\"$(wpdatadir)\" 
-DWMAKER_RESOURCE_PATH=\"$(pkgdatadir)\" \
++       -DPREFIX=\"$(prefix)\" \
+        -I$(top_srcdir)/wrlib -I$(top_srcdir)/WINGs @HEADER_SEARCH_PATH@ 
+ 
+ WPrefs_DEPENDENCIES = $(top_builddir)/WINGs/libWINGs.la
Index: patches/patch-WPrefs_app_Menu_c
===================================================================
RCS file: /cvs/ports/x11/windowmaker/patches/patch-WPrefs_app_Menu_c,v
retrieving revision 1.4
diff -u -p -u -p -r1.4 patch-WPrefs_app_Menu_c
--- patches/patch-WPrefs_app_Menu_c     25 Aug 2007 09:27:12 -0000      1.4
+++ patches/patch-WPrefs_app_Menu_c     8 Jun 2016 14:16:50 -0000
@@ -1,29 +1,26 @@
 $OpenBSD: patch-WPrefs_app_Menu_c,v 1.4 2007/08/25 09:27:12 mglocker Exp $
---- WPrefs.app/Menu.c.orig     Tue Oct 26 04:23:39 2004
-+++ WPrefs.app/Menu.c  Fri Aug 17 20:58:09 2007
-@@ -577,7 +577,7 @@ createPanel(_Panel *p)
-         data->param.exec.command = "xv";
+--- WPrefs.app/Menu.c.orig     Tue Aug 11 20:41:14 2015
++++ WPrefs.app/Menu.c  Wed Jun  8 09:52:32 2016
+@@ -517,19 +517,19 @@ static void createPanel(_Panel * p)
+               data = putNewItem(panel, pad, DirectoryInfo, _("Themes"));
+               data->param.directory.command = "setstyle";
+               data->param.directory.directory =
+-                  "/usr/share/WindowMaker/Themes 
/usr/local/share/WindowMaker/Themes $HOME/GNUstep/Library/WindowMaker/Themes";
++                  "/usr/share/WindowMaker/Themes " PREFIX 
"/share/WindowMaker/Themes $HOME/GNUstep/Library/WindowMaker/Themes";
+               data->param.directory.stripExt = 1;
  
-         data = putNewItem(panel, pad, ExecInfo, _("Acrobat Reader"));
--        data->param.exec.command = "acroread || 
/usr/local/Acrobat4/bin/acroread";
-+        data->param.exec.command = "acroread";
+               data = putNewItem(panel, pad, DirectoryInfo, _("Bg Images 
(scale)"));
+               data->param.directory.command = "wmsetbg -u -s";
+               data->param.directory.directory =
+-                  "/opt/kde2/share/wallpapers 
/usr/share/WindowMaker/Backgrounds 
$HOME/GNUstep/Library/WindowMaker/Backgrounds";
++                  "/opt/kde2/share/wallpapers " PREFIX 
"/share/WindowMaker/Backgrounds $HOME/GNUstep/Library/WindowMaker/Backgrounds";
+               data->param.directory.stripExt = 1;
  
-         data = putNewItem(panel, pad, ExecInfo, _("ghostview"));
-         data->param.exec.command = "gv";
-@@ -616,7 +616,7 @@ createPanel(_Panel *p)
+               data = putNewItem(panel, pad, DirectoryInfo, _("Bg Images 
(tile)"));
+               data->param.directory.command = "wmsetbg -u -t";
+               data->param.directory.directory =
+-                  "/opt/kde2/share/wallpapers 
/usr/share/WindowMaker/Backgrounds 
$HOME/GNUstep/Library/WindowMaker/Backgrounds";
++                  "/opt/kde2/share/wallpapers " PREFIX 
"/share/WindowMaker/Backgrounds $HOME/GNUstep/Library/WindowMaker/Backgrounds";
+               data->param.directory.stripExt = 1;
  
-         data = putNewItem(panel, pad, DirectoryInfo, _("Themes"));
-         data->param.directory.command = "setstyle";
--        data->param.directory.directory = "/usr/share/WindowMaker/Themes 
/usr/local/share/WindowMaker/Themes $HOME/GNUstep/Library/WindowMaker/Themes";
-+        data->param.directory.directory = "/usr/share/WindowMaker/Themes 
%%PREFIX%%/share/WindowMaker/Themes $HOME/GNUstep/Library/WindowMaker/Themes";
-         data->param.directory.stripExt = 1;
- 
-         data = putNewItem(panel, pad, DirectoryInfo, _("Bg Images (scale)"));
-@@ -1068,7 +1068,6 @@ parseCommand(WMPropList *item)
- 
-                 for (i = 0, j = 0; i < tokn; i++) {
-                     if (strcmp(tokens[i], "-noext") == 0) {
--                        wfree(tokens[i]);
-                         data->param.directory.stripExt = 1;
-                     } else {
-                         ctokens[j++] = tokens[i];
+               smenu = putNewSubmenu(pad, _("Assorted XTerms"));
Index: patches/patch-WPrefs_app_Paths_c
===================================================================
RCS file: /cvs/ports/x11/windowmaker/patches/patch-WPrefs_app_Paths_c,v
retrieving revision 1.3
diff -u -p -u -p -r1.3 patch-WPrefs_app_Paths_c
--- patches/patch-WPrefs_app_Paths_c    1 Nov 2005 17:28:34 -0000       1.3
+++ patches/patch-WPrefs_app_Paths_c    8 Jun 2016 14:16:50 -0000
@@ -1,23 +1,25 @@
 $OpenBSD: patch-WPrefs_app_Paths_c,v 1.3 2005/11/01 17:28:34 wilfried Exp $
---- WPrefs.app/Paths.c.orig    Tue Oct 12 22:18:33 2004
-+++ WPrefs.app/Paths.c Mon Oct 31 18:56:11 2005
-@@ -86,8 +86,8 @@ showData(_Panel *panel)
-         addPathToList(panel->icoL, -1, "~/pixmaps");
-         addPathToList(panel->icoL, -1, "~/GNUstep/Library/Icons");
-         addPathToList(panel->icoL, -1, "/usr/include/X11/pixmaps");
--        addPathToList(panel->icoL, -1, "/usr/local/share/WindowMaker/Icons");
--        addPathToList(panel->icoL, -1, 
"/usr/local/share/WindowMaker/Pixmaps");
-+        addPathToList(panel->icoL, -1, "%%PREFIX%%/share/WindowMaker/Icons");
-+        addPathToList(panel->icoL, -1, 
"%%PREFIX%%/share/WindowMaker/Pixmaps");
-         addPathToList(panel->icoL, -1, "/usr/share/WindowMaker/Icons");
-     } else {
-         for (i=0; i<WMGetPropListItemCount(array); i++) {
-@@ -102,7 +102,7 @@ showData(_Panel *panel)
-             wwarning(_("bad value in option PixmapPath. Using default path 
list"));
-         addPathToList(panel->pixL, -1, "~/pixmaps");
-         addPathToList(panel->pixL, -1, 
"~/GNUstep/Library/WindowMaker/Pixmaps");
--        addPathToList(panel->pixL, -1, 
"/usr/local/share/WindowMaker/Pixmaps");
-+        addPathToList(panel->pixL, -1, 
"%%PREFIX%%/share/WindowMaker/Pixmaps");
-     } else {
-         for (i=0; i<WMGetPropListItemCount(array); i++) {
-             val = WMGetFromPLArray(array, i);
+--- WPrefs.app/Paths.c.orig    Tue Aug 11 20:41:14 2015
++++ WPrefs.app/Paths.c Wed Jun  8 09:52:32 2016
+@@ -78,9 +78,9 @@ static void showData(_Panel * panel)
+                       wwarning(_("bad value in option IconPath. Using default 
path list"));
+               addPathToList(panel->icoL, -1, "~/pixmaps");
+               addPathToList(panel->icoL, -1, "~/GNUstep/Library/Icons");
+-              addPathToList(panel->icoL, -1, "/usr/include/X11/pixmaps");
+-              addPathToList(panel->icoL, -1, 
"/usr/local/share/WindowMaker/Icons");
+-              addPathToList(panel->icoL, -1, 
"/usr/local/share/WindowMaker/Pixmaps");
++              addPathToList(panel->icoL, -1, PREFIX "/share/pixmaps");
++              addPathToList(panel->icoL, -1, PREFIX 
"/share/WindowMaker/Icons");
++              addPathToList(panel->icoL, -1, PREFIX 
"/share/WindowMaker/Pixmaps");
+               addPathToList(panel->icoL, -1, "/usr/share/WindowMaker/Icons");
+       } else {
+               for (i = 0; i < WMGetPropListItemCount(array); i++) {
+@@ -95,7 +95,7 @@ static void showData(_Panel * panel)
+                       wwarning(_("bad value in option PixmapPath. Using 
default path list"));
+               addPathToList(panel->pixL, -1, "~/pixmaps");
+               addPathToList(panel->pixL, -1, 
"~/GNUstep/Library/WindowMaker/Pixmaps");
+-              addPathToList(panel->pixL, -1, 
"/usr/local/share/WindowMaker/Pixmaps");
++              addPathToList(panel->pixL, -1, PREFIX 
"/share/WindowMaker/Pixmaps");
+       } else {
+               for (i = 0; i < WMGetPropListItemCount(array); i++) {
+                       val = WMGetFromPLArray(array, i);
Index: patches/patch-WindowMaker_Defaults_Makefile_in
===================================================================
RCS file: patches/patch-WindowMaker_Defaults_Makefile_in
diff -N patches/patch-WindowMaker_Defaults_Makefile_in
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-WindowMaker_Defaults_Makefile_in      8 Jun 2016 14:16:50 
-0000
@@ -0,0 +1,14 @@
+$OpenBSD$
+--- WindowMaker/Defaults/Makefile.in.orig      Tue Aug 11 20:52:19 2015
++++ WindowMaker/Defaults/Makefile.in   Wed Jun  8 09:52:32 2016
+@@ -542,7 +542,9 @@ WMWindowAttributes: $(srcdir)/WMWindowAttributes.in
+       chmod 644 WMWindowAttributes
+ 
+ WindowMaker: $(srcdir)/WindowMaker.in
+-      $(AM_V_GEN)sed -e "s:#pkgdatadir#:$(pkgdatadir):" 
$(srcdir)/WindowMaker.in \
++      $(AM_V_GEN)sed -e "s:#pkgdatadir#:$(pkgdatadir):" \
++              -e "s:#prefix#:$(prefix):" \
++              $(srcdir)/WindowMaker.in \
+               > WindowMaker ; \
+       chmod 644 WindowMaker
+ 
Index: patches/patch-WindowMaker_Defaults_WMWindowAttributes_in
===================================================================
RCS file: patches/patch-WindowMaker_Defaults_WMWindowAttributes_in
diff -N patches/patch-WindowMaker_Defaults_WMWindowAttributes_in
--- patches/patch-WindowMaker_Defaults_WMWindowAttributes_in    9 Aug 2012 
09:30:27 -0000       1.1
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,11 +0,0 @@
-$OpenBSD: patch-WindowMaker_Defaults_WMWindowAttributes_in,v 1.1 2012/08/09 
09:30:27 dcoppa Exp $
---- WindowMaker/Defaults/WMWindowAttributes.in.orig    Thu Aug  9 10:18:17 2012
-+++ WindowMaker/Defaults/WMWindowAttributes.in Thu Aug  9 10:19:28 2012
-@@ -2,6 +2,7 @@
-   Logo.WMDock = {Icon = GNUstepGlow.#extension#;};
-   Logo.WMPanel = {Icon = GNUstep.#extension#;};
-   Logo.WMClip = {Icon = clip.#extension#;};
-+  WPrefs = {Icon = "%%PREFIX%%/share/WPrefs/WPrefs.#extension#";};
-   Dockit = {Icon = GNUstep.#extension#;};
-   DockApp = {NoAppIcon = NO;};
-   WSoundServer = {Icon = sound.#extension#;};
Index: patches/patch-WindowMaker_Defaults_WindowMaker_in
===================================================================
RCS file: 
/cvs/ports/x11/windowmaker/patches/patch-WindowMaker_Defaults_WindowMaker_in,v
retrieving revision 1.1
diff -u -p -u -p -r1.1 patch-WindowMaker_Defaults_WindowMaker_in
--- patches/patch-WindowMaker_Defaults_WindowMaker_in   1 Nov 2005 17:28:34 
-0000       1.1
+++ patches/patch-WindowMaker_Defaults_WindowMaker_in   8 Jun 2016 14:16:50 
-0000
@@ -1,21 +1,29 @@
 $OpenBSD: patch-WindowMaker_Defaults_WindowMaker_in,v 1.1 2005/11/01 17:28:34 
wilfried Exp $
---- WindowMaker/Defaults/WindowMaker.in.orig   Wed Oct 27 05:01:38 2004
-+++ WindowMaker/Defaults/WindowMaker.in        Mon Oct 31 18:52:02 2005
-@@ -15,7 +15,7 @@
-     "/usr/X11R6/include/X11/pixmaps",
+--- WindowMaker/Defaults/WindowMaker.in.orig   Tue Aug 11 20:41:14 2015
++++ WindowMaker/Defaults/WindowMaker.in        Wed Jun  8 09:52:32 2016
+@@ -13,12 +13,10 @@
+     "~/GNUstep/Library/Icons",
+     "#pkgdatadir#/Icons",
+     "#pkgdatadir#/Pixmaps",
+-    "/usr/include/X11/pixmaps",
      "~/GNUstep/Library/WindowMaker/Pixmaps",
-     "/usr/share/icons",
+     "~/GNUstep/Library/WindowMaker/CachedPixmaps",
+-    "/usr/share/icons",
 -    "/usr/local/share/pixmaps",
-+    "%%PREFIX%%/share/pixmaps",
-     "/usr/share/pixmaps"
+-    "/usr/share/pixmaps"
++    "#prefix#/share/icons",
++    "#prefix#/share/pixmaps"
    );
    PixmapPath = (
-@@ -24,7 +24,7 @@
+     "~/GNUstep/Library/WindowMaker/Pixmaps",
+@@ -26,9 +24,7 @@
+     "~/GNUstep/Library/WindowMaker/CachedPixmaps",
      "#pkgdatadir#/Pixmaps",
      "#pkgdatadir#/Backgrounds",
-     "/usr/X11R6/include/X11/pixmaps",
+-    "/usr/include/X11/pixmaps",
 -    "/usr/local/share/pixmaps",
-+    "%%PREFIX%%/share/pixmaps",
-     "/usr/share/pixmaps"
+-    "/usr/share/pixmaps"
++    "#prefix#/share/pixmaps"
    );
    WindowTitleBalloons = YES;
+   IconSize = 64;
Index: patches/patch-WindowMaker_Makefile_in
===================================================================
RCS file: patches/patch-WindowMaker_Makefile_in
diff -N patches/patch-WindowMaker_Makefile_in
--- patches/patch-WindowMaker_Makefile_in       20 May 2010 10:58:08 -0000      
1.6
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,12 +0,0 @@
-$OpenBSD: patch-WindowMaker_Makefile_in,v 1.6 2010/05/20 10:58:08 espie Exp $
---- WindowMaker/Makefile.in.orig       Sun Jun 19 05:23:01 2005
-+++ WindowMaker/Makefile.in    Thu May 20 12:50:56 2010
-@@ -116,7 +116,7 @@ SUBDIRS = Backgrounds Defaults IconSets Icons Pixmaps 
- 
- prefsdatadir = $(pkgdatadir)
- 
--prefsdata_DATA =      README  README.themes   autostart.sh    exitscript.sh   
menu    menu.bg         menu.ca         menu.cz         menu.da         menu.de 
        menu.el         menu.es         menu.fi         menu.fr         menu.gl 
        menu.he         menu.hr         menu.hu         menu.it         menu.ja 
        menu.ko         menu.nl         menu.no         menu.pl         menu.pt 
        menu.ro         menu.ru         menu.se         menu.sk         menu.sl 
        menu.tr         menu.zh_CN      menu.zh_TW      plmenu  plmenu.bg       
plmenu.da       plmenu.de       plmenu.es       plmenu.fi       plmenu.fr       
plmenu.hr       plmenu.it       plmenu.ja       plmenu.ko       plmenu.pl       
plmenu.ro       plmenu.sk       plmenu.zh_CN    plmenu.zh_TW    wmmacros        
xtree.dat
-+prefsdata_DATA =      README  README.themes   autostart.sh    exitscript.sh   
menu    menu.bg         menu.ca         menu.cs         menu.da         menu.de 
        menu.el         menu.es         menu.fi         menu.fr         menu.gl 
        menu.he         menu.hr         menu.hu         menu.it         menu.ja 
        menu.ko         menu.nl         menu.no         menu.pl         menu.pt 
        menu.ro         menu.ru         menu.sv         menu.sk         menu.sl 
        menu.tr         menu.zh_CN      menu.zh_TW      plmenu  plmenu.bg       
plmenu.da       plmenu.de       plmenu.es       plmenu.fi       plmenu.fr       
plmenu.hr       plmenu.it       plmenu.ja       plmenu.ko       plmenu.pl       
plmenu.ro       plmenu.sk       plmenu.zh_CN    plmenu.zh_TW    wmmacros        
xtree.dat
- 
- 
- EXTRA_DIST = $(prefsdata_DATA) mkMakefile
Index: patches/patch-WindowMaker_menu
===================================================================
RCS file: /cvs/ports/x11/windowmaker/patches/patch-WindowMaker_menu,v
retrieving revision 1.3
diff -u -p -u -p -r1.3 patch-WindowMaker_menu
--- patches/patch-WindowMaker_menu      1 Nov 2005 17:28:34 -0000       1.3
+++ patches/patch-WindowMaker_menu      8 Jun 2016 14:16:50 -0000
@@ -1,12 +1,12 @@
 $OpenBSD: patch-WindowMaker_menu,v 1.3 2005/11/01 17:28:34 wilfried Exp $
---- WindowMaker/menu.orig      Sat Oct 23 05:47:52 2004
-+++ WindowMaker/menu   Mon Oct 31 18:40:37 2005
+--- WindowMaker/menu.orig      Tue Aug 11 20:41:14 2015
++++ WindowMaker/menu   Wed Jun  8 09:52:32 2016
 @@ -208,7 +208,7 @@
                "Background" END
                "Save Theme" SHEXEC getstyle -t 
$HOME/GNUstep/Library/WindowMaker/Themes/"%a(Theme name,Enter file name:)"
                "Save IconSet" SHEXEC geticonset 
$HOME/GNUstep/Library/WindowMaker/IconSets/"%a(IconSet name,Enter file name:)"
 -              "Preferences Utility" EXEC 
/usr/local/GNUstep/Applications/WPrefs.app/WPrefs
-+              "Preferences Utility" EXEC #wprefsdir#/WPrefs
++              "Preferences Utility" EXEC 
PREFIX/GNUstep/Applications/WPrefs.app/WPrefs
        "Appearance" END
  
        "Session" MENU
Index: patches/patch-WindowMaker_plmenu
===================================================================
RCS file: /cvs/ports/x11/windowmaker/patches/patch-WindowMaker_plmenu,v
retrieving revision 1.3
diff -u -p -u -p -r1.3 patch-WindowMaker_plmenu
--- patches/patch-WindowMaker_plmenu    1 Nov 2005 17:28:34 -0000       1.3
+++ patches/patch-WindowMaker_plmenu    8 Jun 2016 14:16:50 -0000
@@ -1,12 +1,12 @@
 $OpenBSD: patch-WindowMaker_plmenu,v 1.3 2005/11/01 17:28:34 wilfried Exp $
---- WindowMaker/plmenu.orig    Sat Oct 23 05:49:23 2004
-+++ WindowMaker/plmenu Mon Oct 31 18:41:14 2005
+--- WindowMaker/plmenu.orig    Tue Aug 11 20:41:14 2015
++++ WindowMaker/plmenu Wed Jun  8 09:52:32 2016
 @@ -93,7 +93,7 @@
-    ),   
-    ("Save Theme", SHEXEC, "getstyle -t 
$HOME/GNUstep/Library/WindowMaker/Themes/\"%a(Theme name)\""),
-    ("Save IconSet", SHEXEC, "geticonset 
$HOME/GNUstep/Library/WindowMaker/IconSets/\"%a(IconSet name)\""),
--   ("Preferences Utility", EXEC, 
"/usr/local/GNUstep/Applications/WPrefs.app/WPrefs")
-+   ("Preferences Utility", EXEC, "#wprefsdir#/WPrefs")
-    ), 
-    ("Session",
-     ("Save Session", SAVE_SESSION),
+    ),
+    ("Save Theme", SHEXEC, "getstyle -t 
$HOME/GNUstep/Library/WindowMaker/Themes/\"%a(Theme name)\""),
+    ("Save IconSet", SHEXEC, "geticonset 
$HOME/GNUstep/Library/WindowMaker/IconSets/\"%a(IconSet name)\""),
+-   ("Preferences Utility", EXEC, 
"/usr/local/GNUstep/Applications/WPrefs.app/WPrefs")
++   ("Preferences Utility", EXEC, PREFIX 
"/GNUstep/Applications/WPrefs.app/WPrefs")
+    ),
+    ("Session",
+     ("Save Session", SAVE_SESSION),
Index: patches/patch-configure
===================================================================
RCS file: /cvs/ports/x11/windowmaker/patches/patch-configure,v
retrieving revision 1.3
diff -u -p -u -p -r1.3 patch-configure
--- patches/patch-configure     27 Dec 2005 23:12:24 -0000      1.3
+++ patches/patch-configure     8 Jun 2016 14:16:50 -0000
@@ -1,47 +1,12 @@
 $OpenBSD: patch-configure,v 1.3 2005/12/27 23:12:24 naddy Exp $
---- configure.orig     Sun Jun 19 05:23:02 2005
-+++ configure  Tue Dec 27 22:18:30 2005
-@@ -21237,7 +21237,7 @@ cat >>conftest.$ac_ext <<_ACEOF
- int
- main ()
- {
--{int x; asm volatile("movl %%eax, %%ebx\n"::
-+{int x; asm volatile("pushal\n movl %%eax, %%ebx\n popal\n"::
-                           "m" (x),"m" (x),"m" (x),"m" (x),"m" (x),"m" (x),
-                           "m" (x),"m" (x),"m" (x),"m" (x),"m" (x),"m" (x));}
-   ;
-@@ -21301,7 +21301,7 @@ cat >>conftest.$ac_ext <<_ACEOF
- int
- main ()
- {
--asm ("movq %mm0, %mm1");
-+asm ("movq (%ebx), %mm1");
-   ;
-   return 0;
- }
-@@ -21489,13 +21489,13 @@ echo "${ECHO_T}$ac_cv_func_gettext" >&6
- if test $ac_cv_func_gettext = yes; then
-   HAVEGETTEXT="yes"
- else
--  echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
--echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6
-+  echo "$as_me:$LINENO: checking for gettext in -lintl -liconv" >&5
-+echo $ECHO_N "checking for gettext in -lintl -liconv... $ECHO_C" >&6
- if test "${ac_cv_lib_intl_gettext+set}" = set; then
-   echo $ECHO_N "(cached) $ECHO_C" >&6
- else
-   ac_check_lib_save_LIBS=$LIBS
--LIBS="-lintl  $LIBS"
-+LIBS="-lintl -liconv $LIBS"
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h.  */
- _ACEOF
-@@ -21553,7 +21553,7 @@ fi
- echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
- echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6
- if test $ac_cv_lib_intl_gettext = yes; then
--  INTLIBS="-lintl" HAVEGETTEXT="yes"
-+  INTLIBS="-lintl -liconv" HAVEGETTEXT="yes"
- else
-   INTLIBS=""
+--- configure.orig     Wed Feb  3 12:18:53 2016
++++ configure  Wed Feb  3 12:19:27 2016
+@@ -17002,7 +17002,7 @@ else
+   wm_cv_imgfmt_xpm=no
+                            wm_save_LIBS="$LIBS"
+          if wm_fn_lib_try_link "XpmCreatePixmapFromData" "$XLFLAGS $XLIBS 
-lXpm"; then :
+-  wm_cv_imgfmt_xpm="-lXpm" ; break
++  wm_cv_imgfmt_xpm="-lXpm"
  fi
+          LIBS="$wm_save_LIBS"
+          if test "x$enable_xpm$wm_cv_imgfmt_xpm" = "xyesno"; then :
Index: patches/patch-m4_windowmaker_m4
===================================================================
RCS file: patches/patch-m4_windowmaker_m4
diff -N patches/patch-m4_windowmaker_m4
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-m4_windowmaker_m4     8 Jun 2016 14:16:50 -0000
@@ -0,0 +1,12 @@
+$OpenBSD$
+--- m4/windowmaker.m4.orig     Tue Aug 11 20:41:14 2015
++++ m4/windowmaker.m4  Wed Feb  3 10:24:21 2016
+@@ -195,7 +195,7 @@ AC_CACHE_CHECK([for secure_getenv], [wm_cv_func_secure
+      wm_save_CFLAGS="$CFLAGS"
+      for wm_arg in "% yes" "-D_GNU_SOURCE"; do
+          AS_IF([wm_fn_lib_try_compile "stdlib.h" "const char *h;" "h = 
secure_getenv(\"HOME\")" dnl
+-                    "`echo "$wm_arg" | sed -e 's, *%.*$,,' ` 
-Werror=implicit-function-declaration"],
++                    "`echo "$wm_arg" | sed -e 's, *%.*$,,' ` 
-Werror=implicit-function-declaration -pedantic-error"],
+              [wm_cv_func_secure_getenv="`echo "$wm_arg" | sed -e 's,^.*% *,,' 
`"
+               break])
+      done
Index: patches/patch-m4_wm_i18n_m4
===================================================================
RCS file: patches/patch-m4_wm_i18n_m4
diff -N patches/patch-m4_wm_i18n_m4
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-m4_wm_i18n_m4 8 Jun 2016 14:16:50 -0000
@@ -0,0 +1,27 @@
+$OpenBSD$
+--- m4/wm_i18n.m4.orig Tue Aug 11 20:41:14 2015
++++ m4/wm_i18n.m4      Wed Feb  3 10:24:21 2016
+@@ -37,7 +37,7 @@ AC_DEFUN_ONCE([WM_I18N_LANGUAGES],
+ [AC_ARG_VAR([LINGUAS],
+     [list of language translations to support (I18N), use 'list' to get the 
list of supported languages, default: none])dnl
+ AC_DEFUN([WM_ALL_LANGUAGES],
+-    [m4_esyscmd([( ls WINGs/po/ ; ls po/ ; ls WPrefs.app/po/ ; ls util/po/ ) 
| sed -n -e '/po$/{s,\.po,,;p}' | sort -u | tr '\n' ' '])])dnl
++    [m4_esyscmd([( ls WINGs/po/ ; ls po/ ; ls WPrefs.app/po/ ; ls util/po/ ) 
| sed -n -e '/po$/{s,\.po,,;p; }' | sort -u | tr '\n' ' '])])dnl
+ dnl We 'divert' the macro to have it executed as soon as the option list have
+ dnl been processed, so the list of locales will be printed after the configure
+ dnl options have been parsed, but before any test have been run
+@@ -66,10 +66,10 @@ AS_IF([test "x$LINGUAS" != "x"],
+      supported_locales=""
+ 
+      # This is the list of locales that our archive currently supports
+-     wings_locales=" m4_esyscmd([ls WINGs/po/ | sed -n '/po$/{s,.po,,;p}' | 
tr '\n' ' '])"
+-     wmaker_locales=" m4_esyscmd([ls po/ | sed -n '/po$/{s,.po,,;p}' | tr 
'\n' ' '])"
+-     wprefs_locales=" m4_esyscmd([ls WPrefs.app/po/ | sed -n 
'/po$/{s,.po,,;p}' | tr '\n' ' '])"
+-     util_locales=" m4_esyscmd([ls util/po/ | sed -n '/po$/{s,.po,,;p}' | tr 
'\n' ' '])"
++     wings_locales=" m4_esyscmd([ls WINGs/po/ | sed -n '/po$/{s,.po,,;p; }' | 
tr '\n' ' '])"
++     wmaker_locales=" m4_esyscmd([ls po/ | sed -n '/po$/{s,.po,,;p; }' | tr 
'\n' ' '])"
++     wprefs_locales=" m4_esyscmd([ls WPrefs.app/po/ | sed -n 
'/po$/{s,.po,,;p; }' | tr '\n' ' '])"
++     util_locales=" m4_esyscmd([ls util/po/ | sed -n '/po$/{s,.po,,;p; }' | 
tr '\n' ' '])"
+      man_locales=" m4_esyscmd([ls doc/ | grep '^[a-z][a-z]\(_[A-Z][A-Z]\)*$' 
| tr '\n' ' '])"
+ 
+      # If the LINGUAS is specified as a simple '*', then we enable all the 
languages
Index: patches/patch-src_actions_c
===================================================================
RCS file: patches/patch-src_actions_c
diff -N patches/patch-src_actions_c
--- patches/patch-src_actions_c 19 Sep 2013 20:43:54 -0000      1.5
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,62 +0,0 @@
-$OpenBSD: patch-src_actions_c,v 1.5 2013/09/19 20:43:54 sthen Exp $
-
-1. Fix periodic focus bug
-From: Pedro Gimeno <parig...@formauri.es>
-Date: Mon, 19 May 2008 17:52:00 -0300
-http://repo.or.cz/w/wmaker-crm.git/commitdiff/c91bb1ba1360006c568db37438779e525868cf17
-
-2. Bugfix: java menu problem after resize, maximize
-From: Ambrus Szabo <don...@donamo.hu>
-Date: Tue, 5 Apr 2011 12:36:11 +0200
-http://repo.or.cz/w/wmaker-crm.git/commit/7490b14bf0573283cd11eea3b1b6392c6f38e2dd
-
---- src/actions.c.orig Sun Jul  3 18:25:14 2005
-+++ src/actions.c      Thu Sep 19 21:43:05 2013
-@@ -78,6 +78,15 @@ static struct {
- #define SHADE_STEPS   shadePars[(int)wPreferences.shade_speed].steps
- #define SHADE_DELAY   shadePars[(int)wPreferences.shade_speed].delay
- 
-+static int
-+compareTimes(Time t1, Time t2)
-+{
-+      Time diff;
-+      if (t1 == t2)
-+              return 0;
-+      diff = t1 - t2;
-+      return (diff < 60000) ? 1 : -1;
-+}
- 
- /*
-  *----------------------------------------------------------------------
-@@ -99,11 +108,11 @@ wSetFocusTo(WScreen *scr, WWindow  *wwin)
- 
-     WWindow *old_focused;
-     WWindow *focused=scr->focused_window;
--    int timestamp=LastTimestamp;
-+    Time timestamp=LastTimestamp;
-     WApplication *oapp=NULL, *napp=NULL;
-     int wasfocused;
- 
--    if (scr->flags.ignore_focus_events || LastFocusChange > timestamp)
-+    if (scr->flags.ignore_focus_events || compareTimes(LastFocusChange, 
timestamp) > 0)
-         return;
- 
-     if (!old_scr)
-@@ -463,8 +472,8 @@ wMaximizeWindow(WWindow *wwin, int directions)
-                     &new_width, &new_height);
- 
-     wWindowConfigure(wwin, new_x, new_y, new_width, new_height);
-+    wWindowSynthConfigureNotify(wwin);
- 
--
-     WMPostNotificationName(WMNChangedState, wwin, "maximize");
- 
-     wSoundPlay(WSOUND_MAXIMIZE);
-@@ -494,6 +503,7 @@ wUnmaximizeWindow(WWindow *wwin)
- 
-     wwin->flags.maximized = 0;
-     wWindowConfigure(wwin, x, y, w, h);
-+    wWindowSynthConfigureNotify(wwin);
- 
-     WMPostNotificationName(WMNChangedState, wwin, "maximize");
- 
Index: patches/patch-src_dock_c
===================================================================
RCS file: patches/patch-src_dock_c
diff -N patches/patch-src_dock_c
--- patches/patch-src_dock_c    20 May 2010 10:58:08 -0000      1.2
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,12 +0,0 @@
-$OpenBSD: patch-src_dock_c,v 1.2 2010/05/20 10:58:08 espie Exp $
---- src/dock.c.orig    Sat Oct 23 05:10:40 2004
-+++ src/dock.c Thu May 20 12:50:56 2010
-@@ -2977,7 +2977,7 @@ execCommand(WAppIcon *btn, char *command, WSavedState 
- 
-     wtokensplit(cmdline, &argv, &argc);
- 
--    if (argv==NULL) {
-+    if (!argc) {
-         if (cmdline)
-             wfree(cmdline);
-         if (state)
Index: patches/patch-src_event_c
===================================================================
RCS file: patches/patch-src_event_c
diff -N patches/patch-src_event_c
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_event_c   8 Jun 2016 14:16:50 -0000
@@ -0,0 +1,13 @@
+$OpenBSD$
+--- src/event.c.orig   Wed Jun  8 13:25:33 2016
++++ src/event.c        Wed Jun  8 13:26:00 2016
+@@ -103,7 +103,9 @@ static void handleKeyPress(XEvent *event);
+ static void handleFocusIn(XEvent *event);
+ static void handleMotionNotify(XEvent *event);
+ static void handleVisibilityNotify(XEvent *event);
++#ifdef HAVE_INOTIFY
+ static void handle_inotify_events(void);
++#endif
+ static void handle_selection_request(XSelectionRequestEvent *event);
+ static void handle_selection_clear(XSelectionClearEvent *event);
+ static void wdelete_death_handler(WMagicNumber id);
Index: patches/patch-src_main_c
===================================================================
RCS file: patches/patch-src_main_c
diff -N patches/patch-src_main_c
--- patches/patch-src_main_c    20 May 2010 10:58:08 -0000      1.2
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,20 +0,0 @@
-$OpenBSD: patch-src_main_c,v 1.2 2010/05/20 10:58:08 espie Exp $
---- src/main.c.orig    Mon Oct 25 03:32:51 2004
-+++ src/main.c Thu May 20 12:50:56 2010
-@@ -331,6 +331,7 @@ ExecuteShellCommand(WScreen *scr, char *command)
-  * forked by wmaker.
-  *---------------------------------------------------------------------------
-  */
-+#if 0
- void
- StartLogShell(WScreen *scr)
- {
-@@ -403,7 +404,7 @@ StartLogShell(WScreen *scr)
-         LogStdErr = err_fd[0];
-     }
- }
--
-+#endif
- 
- /*
-  *---------------------------------------------------------------------
Index: patches/patch-src_moveres_c
===================================================================
RCS file: patches/patch-src_moveres_c
diff -N patches/patch-src_moveres_c
--- patches/patch-src_moveres_c 19 Sep 2013 20:43:54 -0000      1.2
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,17 +0,0 @@
-$OpenBSD: patch-src_moveres_c,v 1.2 2013/09/19 20:43:54 sthen Exp $
-
-Bugfix: java menu problem after resize, maximize
-From: Ambrus Szabo <don...@donamo.hu>
-Date: Tue, 5 Apr 2011 12:36:11 +0200
-http://repo.or.cz/w/wmaker-crm.git/commit/7490b14bf0573283cd11eea3b1b6392c6f38e2dd
-
---- src/moveres.c.orig Sun Oct 24 20:36:09 2004
-+++ src/moveres.c      Thu Sep 19 21:43:05 2013
-@@ -2190,6 +2190,7 @@ wMouseResizeWindow(WWindow *wwin, XEvent *ev)
-                     wwin->flags.user_changed_height = 1;
- 
-                 wWindowConfigure(wwin, fx, fy, fw, fh - vert_border);
-+                wWindowSynthConfigureNotify(wwin);
-             }
- #ifdef DEBUG
-             puts("End resize window");
Index: patches/patch-src_session_c
===================================================================
RCS file: patches/patch-src_session_c
diff -N patches/patch-src_session_c
--- patches/patch-src_session_c 20 May 2010 10:58:08 -0000      1.2
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,12 +0,0 @@
-$OpenBSD: patch-src_session_c,v 1.2 2010/05/20 10:58:08 espie Exp $
---- src/session.c.orig Fri Mar 11 22:35:38 2005
-+++ src/session.c      Thu May 20 12:50:56 2010
-@@ -381,7 +381,7 @@ execCommand(WScreen *scr, char *command, char *host)
- 
-     wtokensplit(command, &argv, &argc);
- 
--    if (argv==NULL) {
-+    if (!argc) {
-         return 0;
-     }
- 
Index: patches/patch-src_startup_c
===================================================================
RCS file: patches/patch-src_startup_c
diff -N patches/patch-src_startup_c
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_startup_c 8 Jun 2016 14:16:50 -0000
@@ -0,0 +1,12 @@
+$OpenBSD$
+--- src/startup.c.orig Tue Aug 11 20:41:14 2015
++++ src/startup.c      Wed Jun  8 09:52:32 2016
+@@ -666,7 +666,7 @@ void StartUp(Bool defaultScreenOnly)
+               wMenuRestoreState(wScreen[j]);
+ 
+               /* If we're not restarting, restore session */
+-              if (wPreferences.flags.restarting == 0 && 
!wPreferences.flags.norestore)
++              if (!wPreferences.flags.restarting && 
!wPreferences.flags.norestore)
+                       wSessionRestoreState(wScreen[j]);
+ 
+               if (!wPreferences.flags.noautolaunch) {
Index: patches/patch-src_wmspec_c
===================================================================
RCS file: patches/patch-src_wmspec_c
diff -N patches/patch-src_wmspec_c
--- patches/patch-src_wmspec_c  20 May 2010 10:58:08 -0000      1.3
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,74 +0,0 @@
-$OpenBSD: patch-src_wmspec_c,v 1.3 2010/05/20 10:58:08 espie Exp $
---- src/wmspec.c.orig  Sun May 15 18:41:09 2005
-+++ src/wmspec.c       Thu May 20 12:50:56 2010
-@@ -322,14 +322,14 @@ setSupportedHints(WScreen *scr)
- void
- wNETWMUpdateDesktop(WScreen *scr)
- {
--    CARD32 *views, sizes[2];
-+    long *views, sizes[2];
-     int count, i;
- 
-     if (scr->workspace_count==0)
-         return;
- 
-     count = scr->workspace_count * 2;
--    views = wmalloc(sizeof(CARD32) * count);
-+    views = wmalloc(sizeof(long) * count);
-     /*memset(views, 0, sizeof(CARD32) * count);*/
- 
- #ifdef VIRTUAL_DESKTOP
-@@ -487,7 +487,7 @@ updateIconImage(WScreen *scr, WWindow *wwin)
- static void
- updateShowDesktop(WScreen * scr, Bool show)
- {
--    CARD32 foo;
-+    long foo;
- 
-     foo = (show == True);
-     XChangeProperty(dpy, scr->root_win, net_showing_desktop, XA_CARDINAL, 32,
-@@ -660,7 +660,7 @@ wNETWMUpdateActions(WWindow *wwin, Bool del)
- void
- wNETWMUpdateWorkarea(WScreen *scr, WArea usableArea)
- {
--    CARD32 *area;
-+    long *area;
-     int count, i;
- 
-     /* XXX: not Xinerama compatible,
-@@ -670,7 +670,7 @@ wNETWMUpdateWorkarea(WScreen *scr, WArea usableArea)
-         return;
- 
-     count = scr->workspace_count * 4;
--    area = wmalloc(sizeof(CARD32) * count);
-+    area = wmalloc(sizeof(long) * count);
-     for (i=0; i<scr->workspace_count; i++) {
-         area[4*i + 0] = usableArea.x1;
-         area[4*i + 1] = usableArea.y1;
-@@ -793,7 +793,7 @@ updateClientListStacking(WScreen *scr, WWindow *wwin_e
- static void
- updateWorkspaceCount(WScreen *scr) /* changeable */
- {
--    CARD32 count;
-+    long count;
- 
-     count = scr->workspace_count;
- 
-@@ -805,7 +805,7 @@ updateWorkspaceCount(WScreen *scr) /* changeable */
- static void
- updateCurrentWorkspace(WScreen *scr) /* changeable */
- {
--    CARD32 count;
-+    long count;
- 
-     count = scr->current_workspace;
- 
-@@ -852,7 +852,7 @@ updateFocusHint(WScreen *scr, WWindow *wwin) /* change
- static void
- updateWorkspaceHint(WWindow *wwin, Bool fake, Bool del)
- {
--    CARD32 l;
-+    long l;
- 
-     if (del) {
-         XDeleteProperty(dpy, wwin->client_win, net_wm_desktop);
Index: patches/patch-util_wmaker_inst_in
===================================================================
RCS file: patches/patch-util_wmaker_inst_in
diff -N patches/patch-util_wmaker_inst_in
--- patches/patch-util_wmaker_inst_in   15 Feb 2009 20:12:17 -0000      1.5
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,29 +0,0 @@
-$OpenBSD: patch-util_wmaker_inst_in,v 1.5 2009/02/15 20:12:17 wilfried Exp $
---- util/wmaker.inst.in.orig   Fri Apr  8 13:24:14 2005
-+++ util/wmaker.inst.in        Sun Feb 15 20:31:10 2009
-@@ -22,6 +22,7 @@ fi
- # directory where system wide configuration is stored
- GLOBALDIR="#pkgdatadir#"
- GLOBALDEFDIR="#sysconfdir#"
-+WPREFSDIR="#bindir#"
- 
- USERDIR=$HOME
- 
-@@ -81,14 +82,17 @@ copy() {
-                   source=$GLOBALDIR/plmenu
-               fi
-               sed -e "s:#wmdatadir#:$GLOBALDIR:g" \
-+                  -e "s:#wprefsdir#:$WPREFSDIR:g" \
-                       $source > $GSDIR/Defaults/WMRootMenu
-       else
-               if test "x$GNUSTEP_USER_ROOT" = "x"; then
-                       sed -e "s:#wmdatadir#:$GLOBALDIR:g" \
-+                              -e "s:#wprefsdir#:$WPREFSDIR:g" \
-                                       $source > $target
-               else
-                       sed -e "s|\$HOME/GNUstep|$GSDIR|g" \
-                               -e "s:#wmdatadir#:$GLOBALDIR:g" \
-+                              -e "s:#wprefsdir#:$WPREFSDIR:g" \
-                                       $source > $target
-               fi
-       fi
Index: patches/patch-wrlib_Makefile_in
===================================================================
RCS file: patches/patch-wrlib_Makefile_in
diff -N patches/patch-wrlib_Makefile_in
--- patches/patch-wrlib_Makefile_in     27 Dec 2005 23:12:24 -0000      1.2
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,12 +0,0 @@
-$OpenBSD: patch-wrlib_Makefile_in,v 1.2 2005/12/27 23:12:24 naddy Exp $
---- wrlib/Makefile.in.orig     Sun Jun 19 05:23:01 2005
-+++ wrlib/Makefile.in  Tue Dec 27 22:18:30 2005
-@@ -112,7 +112,7 @@ supported_locales = @supported_locales@
- wprefs_bindir = @wprefs_bindir@
- wprefs_datadir = @wprefs_datadir@
- 
--SUBDIRS = . tests
-+SUBDIRS = .
- 
- AUTOMAKE_OPTIONS = no-dependencies
- 
Index: patches/patch-wrlib_gif_c
===================================================================
RCS file: patches/patch-wrlib_gif_c
diff -N patches/patch-wrlib_gif_c
--- patches/patch-wrlib_gif_c   29 Mar 2015 10:44:55 -0000      1.3
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,54 +0,0 @@
-$OpenBSD: patch-wrlib_gif_c,v 1.3 2015/03/29 10:44:55 sthen Exp $
-
-handle giflib 5.0+
-
---- wrlib/gif.c.orig   Tue Oct 12 19:21:01 2004
-+++ wrlib/gif.c        Sun Mar 29 11:44:15 2015
-@@ -49,6 +49,7 @@ RLoadGIF(RContext *context, char *file, int index)
-     GifPixelType *buffer = NULL;
-     int i, j, k;
-     int width, height;
-+    int giferr = 0;
-     GifRecordType recType;
-     ColorMapObject *colormap;
-     unsigned char rmap[256];
-@@ -61,10 +62,10 @@ RLoadGIF(RContext *context, char *file, int index)
-     /* default error message */
-     RErrorCode = RERR_BADINDEX;
- 
--    gif = DGifOpenFileName(file);
-+    gif = DGifOpenFileName(file, &giferr);
- 
-     if (!gif) {
--        switch (GifLastError()) {
-+        switch (giferr) {
-         case D_GIF_ERR_OPEN_FAILED:
-             RErrorCode = RERR_OPEN;
-             break;
-@@ -79,7 +80,7 @@ RLoadGIF(RContext *context, char *file, int index)
-     }
- 
-     if (gif->SWidth<1 || gif->SHeight<1) {
--        DGifCloseFile(gif);
-+        DGifCloseFile(gif, NULL);
-         RErrorCode = RERR_BADIMAGEFILE;
-         return NULL;
-     }
-@@ -202,7 +203,7 @@ RLoadGIF(RContext *context, char *file, int index)
-     /* yuck! */
-     goto did_not_get_any_errors;
- giferr:
--    switch (GifLastError()) {
-+    switch (gif->Error) {
-     case D_GIF_ERR_OPEN_FAILED:
-         RErrorCode = RERR_OPEN;
-         break;
-@@ -223,7 +224,7 @@ did_not_get_any_errors:
-         free(buffer);
- 
-     if (gif)
--        DGifCloseFile(gif);
-+        DGifCloseFile(gif, NULL);
- 
-     return image;
- }
Index: patches/patch-wrlib_png_c
===================================================================
RCS file: patches/patch-wrlib_png_c
diff -N patches/patch-wrlib_png_c
--- patches/patch-wrlib_png_c   8 Jul 2011 20:38:01 -0000       1.1
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,15 +0,0 @@
-$OpenBSD: patch-wrlib_png_c,v 1.1 2011/07/08 20:38:01 naddy Exp $
-
-Fix build with png-1.5.
-
---- wrlib/png.c.orig   Tue Jul  5 22:30:42 2011
-+++ wrlib/png.c        Tue Jul  5 22:31:03 2011
-@@ -97,7 +97,7 @@ RLoadPNG(RContext *context, char *file, int index)
-     }
- 
-     RErrorCode = RERR_INTERNAL;
--    if (setjmp(png->jmpbuf)) {
-+    if (setjmp(png_jmpbuf(png))) {
-         fclose(f);
-         png_destroy_read_struct(&png, &pinfo, &einfo);
-         if (image)
Index: patches/patch-wrlib_x86_specific_c
===================================================================
RCS file: patches/patch-wrlib_x86_specific_c
diff -N patches/patch-wrlib_x86_specific_c
--- patches/patch-wrlib_x86_specific_c  20 May 2010 10:58:08 -0000      1.1
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,131 +0,0 @@
-$OpenBSD: patch-wrlib_x86_specific_c,v 1.1 2010/05/20 10:58:08 espie Exp $
---- wrlib/x86_specific.c.orig  Sun Oct 31 02:44:01 2004
-+++ wrlib/x86_specific.c       Thu May 20 12:50:56 2010
-@@ -98,15 +98,23 @@ x86_mmx_TrueColor_32_to_16(unsigned char *image,
-                            int height,
-                            int line_offset)
- {
--    long long rrggbbaa;
--    long long pixel;
-+    union {
-+       long long rrggbbaa;
-+       struct {short int rr, gg, bb, aa;} words;
-+    } rrggbbaa;
-+    
-+    union {
-+       long long pixel;
-+       struct {short int rr, gg, bb, aa;} words;
-+    } pixel;
-+
-     short *tmp_err;
-     short *tmp_nerr;
-     int x;
- 
-     asm volatile
-         (
--         "pushal                        \n\t"
-+         "pushl %%ebx                        \n\t"
- 
-          // pack dr, dg and db into mm6
-          "movl  %7, %%eax               \n\t"
-@@ -290,7 +298,7 @@ x86_mmx_TrueColor_32_to_16(unsigned char *image,
- 
- ".Enda:                                 \n\t" // THE END
-          "emms                          \n\t"
--         "popal                         \n\t"
-+         "popl %%ebx                         \n\t"
-          :
-          :
-          "m" (image),                      // %0
-@@ -309,17 +317,18 @@ x86_mmx_TrueColor_32_to_16(unsigned char *image,
-          "m" (width),                      // %13
-          "m" (height),                     // %14
-          "m" (line_offset),                // %15
--         "m" (rrggbbaa),                   // %16 (access to rr)
--         "m" ((*((short*)(&rrggbbaa)+1))), // %17 (access to gg)
--         "m" ((*((short*)(&rrggbbaa)+2))), // %18 (access to bb)
--         "m" ((*((short*)(&rrggbbaa)+3))), // %19 (access to aa)
--         "m" (pixel),                      // %20 (access to pixel.r)
--         "m" ((*((short*)(&pixel)+1))),    // %21 (access to pixel.g)
--         "m" ((*((short*)(&pixel)+2))),    // %22 (access to pixel.b)
--         "m" ((*((short*)(&pixel)+3))),    // %23 (access to pixel.a)
-+         "m" (rrggbbaa.rrggbbaa),          // %16 (access to rr)
-+         "m" (rrggbbaa.words.gg),          // %17 (access to gg)
-+         "m" (rrggbbaa.words.bb),          // %18 (access to bb)
-+         "m" (rrggbbaa.words.aa),          // %19 (access to aa)
-+         "m" (pixel.pixel),                // %20 (access to pixel.r)
-+         "m" (pixel.words.gg),             // %21 (access to pixel.g)
-+         "m" (pixel.words.bb),             // %22 (access to pixel.b)
-+         "m" (pixel.words.aa),             // %23 (access to pixel.a)
-          "m" (tmp_err),                    // %24
-          "m" (tmp_nerr),                   // %25
-          "m" (x)                           // %26
-+        : "eax", "ecx", "edx", "esi", "edi"
-         );
- }
- 
-@@ -342,8 +351,15 @@ x86_mmx_TrueColor_24_to_16(unsigned char *image,
-                            int height,
-                            int line_offset)
- {
--    long long rrggbbaa;
--    long long pixel;
-+    union {
-+       long long rrggbbaa;
-+       struct {short int rr, gg, bb, aa;} words;
-+    } rrggbbaa;
-+    
-+    union {
-+       long long pixel;
-+       struct {short int rr, gg, bb, aa;} words;
-+    } pixel;
- 
-     short *tmp_err;
-     short *tmp_nerr;
-@@ -354,7 +370,7 @@ x86_mmx_TrueColor_24_to_16(unsigned char *image,
- 
-     asm volatile
-         (
--         "pushal                        \n\t"
-+         "pushl %%ebx                        \n\t"
- 
-          "movl %13, %%eax               \n\t" // eax = width
-          "movl %%eax, %%ebx             \n\t"
-@@ -424,7 +440,7 @@ x86_mmx_TrueColor_24_to_16(unsigned char *image,
- 
- ".Endc:                                 \n\t" // THE END
-          "emms                          \n\t"
--         "popal                         \n\t"
-+         "popl %%ebx                         \n\t"
-          :
-          :
-          "m" (image),                      // %0
-@@ -443,19 +459,20 @@ x86_mmx_TrueColor_24_to_16(unsigned char *image,
-          "m" (width),                      // %13
-          "m" (height),                     // %14
-          "m" (line_offset),                // %15
--         "m" (rrggbbaa),                   // %16 (access to rr)
--         "m" ((*((short*)(&rrggbbaa)+1))), // %17 (access to gg)
--         "m" ((*((short*)(&rrggbbaa)+2))), // %18 (access to bb)
--         "m" ((*((short*)(&rrggbbaa)+3))), // %19 (access to aa)
--         "m" (pixel),                      // %20 (access to pixel.r)
--         "m" ((*((short*)(&pixel)+1))),    // %21 (access to pixel.g)
--         "m" ((*((short*)(&pixel)+2))),    // %22 (access to pixel.b)
--         "m" ((*((short*)(&pixel)+3))),    // %23 (access to pixel.a)
-+         "m" (rrggbbaa.rrggbbaa),          // %16 (access to rr)
-+         "m" (rrggbbaa.words.gg),          // %17 (access to gg)
-+         "m" (rrggbbaa.words.bb),          // %18 (access to bb)
-+         "m" (rrggbbaa.words.aa),          // %19 (access to aa)
-+         "m" (pixel.pixel),                // %20 (access to pixel.r)
-+         "m" (pixel.words.gg),             // %21 (access to pixel.g)
-+         "m" (pixel.words.bb),             // %22 (access to pixel.b)
-+         "m" (pixel.words.aa),             // %23 (access to pixel.a)
-          "m" (tmp_err),                    // %24
-          "m" (tmp_nerr),                   // %25
-          "m" (x),                          // %26
-          "m" (w1),                         // %27
-          "m" (w2)                          // %28
-+         : "eax", "ecx", "edx", "esi", "edi"
-         );
- }
- 
Index: pkg/PLIST-lang
===================================================================
RCS file: /cvs/ports/x11/windowmaker/pkg/PLIST-lang,v
retrieving revision 1.5
diff -u -p -u -p -r1.5 PLIST-lang
--- pkg/PLIST-lang      27 Dec 2005 23:12:24 -0000      1.5
+++ pkg/PLIST-lang      8 Jun 2016 14:16:50 -0000
@@ -8,6 +8,7 @@ share/WindowMaker/menu.el
 share/WindowMaker/menu.es
 share/WindowMaker/menu.fi
 share/WindowMaker/menu.fr
+share/WindowMaker/menu.fy
 share/WindowMaker/menu.gl
 share/WindowMaker/menu.he
 share/WindowMaker/menu.hr
@@ -33,10 +34,12 @@ share/WindowMaker/plmenu.de
 share/WindowMaker/plmenu.es
 share/WindowMaker/plmenu.fi
 share/WindowMaker/plmenu.fr
+share/WindowMaker/plmenu.fy
 share/WindowMaker/plmenu.hr
 share/WindowMaker/plmenu.it
 share/WindowMaker/plmenu.ja
 share/WindowMaker/plmenu.ko
+share/WindowMaker/plmenu.nl
 share/WindowMaker/plmenu.pl
 share/WindowMaker/plmenu.ro
 share/WindowMaker/plmenu.sk
@@ -59,9 +62,11 @@ share/locale/da/LC_MESSAGES/WindowMaker.
 share/locale/de/LC_MESSAGES/WINGs.mo
 share/locale/de/LC_MESSAGES/WPrefs.mo
 share/locale/de/LC_MESSAGES/WindowMaker.mo
+share/locale/de/LC_MESSAGES/wmgenmenu.mo
 share/locale/el/LC_MESSAGES/WindowMaker.mo
 share/locale/es/LC_MESSAGES/WPrefs.mo
 share/locale/es/LC_MESSAGES/WindowMaker.mo
+share/locale/es/LC_MESSAGES/wmgenmenu.mo
 share/locale/et/LC_MESSAGES/WPrefs.mo
 share/locale/et/LC_MESSAGES/WindowMaker.mo
 share/locale/fi/LC_MESSAGES/WPrefs.mo
@@ -69,11 +74,22 @@ share/locale/fi/LC_MESSAGES/WindowMaker.
 share/locale/fr/LC_MESSAGES/WINGs.mo
 share/locale/fr/LC_MESSAGES/WPrefs.mo
 share/locale/fr/LC_MESSAGES/WindowMaker.mo
+share/locale/fr/LC_MESSAGES/wmgenmenu.mo
+share/locale/fy/
+share/locale/fy/LC_MESSAGES/
+share/locale/fy/LC_MESSAGES/WINGs.mo
+share/locale/fy/LC_MESSAGES/WPrefs.mo
+share/locale/fy/LC_MESSAGES/WindowMaker.mo
+share/locale/fy/LC_MESSAGES/wmgenmenu.mo
 share/locale/gl/LC_MESSAGES/WindowMaker.mo
 share/locale/hr/LC_MESSAGES/WPrefs.mo
 share/locale/hr/LC_MESSAGES/WindowMaker.mo
+share/locale/hu/LC_MESSAGES/WINGs.mo
 share/locale/hu/LC_MESSAGES/WPrefs.mo
 share/locale/hu/LC_MESSAGES/WindowMaker.mo
+share/locale/hy/
+share/locale/hy/LC_MESSAGES/
+share/locale/hy/LC_MESSAGES/WindowMaker.mo
 share/locale/it/LC_MESSAGES/WPrefs.mo
 share/locale/it/LC_MESSAGES/WindowMaker.mo
 share/locale/ja/LC_MESSAGES/WPrefs.mo
@@ -83,11 +99,15 @@ share/locale/ko/LC_MESSAGES/WindowMaker.
 share/locale/ms/
 share/locale/ms/LC_MESSAGES/
 share/locale/ms/LC_MESSAGES/WindowMaker.mo
+share/locale/nl/LC_MESSAGES/WINGs.mo
+share/locale/nl/LC_MESSAGES/WPrefs.mo
 share/locale/nl/LC_MESSAGES/WindowMaker.mo
+share/locale/nl/LC_MESSAGES/wmgenmenu.mo
 share/locale/no/LC_MESSAGES/WindowMaker.mo
 share/locale/pl/LC_MESSAGES/WindowMaker.mo
 share/locale/pt/LC_MESSAGES/WPrefs.mo
 share/locale/pt/LC_MESSAGES/WindowMaker.mo
+share/locale/pt/LC_MESSAGES/wmgenmenu.mo
 share/locale/ro/LC_MESSAGES/WindowMaker.mo
 share/locale/ru/LC_MESSAGES/WPrefs.mo
 share/locale/ru/LC_MESSAGES/WindowMaker.mo
@@ -96,6 +116,8 @@ share/locale/sk/LC_MESSAGES/WPrefs.mo
 share/locale/sk/LC_MESSAGES/WindowMaker.mo
 share/locale/sv/LC_MESSAGES/WindowMaker.mo
 share/locale/tr/LC_MESSAGES/WindowMaker.mo
+share/locale/uk/LC_MESSAGES/WPrefs.mo
+share/locale/uk/LC_MESSAGES/WindowMaker.mo
 share/locale/zh_CN/LC_MESSAGES/WPrefs.mo
 share/locale/zh_CN/LC_MESSAGES/WindowMaker.mo
 share/locale/zh_TW/LC_MESSAGES/WPrefs.mo
Index: pkg/PLIST-main
===================================================================
RCS file: /cvs/ports/x11/windowmaker/pkg/PLIST-main,v
retrieving revision 1.3
diff -u -p -u -p -r1.3 PLIST-main
--- pkg/PLIST-main      22 May 2015 11:31:20 -0000      1.3
+++ pkg/PLIST-main      8 Jun 2016 14:16:50 -0000
@@ -19,49 +19,86 @@ bin/wm-oldmenu2new
 @bin bin/wmagnify
 @bin bin/wmaker
 bin/wmaker.inst
+@bin bin/wmgenmenu
+@bin bin/wmiv
+@bin bin/wmmenugen
 @bin bin/wmsetbg
-@bin bin/wmsetup
 @bin bin/wxcopy
 @bin bin/wxpaste
 include/WINGs/
 include/WINGs/WINGs.h
 include/WINGs/WINGsP.h
 include/WINGs/WUtil.h
-include/WINGs/proplist-compat.h
-include/WINGs/wtabledelegates.h
-include/WINGs/wtableview.h
 include/WMaker.h
 include/wraster.h
-lib/libExtraWINGs.a
 lib/libWINGs.a
+lib/libWINGs.la
+@lib lib/libWINGs.so.${LIBWINGs_VERSION}
 lib/libWMaker.a
+lib/libWMaker.la
+@lib lib/libWMaker.so.${LIBWMaker_VERSION}
 lib/libWUtil.a
+lib/libWUtil.la
+@lib lib/libWUtil.so.${LIBWUtil_VERSION}
 lib/libwraster.a
 lib/libwraster.la
 @lib lib/libwraster.so.${LIBwraster_VERSION}
 lib/pkgconfig/WINGs.pc
-lib/pkgconfig/wmlib.pc
+lib/pkgconfig/WUtil.pc
 lib/pkgconfig/wrlib.pc
-@man man/man1/geticonset.1x
-@man man/man1/getstyle.1x
-@man man/man1/seticons.1x
-@man man/man1/setstyle.1x
-@man man/man1/wdwrite.1x
-@man man/man1/wmaker.1x
-@man man/man1/wmsetbg.1x
-@man man/man1/wxcopy.1x
-@man man/man1/wxpaste.1x
-man/sk/
-man/sk/man1/
-@man man/sk/man1/geticonset.1x
-@man man/sk/man1/getstyle.1x
-@man man/sk/man1/seticons.1x
-@man man/sk/man1/setstyle.1x
-@man man/sk/man1/wdwrite.1x
-@man man/sk/man1/wmaker.1x
-@man man/sk/man1/wmsetbg.1x
-@man man/sk/man1/wxcopy.1x
-@man man/sk/man1/wxpaste.1x
+@comment man/cs/
+@comment man/cs/man1/
+@comment man/cs/man1/geticonset.1
+@comment man/cs/man1/getstyle.1
+@comment man/cs/man1/seticons.1
+@comment man/cs/man1/setstyle.1
+@comment man/cs/man1/wdwrite.1
+@comment man/cs/man1/wmaker.1
+@comment man/cs/man1/wmsetbg.1
+@comment man/cs/man1/wxcopy.1
+@comment man/cs/man1/wxpaste.1
+@man man/man1/WPrefs.1
+@man man/man1/WindowMaker.1
+@man man/man1/get-wings-flags.1
+@man man/man1/get-wraster-flags.1
+@man man/man1/get-wutil-flags.1
+@man man/man1/geticonset.1
+@man man/man1/getstyle.1
+@man man/man1/seticons.1
+@man man/man1/setstyle.1
+@man man/man1/wdread.1
+@man man/man1/wdwrite.1
+@man man/man1/wmagnify.1
+@man man/man1/wmaker.1
+@man man/man1/wmgenmenu.1
+@man man/man1/wmiv.1
+@man man/man1/wmmenugen.1
+@man man/man1/wmsetbg.1
+@man man/man1/wxcopy.1
+@man man/man1/wxpaste.1
+@man man/man8/upgrade-windowmaker-defaults.8
+@comment man/ru/
+@comment man/ru/man1/
+@comment man/ru/man1/geticonset.1
+@comment man/ru/man1/getstyle.1
+@comment man/ru/man1/seticons.1
+@comment man/ru/man1/setstyle.1
+@comment man/ru/man1/wdwrite.1
+@comment man/ru/man1/wmaker.1
+@comment man/ru/man1/wmsetbg.1
+@comment man/ru/man1/wxcopy.1
+@comment man/ru/man1/wxpaste.1
+@comment man/sk/
+@comment man/sk/man1/
+@comment man/sk/man1/geticonset.1
+@comment man/sk/man1/getstyle.1
+@comment man/sk/man1/seticons.1
+@comment man/sk/man1/setstyle.1
+@comment man/sk/man1/wdwrite.1
+@comment man/sk/man1/wmaker.1
+@comment man/sk/man1/wmsetbg.1
+@comment man/sk/man1/wxcopy.1
+@comment man/sk/man1/wxpaste.1
 share/WINGs/
 share/WINGs/Images.tiff
 share/WINGs/Images.xpm
@@ -78,7 +115,9 @@ share/WPrefs/tiff/clip.tiff
 share/WPrefs/tiff/configs.tiff
 share/WPrefs/tiff/cycleworkspaces.tiff
 share/WPrefs/tiff/dock.tiff
+share/WPrefs/tiff/dockclipdrawersection.tiff
 share/WPrefs/tiff/dontlinkworkspaces.tiff
+share/WPrefs/tiff/drawer.tiff
 share/WPrefs/tiff/ergonomic.tiff
 share/WPrefs/tiff/expert.tiff
 share/WPrefs/tiff/fonts.tiff
@@ -90,6 +129,7 @@ share/WPrefs/tiff/menualign1.tiff
 share/WPrefs/tiff/menualign2.tiff
 share/WPrefs/tiff/menuprefs.tiff
 share/WPrefs/tiff/menus.tiff
+share/WPrefs/tiff/miscprefs2.tiff
 share/WPrefs/tiff/moreanim.tiff
 share/WPrefs/tiff/mousesettings.tiff
 share/WPrefs/tiff/mousespeed.tiff
@@ -97,10 +137,14 @@ share/WPrefs/tiff/msty1.tiff
 share/WPrefs/tiff/msty2.tiff
 share/WPrefs/tiff/msty3.tiff
 share/WPrefs/tiff/newstyle.tiff
+share/WPrefs/tiff/nextstyle.tiff
 share/WPrefs/tiff/nonopaque.tiff
+share/WPrefs/tiff/noopaqueresize.tiff
 share/WPrefs/tiff/oldstyle.tiff
 share/WPrefs/tiff/opaque.tiff
+share/WPrefs/tiff/opaqueresize.tiff
 share/WPrefs/tiff/paths.tiff
+share/WPrefs/tiff/smallwindow.tiff
 share/WPrefs/tiff/smooth.tiff
 share/WPrefs/tiff/sound.tiff
 share/WPrefs/tiff/speed0.tiff
@@ -115,6 +159,7 @@ share/WPrefs/tiff/speed4.tiff
 share/WPrefs/tiff/speed4s.tiff
 share/WPrefs/tiff/tdel.tiff
 share/WPrefs/tiff/tedit.tiff
+share/WPrefs/tiff/temp.tiff
 share/WPrefs/tiff/textr.tiff
 share/WPrefs/tiff/theme.tiff
 share/WPrefs/tiff/timer0.tiff
@@ -135,7 +180,6 @@ share/WPrefs/tiff/windowfocus.tiff
 share/WPrefs/tiff/workspace.tiff
 share/WPrefs/tiff/workspacename.tiff
 share/WPrefs/tiff/xis.tiff
-share/WPrefs/xpm/
 share/WindowMaker/
 share/WindowMaker/Backgrounds/
 share/WindowMaker/Backgrounds/BlueImage.jpeg
@@ -144,7 +188,9 @@ share/WindowMaker/IconSets/Default.icons
 share/WindowMaker/Icons/
 share/WindowMaker/Icons/BitchX.tiff
 share/WindowMaker/Icons/BitchX.xpm
-share/WindowMaker/Icons/DefaultAppIcon.tiff
+share/WindowMaker/Icons/Drawer.tiff
+share/WindowMaker/Icons/Drawer.xpm
+share/WindowMaker/Icons/Ear.png
 share/WindowMaker/Icons/Ftp.png
 share/WindowMaker/Icons/GNUstep.tiff
 share/WindowMaker/Icons/GNUstep.xpm
@@ -157,10 +203,13 @@ share/WindowMaker/Icons/GNUterm.xpm
 share/WindowMaker/Icons/GreenWilber.png
 share/WindowMaker/Icons/ICQ.png
 share/WindowMaker/Icons/Jabber.png
+share/WindowMaker/Icons/Magnify.tiff
+share/WindowMaker/Icons/Magnify.xpm
+share/WindowMaker/Icons/Mouth.png
 share/WindowMaker/Icons/Mozilla.png
-share/WindowMaker/Icons/Netscape.png
 share/WindowMaker/Icons/Pen.png
 share/WindowMaker/Icons/Pencil.png
+share/WindowMaker/Icons/README
 share/WindowMaker/Icons/Real.png
 share/WindowMaker/Icons/Shell.png
 share/WindowMaker/Icons/Speaker.png
@@ -170,6 +219,7 @@ share/WindowMaker/Icons/TerminalGNUstep.
 share/WindowMaker/Icons/TerminalGNUstep.xpm
 share/WindowMaker/Icons/TerminalLinux.tiff
 share/WindowMaker/Icons/TerminalLinux.xpm
+share/WindowMaker/Icons/Wine.png
 share/WindowMaker/Icons/XChat.png
 share/WindowMaker/Icons/clip.tiff
 share/WindowMaker/Icons/clip.xpm
@@ -193,8 +243,6 @@ share/WindowMaker/Icons/real.tiff
 share/WindowMaker/Icons/real.xpm
 share/WindowMaker/Icons/sgiterm.tiff
 share/WindowMaker/Icons/sgiterm.xpm
-share/WindowMaker/Icons/sound.tiff
-share/WindowMaker/Icons/sound.xpm
 share/WindowMaker/Icons/staroffice2.tiff
 share/WindowMaker/Icons/staroffice2.xpm
 share/WindowMaker/Icons/timer.tiff
@@ -253,16 +301,18 @@ share/WindowMaker/Styles/Summer.style
 share/WindowMaker/Styles/Traditional.style
 share/WindowMaker/Styles/VioletBlue.style
 share/WindowMaker/Themes/
+share/WindowMaker/Themes/Blau.style
 share/WindowMaker/Themes/Default.style
 share/WindowMaker/Themes/OpenStep.style
 share/WindowMaker/Themes/Pastel.style
 share/WindowMaker/Themes/SteelBlueSilk.style
+share/WindowMaker/appearance.menu
 share/WindowMaker/autostart.sh
+share/WindowMaker/background.menu
 share/WindowMaker/exitscript.sh
 share/WindowMaker/menu
 share/WindowMaker/plmenu
 share/WindowMaker/wmmacros
-share/WindowMaker/xtree.dat
 share/examples/WindowMaker/
 @sample ${SYSCONFDIR}/WindowMaker/
 share/examples/WindowMaker/WMGLOBAL

Attachment: windowmaker-0.95.7_2nd-rev.diff.gz
Description: application/gunzip

Reply via email to