replace "/usr/X11R6" in Xfce.desktop by %%PREFIX%% and parse that during the

installation
This commit is contained in:
Oliver Lehmann 2006-11-14 18:13:21 +00:00
parent f132db2204
commit c095fba1a2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=177273
2 changed files with 6 additions and 6 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= xfce
PORTVERSION= 4.2.3.2
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= x11-wm xfce
MASTER_SITES= # empty
DISTFILES= # empty
@ -60,10 +60,10 @@ do-install: # empty
post-install:
.if defined(WITH_GDM)
@${TEST} -d ${LOCALBASE}/etc/gdm/Sessions || \
${MKDIR} -p ${LOCALBASE}/etc/gdm/Sessions
@${INSTALL_SCRIPT} ${FILESDIR}/XFce4 ${LOCALBASE}/etc/gdm/Sessions
@${INSTALL_DATA} ${FILESDIR}/XFce4.desktop ${LOCALBASE}/etc/dm/Sessions
@${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
.endif
.include <bsd.port.mk>

View File

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