summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--editors/emacs-nox11/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/editors/emacs-nox11/Makefile b/editors/emacs-nox11/Makefile
index e7cd9d64def..1aac32d90b3 100644
--- a/editors/emacs-nox11/Makefile
+++ b/editors/emacs-nox11/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.31 2010/06/01 21:47:00 minskim Exp $
+# $NetBSD: Makefile,v 1.32 2011/12/11 21:02:29 marino Exp $
PKGNAME= ${DISTNAME:S/-/-nox11-/}
@@ -15,4 +15,11 @@ CONFIGURE_ARGS+= --without-dbus --without-m17n-flt --without-otf \
--without-gif --without-jpeg --without-png \
--without-tiff --without-xpm
+## Update emacs.desktop to launch emacs-nox11 in Terminal
+SUBST_CLASSES+= term
+SUBST_STAGE.term= post-patch
+SUBST_MESSAGE.term= Enabling desktop launch in Terminal
+SUBST_FILES.term= etc/emacs.desktop
+SUBST_SED.term= -e 's,^Terminal=.*,Terminal=true,'
+
.include "../../mk/bsd.pkg.mk"