blob: 6869d83ef7882509f61e80b9dcf67904019fa6fc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
|
# Created by: James Earl <jdearl@telus.net>
# $FreeBSD$
#
PORTNAME= xfce
PORTVERSION= 4.10
PORTREVISION= 5
CATEGORIES= x11-wm xfce
MASTER_SITES= # empty
DISTFILES= # empty
EXTRACT_ONLY= # empty
MAINTAINER= xfce@FreeBSD.org
COMMENT= The "meta-port" for the Xfce 4 desktop environment
OPTIONS_DEFINE= ICONS ORAGE MOUSEPAD TERMINAL APPFINDER MIXER PRINT SQUEEZE GDM NOTIFY XPM
OPTIONS_DEFAULT= ICONS ORAGE MOUSEPAD TERMINAL APPFINDER SQUEEZE NOTIFY
ORAGE_DESC= Install the Xfce calendar application
MOUSEPAD_DESC= Install the Xfce text editor
TERMINAL_DESC= Install the Xfce terminal application
APPFINDER_DESC= Install the Xfce application finder
SQUEEZE_DESC= Install the Xfce archiver application
XPM_DESC= Install the Xfce power manager
RUN_DEPENDS= xfwm4:${PORTSDIR}/x11-wm/xfce4-wm \
xfce4-session:${PORTSDIR}/x11-wm/xfce4-session \
xfce4-panel:${PORTSDIR}/x11-wm/xfce4-panel \
xfdesktop:${PORTSDIR}/x11-wm/xfce4-desktop \
${LOCALBASE}/lib/gtk-2.0/2.10.0/engines/libxfce.so:${PORTSDIR}/x11-themes/gtk-xfce-engine \
xfsettingsd:${PORTSDIR}/sysutils/xfce4-settings
NO_BUILD= yes
LATEST_LINK= xfce4
.include <bsd.port.options.mk>
.if exists(${LOCALBASE}/sbin/gdm)
WITH_GDM= yes
.endif
.if ${PORT_OPTIONS:MGDM}
RUN_DEPENDS+= ${LOCALBASE}/sbin/gdm:${PORTSDIR}/x11/gdm
PLIST_FILES= etc/gdm/Sessions/XFce4 \
etc/dm/Sessions/XFce4.desktop
PLIST_DIRS= etc/gdm/Sessions
.endif
.if ${PORT_OPTIONS:MICONS}
RUN_DEPENDS+= icons-tango-extras>=0.1.0:${PORTSDIR}/x11-themes/icons-tango-extras
.endif
.if ${PORT_OPTIONS:MORAGE}
RUN_DEPENDS+= orage:${PORTSDIR}/deskutils/orage
.endif
.if ${PORT_OPTIONS:MMOUSEPAD}
RUN_DEPENDS+= mousepad:${PORTSDIR}/editors/mousepad
.endif
.if ${PORT_OPTIONS:MTERMINAL}
RUN_DEPENDS+= xfce4-terminal:${PORTSDIR}/x11/xfce4-terminal
.endif
.if ${PORT_OPTIONS:MAPPFINDER}
RUN_DEPENDS+= xfce4-appfinder:${PORTSDIR}/misc/xfce4-appfinder
.endif
.if ${PORT_OPTIONS:MMIXER}
RUN_DEPENDS+= ${LOCALBASE}/bin/xfce4-mixer:${PORTSDIR}/audio/xfce4-mixer
.endif
.if ${PORT_OPTIONS:MPRINT}
RUN_DEPENDS+= xfprint4:${PORTSDIR}/print/xfce4-print
.endif
.if ${PORT_OPTIONS:MSQUEEZE}
RUN_DEPENDS+= squeeze:${PORTSDIR}/archivers/squeeze
.endif
.if ${PORT_OPTIONS:MNOTIFY}
RUN_DEPENDS+= xfce4-notifyd-config:${PORTSDIR}/deskutils/xfce4-notifyd
.endif
.if ${PORT_OPTIONS:MXPM}
RUN_DEPENDS+= xfce4-power-manager:${PORTSDIR}/sysutils/xfce4-power-manager
.endif
do-install: # empty
post-install:
.if ${PORT_OPTIONS:MGDM}
@${TEST} -d ${PREFIX}/etc/gdm/Sessions || \
${MKDIR} -p ${PREFIX}/etc/gdm/Sessions
@${INSTALL_SCRIPT} ${FILESDIR}/XFce4 ${PREFIX}/etc/gdm/Sessions
@${SED} -e 's|%%PREFIX%%|${PREFIX}|' ${FILESDIR}/XFce4.desktop > ${PREFIX}/etc/dm/Sessions/XFce4.desktop
.endif
@${ECHO} "================================================================"
@${ECHO}
@${ECHO} "If you want to allow users to restart or shutdown the system,"
@${ECHO} "do not forget to add the following lines between the <config>"
@${ECHO} "tags in your PolicyKit.conf file."
@${ECHO} " ${PREFIX}/etc/PolicyKit/PolicyKit.conf
@${ECHO} ""
@${ECHO} "<match action=\"org.freedesktop.hal.power-management.shutdown\">"
@${ECHO} " <return result=\"yes\"/>"
@${ECHO} "</match>"
@${ECHO} ""
@${ECHO} "<match action=\"org.freedesktop.hal.power-management.reboot\">"
@${ECHO} " <return result=\"yes\"/>"
@${ECHO} "</match>"
@${ECHO}
@${ECHO} "Make also sure, hald_enable, dbus_enable"
@${ECHO} "is set to YES in your /etc/rc.conf"
@${ECHO}
@${ECHO} "================================================================"
.include <bsd.port.mk>
|