aboutsummaryrefslogtreecommitdiffstats
path: root/x11-wm
diff options
context:
space:
mode:
authorzeising <zeising@FreeBSD.org>2018-01-31 01:28:34 +0800
committerzeising <zeising@FreeBSD.org>2018-01-31 01:28:34 +0800
commitd4b3731e8b3931cca5f8d14a419daa2119db3297 (patch)
treec5bf43269de22ba40ef9b014af2f23ac99b8ec61 /x11-wm
parent9b469c2e153f15b17290a9220fdd0a36c008603e (diff)
downloadfreebsd-ports-gnome-d4b3731e8b3931cca5f8d14a419daa2119db3297.tar.gz
freebsd-ports-gnome-d4b3731e8b3931cca5f8d14a419daa2119db3297.tar.zst
freebsd-ports-gnome-d4b3731e8b3931cca5f8d14a419daa2119db3297.zip
Add a configuration knob to allow the usage of the super key instead of alt
as modifier. Strip binary, fix whitespace. PR: 225227 Submitted by: Mateusz Piotrowski Approved by: maintainer timeout (2 weeks)
Diffstat (limited to 'x11-wm')
-rw-r--r--x11-wm/dwm/Makefile10
-rw-r--r--x11-wm/dwm/files/extra-patch-config.def.h11
2 files changed, 19 insertions, 2 deletions
diff --git a/x11-wm/dwm/Makefile b/x11-wm/dwm/Makefile
index d2d1a316a947..dbc7a853f7a6 100644
--- a/x11-wm/dwm/Makefile
+++ b/x11-wm/dwm/Makefile
@@ -3,10 +3,11 @@
PORTNAME= dwm
PORTVERSION= 6.1
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= x11-wm
MASTER_SITES= http://dl.suckless.org/${PORTNAME}/ \
http://schot.a-eskwadraat.nl/files/
+
PATCH_SITES= http://dwm.suckless.org/patches/
MAINTAINER= schot@a-eskwadraat.nl
@@ -17,12 +18,16 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig
-OPTIONS_DEFINE= XINERAMA DOCS
+OPTIONS_DEFINE= XINERAMA DOCS SUPERASMODKEY
OPTIONS_DEFAULT=XINERAMA
+SUPERASMODKEY_DESC= Use Super instead of Alt for the dwm mod key
+
XINERAMA_USE= XORG=xinerama
XINERAMA_MAKE_ARGS_OFF= XINERAMAFLAGS= XINERAMALIBS=
+SUPERASMODKEY_EXTRA_PATCHES= ${PATCHDIR}/extra-patch-config.def.h
+
USE_XORG= x11 xft
MAKE_ARGS= CC="${CC}" PREFIX="${PREFIX}" MANPREFIX="${MANPREFIX}/man" \
X11INC="${LOCALBASE}/include" X11LIB="${LOCALBASE}/lib"
@@ -45,5 +50,6 @@ post-extract:
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/dwm
.include <bsd.port.mk>
diff --git a/x11-wm/dwm/files/extra-patch-config.def.h b/x11-wm/dwm/files/extra-patch-config.def.h
new file mode 100644
index 000000000000..ba8f3040261e
--- /dev/null
+++ b/x11-wm/dwm/files/extra-patch-config.def.h
@@ -0,0 +1,11 @@
+--- config.def.h.orig 2018-01-16 16:05:12 UTC
++++ config.def.h
+@@ -42,7 +42,7 @@ static const Layout layouts[] = {
+ };
+
+ /* key definitions */
+-#define MODKEY Mod1Mask
++#define MODKEY Mod4Mask
+ #define TAGKEYS(KEY,TAG) \
+ { MODKEY, KEY, view, {.ui = 1 << TAG} }, \
+ { MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \