1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00

add gdm support for the xfce4-suite

Submitted By:	Thomas E. Zander <riggs@rrr.de>
This commit is contained in:
Oliver Lehmann 2004-02-21 13:00:01 +00:00
parent ea35143c90
commit de99ace52c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=101573
4 changed files with 34 additions and 1 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= xfce
PORTVERSION= 4.0.3.1
PORTREVISION= 1
CATEGORIES= x11-wm xfce
MASTER_SITES= # empty
DISTFILES= # empty
@ -25,6 +26,17 @@ RUN_DEPENDS= ${X11BASE}/lib/xfce4/mcs-plugins/ui_plugin.so:${PORTSDIR}/sysutils/
xfce4-iconbox:${PORTSDIR}/misc/xfce4-iconbox \
${X11BASE}/lib/gtk-2.0/2.2.0/engines/libxfce.so:${PORTSDIR}/x11-toolkits/gtk-xfce-engine
.if exists(${X11BASE}/bin/gdm)
WITH_GDM= yes
.endif
.if defined(WITH_GDM)
RUN_DEPENDS+= ${X11BASE}/bin/gdm:${PORTSDIR}/x11/gdm2
PLIST_SUB+= GDM=""
.else
PLIST_SUB+= GDM="@comment"
.endif
.if !defined(WITHOUT_EXTRAS)
.if !defined(WITHOUT_THEMES)
RUN_DEPENDS+= ${X11BASE}/share/xfce4/themes/BeOS/terminal.png:${PORTSDIR}/misc/xfce4-panel-themes \
@ -41,7 +53,14 @@ RUN_DEPENDS+= ${X11BASE}/lib/xfce4/panel-plugins/libmixer.so:${PORTSDIR}/audio/x
LATEST_LINK= xfce4
NO_BUILD= yes
USE_X_PREFIX= yes
do-install: # empty
post-install:
.if defined(WITH_GDM)
@${INSTALL_SCRIPT} ${FILESDIR}/XFce4 ${X11BASE}/etc/gdm/Sessions
@${INSTALL_DATA} ${FILESDIR}/XFce4.desktop ${X11BASE}/etc/dm/Sessions
.endif
.include <bsd.port.mk>

7
x11-wm/xfce4/files/XFce4 Normal file
View File

@ -0,0 +1,7 @@
#!/bin/sh
xfce-mcs-manager
xfwm4 --daemon
xftaskbar4 &
xfdesktop &
exec xfce4-panel

View File

@ -0,0 +1,3 @@
[Desktop Entry]
Name=XFce4
Exec=/usr/X11R6/etc/gdm/Sessions/XFce4

View File

@ -1 +1,5 @@
@comment this plist intentionally left empty
%%GDM%%etc/gdm/Sessions/XFce4.desktop
%%GDM%%etc/gdm/Sessions/XFce4
%%GDM%%@unexec rmdir %D/etc/gdm/Sessions 2>/dev/null || true
%%GDM%%@unexec rmdir %D/etc/gdm 2>/dev/null || true