aboutsummaryrefslogtreecommitdiff
path: root/x11-wm
diff options
context:
space:
mode:
authorMateusz Piotrowski <0mp@FreeBSD.org>2019-05-21 08:01:35 +0000
committerMateusz Piotrowski <0mp@FreeBSD.org>2019-05-21 08:01:35 +0000
commit9bcedf698552475fa000827e548478c6478aa576 (patch)
treeb904675276a970604b0026246e1c48faa503d695 /x11-wm
parent21d61aed7f8ed7810d5562126ec76ea879508771 (diff)
downloadports-9bcedf698552475fa000827e548478c6478aa576.tar.gz
ports-9bcedf698552475fa000827e548478c6478aa576.zip
Add dwm.desktop for display managers like xdm or SLiM.
Notes
Notes: svn path=/head/; revision=502192
Diffstat (limited to 'x11-wm')
-rw-r--r--x11-wm/dwm/Makefile8
-rw-r--r--x11-wm/dwm/files/dwm.desktop.in7
2 files changed, 14 insertions, 1 deletions
diff --git a/x11-wm/dwm/Makefile b/x11-wm/dwm/Makefile
index b7d275937293..e8869fb715da 100644
--- a/x11-wm/dwm/Makefile
+++ b/x11-wm/dwm/Makefile
@@ -3,6 +3,7 @@
PORTNAME= dwm
DISTVERSION= 6.2
+PORTREVISION= 1
CATEGORIES= x11-wm
MASTER_SITES= http://dl.suckless.org/${PORTNAME}/
@@ -27,8 +28,11 @@ MAKE_ARGS= CC="${CC}" \
X11INC="${LOCALBASE}/include" \
X11LIB="${LOCALBASE}/lib"
+SUB_FILES= dwm.desktop
+SUB_LIST= COMMENT="${COMMENT}"
PLIST_FILES= bin/dwm \
- man/man1/dwm.1.gz
+ man/man1/dwm.1.gz \
+ share/xsessions/dwm.desktop
PORTDOCS= README
OPTIONS_DEFINE= DMENUANDSTERM DOCS SUPERASMODKEY VOLUMECONTROL XINERAMA
@@ -67,6 +71,8 @@ post-configure:
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/dwm
+ @${MKDIR} ${STAGEDIR}${PREFIX}/share/xsessions
+ ${INSTALL_DATA} ${WRKDIR}/dwm.desktop ${STAGEDIR}${PREFIX}/share/xsessions
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
diff --git a/x11-wm/dwm/files/dwm.desktop.in b/x11-wm/dwm/files/dwm.desktop.in
new file mode 100644
index 000000000000..3b05420b7b74
--- /dev/null
+++ b/x11-wm/dwm/files/dwm.desktop.in
@@ -0,0 +1,7 @@
+# $FreeBSD$
+[Desktop Entry]
+Name=dwm
+Comment=%%COMMENT%%
+TryExec=dwm
+Exec=dwm
+Type=Application