From 9bcedf698552475fa000827e548478c6478aa576 Mon Sep 17 00:00:00 2001 From: Mateusz Piotrowski <0mp@FreeBSD.org> Date: Tue, 21 May 2019 08:01:35 +0000 Subject: Add dwm.desktop for display managers like xdm or SLiM. --- x11-wm/dwm/Makefile | 8 +++++++- x11-wm/dwm/files/dwm.desktop.in | 7 +++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 x11-wm/dwm/files/dwm.desktop.in (limited to 'x11-wm') 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 -- cgit v1.2.3