summaryrefslogtreecommitdiff
path: root/mk/emacs.mk
diff options
context:
space:
mode:
authoruebayasi <uebayasi@pkgsrc.org>2006-03-11 06:23:20 +0000
committeruebayasi <uebayasi@pkgsrc.org>2006-03-11 06:23:20 +0000
commit9062d0597143ec6e76aef0b94834be0325ea9215 (patch)
tree73aad43fad14a77e82ea57ff255966405820794c /mk/emacs.mk
parent1d7da8494e12f0dc5cd38a1f0b079acc2d793276 (diff)
downloadpkgsrc-9062d0597143ec6e76aef0b94834be0325ea9215.tar.gz
Export EMACS_VERSION_MAJOR and EMACS_VERSION_MINOR to packages using emacs.mk.
Diffstat (limited to 'mk/emacs.mk')
-rw-r--r--mk/emacs.mk16
1 files changed, 15 insertions, 1 deletions
diff --git a/mk/emacs.mk b/mk/emacs.mk
index dd453b8343f..b0eac9b555b 100644
--- a/mk/emacs.mk
+++ b/mk/emacs.mk
@@ -1,4 +1,4 @@
-# $NetBSD: emacs.mk,v 1.23 2005/12/05 22:07:07 rillig Exp $
+# $NetBSD: emacs.mk,v 1.24 2006/03/11 06:23:20 uebayasi Exp $
#
# This Makefile fragment handles Emacs Lisp Packages (== ELPs).
#
@@ -118,6 +118,18 @@
# Possible values:
# "", "xemacs-"
#
+# EMACS_VERSION_MAJOR
+# Description:
+# Emacs major version.
+# Possible values:
+# 20, 21, 22, <integers more than that in the future>
+#
+# EMACS_VERSION_MINOR
+# Description:
+# Emacs minor version.
+# Possible values:
+# <interger>
+#
# Variables provided in ELPs' PLIST:
#
# EMACS_ETCPREFIX
@@ -283,6 +295,8 @@ CONFLICTS+= ${PKGBASE:C|^xemacs-||}-[0-9]*
EMACS_FLAVOR= ${_EMACS_TYPE:C|nox||:C|[0-9].*||}
EMACS_BIN= ${PREFIX}/bin/${EMACS_FLAVOR}
+EMACS_VERSION_MAJOR= ${_EMACS_VERSION_MAJOR}
+EMACS_VERSION_MINOR= ${_EMACS_VERSION_MINOR}
.if ${EMACS_FLAVOR} == "emacs"
EMACS_ETCPREFIX= ${PREFIX}/share
EMACS_INFOPREFIX= ${PREFIX}/info