git: 574f9547cf9a - main - x11-wm/emwm: Enhanced Motif Window Manager

From: Robert Clausecker <fuz_at_FreeBSD.org>
Date: Tue, 11 Jul 2023 22:08:45 UTC
The branch main has been updated by fuz:

URL: https://cgit.FreeBSD.org/ports/commit/?id=574f9547cf9a2f7105e05d706a5a149bd8fdc492

commit 574f9547cf9a2f7105e05d706a5a149bd8fdc492
Author:     Stephan Lichtenauer <stephan@lichtenauer.co.za>
AuthorDate: 2023-07-11 12:40:35 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2023-07-11 22:07:31 +0000

    x11-wm/emwm: Enhanced Motif Window Manager
    
    EMWM is a fork of the Motif Window Manager with fixes and enhancements. It
    provides compatibility with current xorg extensions and applications, without
    changing the way the window manager looks and behaves. This includes support for
    multi-monitor setups trough Xinerama/Xrandr, UFT-8 support with Xft fonts, and
    overall better compatibility with software that requires Extended Window Manager
    Hints.
    
    WWW: https://fastestcode.org/emwm.html
    
    PR:             271954
---
 x11-wm/Makefile                       |  1 +
 x11-wm/emwm/Makefile                  | 26 ++++++++++++++++++++++++++
 x11-wm/emwm/distinfo                  |  3 +++
 x11-wm/emwm/files/patch-src_WmError.h | 11 +++++++++++
 x11-wm/emwm/pkg-descr                 |  6 ++++++
 x11-wm/emwm/pkg-plist                 |  7 +++++++
 6 files changed, 54 insertions(+)

diff --git a/x11-wm/Makefile b/x11-wm/Makefile
index 5c2f08654ec0..003d331b0f7e 100644
--- a/x11-wm/Makefile
+++ b/x11-wm/Makefile
@@ -33,6 +33,7 @@
     SUBDIR += e16-docs
     SUBDIR += echinus
     SUBDIR += emerald
+    SUBDIR += emwm
     SUBDIR += enlightenment
     SUBDIR += epplets
     SUBDIR += euclid-wm
diff --git a/x11-wm/emwm/Makefile b/x11-wm/emwm/Makefile
new file mode 100644
index 000000000000..9650d7e4144b
--- /dev/null
+++ b/x11-wm/emwm/Makefile
@@ -0,0 +1,26 @@
+PORTNAME=	emwm
+DISTVERSION=	1.1
+CATEGORIES=	x11-wm
+MASTER_SITES=	https://fastestcode.org/dl/
+DISTNAME=	emwm-src-${DISTVERSION}
+
+MAINTAINER=	stephan@lichtenauer.co.za
+COMMENT=	Enhanced Motif Window Manager
+WWW=		https://fastestcode.org/emwm.html
+
+LICENSE=        LGPL21+
+LICENSE_FILE=   ${WRKSRC}/COPYING
+
+USES=		tar:xz groff:build motif xorg
+USE_XORG=	x11 xext xinerama xrandr xt
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/src/emwm ${STAGEDIR}${PREFIX}/bin/emwm
+	${MKDIR} ${STAGEDIR}${PREFIX}/man/man1
+	${INSTALL_MAN} ${WRKSRC}/src/emwm.1 ${STAGEDIR}${PREFIX}/man/man1/emwm.1
+	${MKDIR} ${STAGEDIR}${PREFIX}/etc/X11
+	${INSTALL_DATA} ${WRKSRC}/src/system.emwmrc ${STAGEDIR}${PREFIX}/etc/X11/system.emwmrc
+	${MKDIR} ${STAGEDIR}${PREFIX}/etc/X11/app-defaults
+	${INSTALL_DATA} ${WRKSRC}/src/Emwm.ad ${STAGEDIR}${PREFIX}/etc/X11/app-defaults/Emwm
+
+.include <bsd.port.mk>
diff --git a/x11-wm/emwm/distinfo b/x11-wm/emwm/distinfo
new file mode 100644
index 000000000000..e221d5cf0b2a
--- /dev/null
+++ b/x11-wm/emwm/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1686243718
+SHA256 (emwm-src-1.1.tar.xz) = ee585eb96257213752692f6b0c63ea3cbdb8676288191e52c491283710326aee
+SIZE (emwm-src-1.1.tar.xz) = 330452
diff --git a/x11-wm/emwm/files/patch-src_WmError.h b/x11-wm/emwm/files/patch-src_WmError.h
new file mode 100644
index 000000000000..982240781529
--- /dev/null
+++ b/x11-wm/emwm/files/patch-src_WmError.h
@@ -0,0 +1,11 @@
+--- src/WmError.h.orig	2023-07-10 10:58:21 UTC
++++ src/WmError.h
+@@ -29,7 +29,7 @@ extern void PrintFormatted(char *f, char *s0, char *s1
+ extern void WmInitErrorHandler (Display *display);
+ extern int WmXErrorHandler (Display *display, XErrorEvent *errorEvent);
+ extern int WmXIOErrorHandler (Display *display);
+-extern void WmXtErrorHandler (char *message);
++extern void WmXtErrorHandler (char *message) __attribute__((noreturn));
+ extern void WmXtWarningHandler (char *message);
+ extern void Warning (char *message);
+ #ifndef NO_MESSAGE_CATALOG
diff --git a/x11-wm/emwm/pkg-descr b/x11-wm/emwm/pkg-descr
new file mode 100644
index 000000000000..695d69456295
--- /dev/null
+++ b/x11-wm/emwm/pkg-descr
@@ -0,0 +1,6 @@
+EMWM is a fork of the Motif Window Manager with fixes and enhancements. It
+provides compatibility with current xorg extensions and applications, without
+changing the way the window manager looks and behaves. This includes support for
+multi-monitor setups trough Xinerama/Xrandr, UFT-8 support with Xft fonts, and
+overall better compatibility with software that requires Extended Window Manager
+Hints.
diff --git a/x11-wm/emwm/pkg-plist b/x11-wm/emwm/pkg-plist
new file mode 100644
index 000000000000..f93e37fe7c6b
--- /dev/null
+++ b/x11-wm/emwm/pkg-plist
@@ -0,0 +1,7 @@
+@dir man/man1
+@dir etc/X11/app-defaults
+@dir etc/X11
+bin/emwm
+etc/X11/system.emwmrc
+etc/X11/app-defaults/Emwm
+man/man1/emwm.1.gz