aboutsummaryrefslogtreecommitdiffstats
path: root/x11-fm/rox-session/Makefile
diff options
context:
space:
mode:
authorolgeni <olgeni@FreeBSD.org>2006-12-12 20:33:37 +0800
committerolgeni <olgeni@FreeBSD.org>2006-12-12 20:33:37 +0800
commitbb9d8fbb2b009c82c7f54121199d27b728faa609 (patch)
tree360b7aa367f201ad67c1ccf6c49232b2ab4a0752 /x11-fm/rox-session/Makefile
parent548eb0991d577459958d74e7fec67a98af31e1e0 (diff)
downloadfreebsd-ports-gnome-bb9d8fbb2b009c82c7f54121199d27b728faa609.tar.gz
freebsd-ports-gnome-bb9d8fbb2b009c82c7f54121199d27b728faa609.tar.zst
freebsd-ports-gnome-bb9d8fbb2b009c82c7f54121199d27b728faa609.zip
Add proper gdm detection using code from x11/xfce4.
The port installation would fail if you did not have the etc/dm/Sessions directory. Noticed by: rafan
Diffstat (limited to 'x11-fm/rox-session/Makefile')
-rw-r--r--x11-fm/rox-session/Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/x11-fm/rox-session/Makefile b/x11-fm/rox-session/Makefile
index b1d84dcb4114..dab57c48da82 100644
--- a/x11-fm/rox-session/Makefile
+++ b/x11-fm/rox-session/Makefile
@@ -23,6 +23,17 @@ SUB_FILES= rox-session rox.desktop
.include <bsd.port.pre.mk>
+.if exists(${LOCALBASE}/sbin/gdm)
+WITH_GDM= yes
+.endif
+
+.if defined(WITH_GDM)
+RUN_DEPENDS+= ${LOCALBASE}/sbin/gdm:${PORTSDIR}/x11/gdm
+PLIST_SUB+= GDM=""
+.else
+PLIST_SUB+= GDM="@comment "
+.endif
+
post-patch:
@${FIND} ${WRKSRC} -name *.orig | ${XARGS} ${RM}
@@ -35,6 +46,8 @@ do-install:
@${CP} -r ${WRKSRC}/ROX-Session ${PREFIX}/apps/
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/apps/ROX-Session
@${INSTALL_SCRIPT} ${WRKDIR}/rox-session ${PREFIX}/sbin
+.if defined(WITH_GDM)
@${INSTALL_DATA} ${WRKDIR}/rox.desktop ${PREFIX}/etc/dm/Sessions
+.endif
.include <bsd.port.post.mk>