svn commit: r460417 - in head/x11-wm/dwm: . files
Niclas Zeising
zeising at FreeBSD.org
Tue Jan 30 17:28:35 UTC 2018
Author: zeising
Date: Tue Jan 30 17:28:34 2018
New Revision: 460417
URL: https://svnweb.freebsd.org/changeset/ports/460417
Log:
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)
Added:
head/x11-wm/dwm/files/extra-patch-config.def.h (contents, props changed)
Modified:
head/x11-wm/dwm/Makefile
Modified: head/x11-wm/dwm/Makefile
==============================================================================
--- head/x11-wm/dwm/Makefile Tue Jan 30 17:20:13 2018 (r460416)
+++ head/x11-wm/dwm/Makefile Tue Jan 30 17:28:34 2018 (r460417)
@@ -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 at 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>
Added: head/x11-wm/dwm/files/extra-patch-config.def.h
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/x11-wm/dwm/files/extra-patch-config.def.h Tue Jan 30 17:28:34 2018 (r460417)
@@ -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} }, \
More information about the svn-ports-all
mailing list