From 574f9547cf9a2f7105e05d706a5a149bd8fdc492 Mon Sep 17 00:00:00 2001 From: Stephan Lichtenauer Date: Tue, 11 Jul 2023 12:40:35 +0000 Subject: [PATCH] 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(+) create mode 100644 x11-wm/emwm/Makefile create mode 100644 x11-wm/emwm/distinfo create mode 100644 x11-wm/emwm/files/patch-src_WmError.h create mode 100644 x11-wm/emwm/pkg-descr create mode 100644 x11-wm/emwm/pkg-plist 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 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