summaryrefslogtreecommitdiff
path: root/editors/xemacs-current/Makefile
diff options
context:
space:
mode:
authorhauke <hauke@pkgsrc.org>2020-09-24 11:51:47 +0000
committerhauke <hauke@pkgsrc.org>2020-09-24 11:51:47 +0000
commit4f81a37d314c12bb18839acf8aa3375d28693c59 (patch)
tree249a97a57e2ba10376af7dc2eb64b7ce0605b75f /editors/xemacs-current/Makefile
parent89b8a6b70c7900ebc64ca3e5593035dc9d7d00e6 (diff)
downloadpkgsrc-4f81a37d314c12bb18839acf8aa3375d28693c59.tar.gz
editors/xemacs{,-current} - Install an xemacs.desktop file, which makes
XEmacs more easily available to X11 desktop applications.
Diffstat (limited to 'editors/xemacs-current/Makefile')
-rw-r--r--editors/xemacs-current/Makefile17
1 files changed, 15 insertions, 2 deletions
diff --git a/editors/xemacs-current/Makefile b/editors/xemacs-current/Makefile
index d841ac2c874..a2637269b6b 100644
--- a/editors/xemacs-current/Makefile
+++ b/editors/xemacs-current/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.104 2020/08/31 18:09:26 wiz Exp $
+# $NetBSD: Makefile,v 1.105 2020/09/24 11:51:48 hauke Exp $
PKGNAME= ${DISTNAME}
-PKGREVISION= 12
+PKGREVISION= 13
COMMENT= *BETA* XEmacs text editor version ${PKGVERSION_NOREV}
# extra options for x11 support, not for sharing with xemacs-current-nox11
@@ -11,5 +11,18 @@ PKG_SUPPORTED_OPTIONS+= x11 xft xface
PKG_SUGGESTED_OPTIONS+= x11
.include "options.mk"
+
+LIBDIR= ${PREFIX}/lib/${DISTNAME}
+
+SUBST_CLASSES+= desktop-file
+SUBST_STAGE.desktop-file= pre-configure
+SUBST_MESSAGE.desktop-file= Fixing paths in XEmacs desktop file
+SUBST_VARS.desktop-file= PREFIX LIBDIR
+SUBST_FILES.desktop-file= etc/xemacs.desktop
+
+INSTALLATION_DIRS+= share/applications
+
.include "Makefile.common"
+
+.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../mk/bsd.pkg.mk"