aboutsummaryrefslogtreecommitdiff
path: root/x11/xterm
diff options
context:
space:
mode:
authorEmanuel Haupt <ehaupt@FreeBSD.org>2011-03-10 09:49:24 +0000
committerEmanuel Haupt <ehaupt@FreeBSD.org>2011-03-10 09:49:24 +0000
commitbde0c9fd084951366bdbfe46bbc2e3b22c47d227 (patch)
tree1aba2cf3f15834cde7bf7454a2afb1d67a2d6a67 /x11/xterm
parentbadfec8f5ea5c8400ae2533b19ebdae35eed6805 (diff)
downloadports-bde0c9fd084951366bdbfe46bbc2e3b22c47d227.tar.gz
ports-bde0c9fd084951366bdbfe46bbc2e3b22c47d227.zip
Notes
Diffstat (limited to 'x11/xterm')
-rw-r--r--x11/xterm/Makefile6
-rw-r--r--x11/xterm/pkg-plist4
2 files changed, 9 insertions, 1 deletions
diff --git a/x11/xterm/Makefile b/x11/xterm/Makefile
index c2cfdbe8394c..3c25498c7968 100644
--- a/x11/xterm/Makefile
+++ b/x11/xterm/Makefile
@@ -7,7 +7,7 @@
PORTNAME= xterm
PORTVERSION= 269
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= x11
MASTER_SITES= ftp://invisible-island.net/xterm/ \
CRITICAL
@@ -19,6 +19,7 @@ COMMENT= Terminal emulator for the X Window System
BUILD_DEPENDS= luit:${PORTSDIR}/x11/luit
USE_XORG= xaw xft
+USE_GNOME= desktopfileutils
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LIBS="-L${LOCALBASE}/lib"
@@ -54,6 +55,9 @@ post-install:
.for f in koi8rxterm resize uxterm xterm
@${CHMOD} ${BINMODE} ${PREFIX}/bin/${f}
.endfor
+ @${MKDIR} ${PREFIX}/share/applications/
+ @${INSTALL_DATA} ${WRKSRC}/xterm.desktop ${PREFIX}/share/applications/
+ @-update-desktop-database
.if defined(WITH_WIDE_CHARS)
@${CAT} ${PKGMESSAGE}
diff --git a/x11/xterm/pkg-plist b/x11/xterm/pkg-plist
index d689b888741b..75fadfd2c264 100644
--- a/x11/xterm/pkg-plist
+++ b/x11/xterm/pkg-plist
@@ -8,7 +8,11 @@ lib/X11/app-defaults/UXTerm
lib/X11/app-defaults/UXTerm-color
lib/X11/app-defaults/XTerm
lib/X11/app-defaults/XTerm-color
+share/applications/xterm.desktop
share/pixmaps/xterm-color_32x32.xpm
share/pixmaps/xterm-color_48x48.xpm
share/pixmaps/xterm_32x32.xpm
share/pixmaps/xterm_48x48.xpm
+@dirrmtry share/applications
+@exec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || /usr/bin/true
+@unexec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || /usr/bin/true