diff options
author | oliver <oliver@FreeBSD.org> | 2006-11-15 02:13:21 +0800 |
---|---|---|
committer | oliver <oliver@FreeBSD.org> | 2006-11-15 02:13:21 +0800 |
commit | e8ae8598bae4b075bae445b521e39c807b3c4745 (patch) | |
tree | eded9975c91f959ba1d38c4b22153afdaf0517f0 /x11-wm/xfce4 | |
parent | 1506855a4eb180202a7bec9ea892625d2ea432ba (diff) | |
download | freebsd-ports-gnome-e8ae8598bae4b075bae445b521e39c807b3c4745.tar.gz freebsd-ports-gnome-e8ae8598bae4b075bae445b521e39c807b3c4745.tar.zst freebsd-ports-gnome-e8ae8598bae4b075bae445b521e39c807b3c4745.zip |
replace "/usr/X11R6" in Xfce.desktop by %%PREFIX%% and parse that during the
installation
Diffstat (limited to 'x11-wm/xfce4')
-rw-r--r-- | x11-wm/xfce4/Makefile | 10 | ||||
-rw-r--r-- | x11-wm/xfce4/files/XFce4.desktop | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/x11-wm/xfce4/Makefile b/x11-wm/xfce4/Makefile index 5073527b830e..4be767e66757 100644 --- a/x11-wm/xfce4/Makefile +++ b/x11-wm/xfce4/Makefile @@ -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> diff --git a/x11-wm/xfce4/files/XFce4.desktop b/x11-wm/xfce4/files/XFce4.desktop index 8fb3ee397b7a..b46ed9070a50 100644 --- a/x11-wm/xfce4/files/XFce4.desktop +++ b/x11-wm/xfce4/files/XFce4.desktop @@ -1,3 +1,3 @@ [Desktop Entry] Name=XFce4 -Exec=/usr/X11R6/etc/gdm/Sessions/XFce4 +Exec=%%PREFIX%%/etc/gdm/Sessions/XFce4 |