aboutsummaryrefslogtreecommitdiff
path: root/x11-wm/xfce4/Makefile
blob: 2369f1997afe8015a491a0bb4b1ffba8f729cd94 (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
# New ports collection makefile for:	xfce4
# Date created:		9 June 2003
# Whom:			James Earl <jdearl@telus.net>
#
# $FreeBSD$
#

PORTNAME=	xfce
PORTVERSION=	4.6.1
CATEGORIES=	x11-wm xfce
MASTER_SITES=	# empty
DISTFILES=	# empty
EXTRACT_ONLY=	# empty

MAINTAINER=	oliver@FreeBSD.org
COMMENT=	The "meta-port" for the XFce 4 desktop environment

OPTIONS=	ICONS		"Install a full icon theme"		on  \
		ORAGE		"Install the Xfce calendar application"	on  \
		MOUSEPAD	"Install the Xfce text editor"		on  \
		TERMINAL	"Install the Xfce terminal application"	on  \
		APPFINDER	"Install the Xfce application finder"	on  \
		MIXER		"Install the Xfce mixer application"	on  \
		PRINT		"Install the Xfce printing helper"	on  \
		GDM		"Install the login manager gdm"		off

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 \
		startxfce4:${PORTSDIR}/sysutils/xfce4-utils \
		${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.pre.mk>

.if exists(${LOCALBASE}/sbin/gdm)
WITH_GDM=	yes
.endif

.if !defined(WITH_GDM)
PLIST_SUB+=	GDM="@comment "
.else
RUN_DEPENDS+=	${LOCALBASE}/sbin/gdm:${PORTSDIR}/x11/gdm
PLIST_SUB+=	GDM=""
.endif

.if !defined(WITHOUT_ICONS)
RUN_DEPENDS+=	${LOCALBASE}/share/themes/Xfce/xfwm4/themerc:${PORTSDIR}/misc/xfce4-wm-themes \
		icons-tango-extras>=0.1.0:${PORTSDIR}/x11-themes/icons-tango-extras
.endif

.if !defined(WITHOUT_ORAGE)
RUN_DEPENDS+=	orage:${PORTSDIR}/deskutils/orage
.endif

.if !defined(WITHOUT_MOUSEPAD)
RUN_DEPENDS+=	mousepad:${PORTSDIR}/editors/mousepad
.endif

.if !defined(WITHOUT_TERMINAL)
RUN_DEPENDS+=	Terminal:${PORTSDIR}/x11/Terminal
.endif

.if !defined(WITHOUT_APPFINDER)
RUN_DEPENDS+=	xfce4-appfinder:${PORTSDIR}/misc/xfce4-appfinder
.endif

.if !defined(WITHOUT_MIXER)
RUN_DEPENDS+=	${LOCALBASE}/bin/xfce4-mixer:${PORTSDIR}/audio/xfce4-mixer
.endif

.if !defined(WITHOUT_PRINT)
RUN_DEPENDS+=	xfprint4:${PORTSDIR}/print/xfce4-print
.endif

do-install:	# empty

post-install:
.if defined(WITH_GDM)
	@${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.post.mk>