summaryrefslogtreecommitdiff
path: root/Mk/bsd.emacs.mk
diff options
context:
space:
mode:
authorShigeyuki Fukushima <shige@FreeBSD.org>2000-07-19 08:01:49 +0000
committerShigeyuki Fukushima <shige@FreeBSD.org>2000-07-19 08:01:49 +0000
commit4d290cbd55d1c024ebf1711f948f407fecae4568 (patch)
tree9b748c8124d64da06ffd389367c8dc73878a60bd /Mk/bsd.emacs.mk
parentUpdate to 2.11. (diff)
Add user configuration variables: EMACS_NO_BUILD_DEPENDS, EMACS_NO_RUN_DEPENDS.
EMACS_NO_BUILD_DEPENDS, if set "YES" to this variable, port does not build-depend on EMACS_PORT_NAME's emacsen. EMACS_NO_RUN_DEPENDS, if set "YES" to this variable, port does not run-depend on EMACS_PORT_NAME's emacsen.
Notes
Notes: svn path=/head/; revision=30830
Diffstat (limited to 'Mk/bsd.emacs.mk')
-rw-r--r--Mk/bsd.emacs.mk16
1 files changed, 15 insertions, 1 deletions
diff --git a/Mk/bsd.emacs.mk b/Mk/bsd.emacs.mk
index d417cd6b30f3..1aaf52eff67c 100644
--- a/Mk/bsd.emacs.mk
+++ b/Mk/bsd.emacs.mk
@@ -1,5 +1,5 @@
#
-# $FreeBSD: /tmp/pcvs/ports/Mk/bsd.emacs.mk,v 1.6 2000-07-12 15:18:32 shige Exp $
+# $FreeBSD: /tmp/pcvs/ports/Mk/bsd.emacs.mk,v 1.7 2000-07-19 08:01:49 shige Exp $
#
# bsd.emacs.mk - 19990829 Shigeyuki Fukushima.
#
@@ -50,6 +50,14 @@ Emacs_Include_MAINTAINER= shige@FreeBSD.org
# ex.) "share/emacs/20.6/site-lisp" when emacsen is a
# emacs-20.6.
#
+# EMACS_NO_BUILD_DEPENDS:
+# If set "YES" to this variable, port does not
+# build-depend on EMACS_PORT_NAME's emacsen.
+#
+# EMACS_NO_RUN_DEPENDS:
+# If set "YES" to this variable, port does not
+# run-depend on EMACS_PORT_NAME's emacsen.
+#
# Emacs-19.x
@@ -151,12 +159,18 @@ EMACS_SITE_LISPDIR?= ${EMACS_LIBDIR}/site-lisp
EMACS_VERSION_SITE_LISPDIR?= ${EMACS_LIBDIR_WITH_VER}/site-lisp
# build&run-dependency
+EMACS_NO_BUILD_DEPENDS?= NO
+EMACS_NO_RUN_DEPENDS?= NO
+.if (${EMACS_NO_BUILD_DEPENDS} == "NO")
BUILD_DEPENDS+= ${EMACS_CMD}:${EMACS_PORTSDIR}
+.endif
+.if (${EMACS_NO_RUN_DEPENDS} == "NO")
.if defined(EMACS_COMMON_PORT) && (${EMACS_COMMON_PORT} == "YES")
RUN_DEPENDS+= ${EMACS_CMD}:${EMACS_PORTSDIR}-common
.else
RUN_DEPENDS+= ${EMACS_CMD}:${EMACS_PORTSDIR}
.endif
+.endif
# environments for build
MAKE_FLAGS+= EMACS=${EMACS_CMD} XEMACS=${EMACS_CMD}