summaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authoruebayasi <uebayasi@pkgsrc.org>2008-10-13 08:07:02 +0000
committeruebayasi <uebayasi@pkgsrc.org>2008-10-13 08:07:02 +0000
commit8c349b6e46d4b1edb8758b1ed4759ccadca3cd88 (patch)
tree16756ed07fe22b8a218a2659cafb679328f30088 /editors
parentb446b30d52bd9d5bee247f9248ad0c937aa6861e (diff)
downloadpkgsrc-8c349b6e46d4b1edb8758b1ed4759ccadca3cd88.tar.gz
Introduce EMACS_BUILDLINK to decide if Emacs lisp file wrappers are really
created or not. Packages that include other ELP's buildlink3.mk must define EMACS_BUILDLINK. Other packages don't create wrappers, which reduces build time a lot.
Diffstat (limited to 'editors')
-rw-r--r--editors/emacs/modules.mk14
1 files changed, 13 insertions, 1 deletions
diff --git a/editors/emacs/modules.mk b/editors/emacs/modules.mk
index ef8acdebe5c..9461332ba1d 100644
--- a/editors/emacs/modules.mk
+++ b/editors/emacs/modules.mk
@@ -1,4 +1,4 @@
-# $NetBSD: modules.mk,v 1.1 2008/10/11 09:31:56 uebayasi Exp $
+# $NetBSD: modules.mk,v 1.2 2008/10/13 08:07:02 uebayasi Exp $
#
# This Makefile fragment handles Emacs Lisp Packages (== ELPs).
#
@@ -63,6 +63,16 @@
# Default value:
# emacs21, emacs21nox, emacs22, emacs22nox, emacs20, xemacs215, xemacs215nox, xemacs214, xemacs214nox
#
+# EMACS_BUILDLINK
+# Description:
+# Whether create buildlink directory of *.el / *.elc
+# files. ELPs which include other ELP's buildlink3.mk
+# must define this value.
+# Possible values:
+# <defined>, <undefined>
+# Default value:
+# <undefined>
+#
# Variables provided for ELPs:
#
# EMACS_BIN
@@ -309,9 +319,11 @@ PRINT_PLIST_AWK+= { gsub(/${EMACS_LISPPREFIX:S|${PREFIX}/||:S|/|\\/|g}/, \
# Build environment (buildlink3)
#
+.if defined(EMACS_BUILDLINK)
_EMACS_DIR= ${BUILDLINK_DIR}/share/emacs
ALL_ENV+= EMACSLOADPATH=${_EMACS_DIR}/${_EMACS_VERSION_MAJOR}.${_EMACS_VERSION_MINOR}/lisp:${_EMACS_DIR}/site-lisp
.include "${_EMACS_PKGDIR}/buildlink3.mk"
+.endif
.endif # EMACS_MK