aboutsummaryrefslogtreecommitdiffstats
path: root/Mk/bsd.emacs.mk
diff options
context:
space:
mode:
authorshige <shige@FreeBSD.org>2000-05-08 21:09:50 +0800
committershige <shige@FreeBSD.org>2000-05-08 21:09:50 +0800
commit897567e81424fb102f3c6eae66ef913d0bb69772 (patch)
tree9fd2ce6c2ac04b82f81c38bbf971804abe9ba341 /Mk/bsd.emacs.mk
parent30f2b16514d938dc0977e41d2b4575c3ee33eadf (diff)
downloadfreebsd-ports-graphics-897567e81424fb102f3c6eae66ef913d0bb69772.tar.gz
freebsd-ports-graphics-897567e81424fb102f3c6eae66ef913d0bb69772.tar.zst
freebsd-ports-graphics-897567e81424fb102f3c6eae66ef913d0bb69772.zip
1) Change values of EMACS_PORT_NAME variables for emacs-19.x, mule-19.x,
and xemacs-19.x. These values are emacsen ports name. 2) Add EMACS_PORTSDIR variable. 3) Set BUILD_DEPENDS and RUN_DEPENDS for every emacsen.
Diffstat (limited to 'Mk/bsd.emacs.mk')
-rw-r--r--Mk/bsd.emacs.mk39
1 files changed, 31 insertions, 8 deletions
diff --git a/Mk/bsd.emacs.mk b/Mk/bsd.emacs.mk
index 2a65699a5e3..6e9f78b7381 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.1 2000-05-06 10:45:34 asami Exp $
+# $FreeBSD: /tmp/pcvs/ports/Mk/bsd.emacs.mk,v 1.2 2000-05-08 13:09:50 shige Exp $
#
# bsd.emacs.mk - 19990829 Shigeyuki Fukushima.
#
@@ -53,12 +53,14 @@ Emacs_Include_MAINTAINER= shige@FreeBSD.org
# Emacs-19.x
-.if (${EMACS_PORT_NAME} == "emacs19")
+.if (${EMACS_PORT_NAME} == "emacs")
EMACS_NAME= emacs
EMACS_VER= 19.34
EMACS_MAJOR_VER= 19
EMACS_LIBDIR?= share/${EMACS_NAME}
EMACS_LIBDIR_WITH_VER?= share/${EMACS_NAME}/${EMACS_VER}
+EMACS_PORTSDIR= ${PORTSDIR}/editors/emacs
+EMACS_COMMON_PORT= NO
# Emacs-20.x
.elif (${EMACS_PORT_NAME} == "emacs20")
@@ -67,22 +69,28 @@ EMACS_VER= 20.6
EMACS_MAJOR_VER= 20
EMACS_LIBDIR?= share/${EMACS_NAME}
EMACS_LIBDIR_WITH_VER?= share/${EMACS_NAME}/${EMACS_VER}
+EMACS_PORTSDIR= ${PORTSDIR}/editors/emacs20
+EMACS_COMMON_PORT= NO
# Mule-19.x
-.elif (${EMACS_PORT_NAME} == "mule19")
+.elif (${EMACS_PORT_NAME} == "mule")
EMACS_NAME= mule
EMACS_VER= 19.34
EMACS_MAJOR_VER= 19
EMACS_LIBDIR?= share/${EMACS_NAME}
EMACS_LIBDIR_WITH_VER?= share/${EMACS_NAME}/${EMACS_VER}
+EMACS_PORTSDIR= ${PORTSDIR}/editors/mule
+EMACS_COMMON_PORT= YES
# XEmacs-19.x
-.elif (${EMACS_PORT_NAME} == "xemacs19")
+.elif (${EMACS_PORT_NAME} == "xemacs")
EMACS_NAME= xemacs
EMACS_VER= 19.16
EMACS_MAJOR_VER= 19
EMACS_LIBDIR?= lib/${EMACS_NAME}
EMACS_LIBDIR_WITH_VER?= lib/${EMACS_NAME}-${EMACS_VER}
+EMACS_PORTSDIR= ${PORTSDIR}/editors/xemacs
+EMACS_COMMON_PORT= NO
# XEmacs-20.x
.elif (${EMACS_PORT_NAME} == "xemacs20")
@@ -91,6 +99,8 @@ EMACS_VER= 20.4
EMACS_MAJOR_VER= 20
EMACS_LIBDIR?= lib/${EMACS_NAME}
EMACS_LIBDIR_WITH_VER?= lib/${EMACS_NAME}-${EMACS_VER}
+EMACS_PORTSDIR= ${PORTSDIR}/editors/xemacs20
+EMACS_COMMON_PORT= NO
# XEmacs-21.x
.elif (${EMACS_PORT_NAME} == "xemacs21")
@@ -99,6 +109,8 @@ EMACS_VER= 21.1.9
EMACS_MAJOR_VER= 21
EMACS_LIBDIR?= lib/${EMACS_NAME}
EMACS_LIBDIR_WITH_VER?= lib/${EMACS_NAME}-${EMACS_VER}
+EMACS_PORTSDIR= ${PORTSDIR}/editors/xemacs21
+EMACS_COMMON_PORT= NO
# XEmacs-21.x with Mule
.elif (${EMACS_PORT_NAME} == "xemacs21-mule")
@@ -107,12 +119,15 @@ EMACS_VER= 21.1.9
EMACS_MAJOR_VER= 21
EMACS_LIBDIR?= lib/${EMACS_NAME}
EMACS_LIBDIR_WITH_VER?= lib/${EMACS_NAME}-${EMACS_VER}
+EMACS_PORTSDIR= ${PORTSDIR}/editors/xemacs21-mule
+EMACS_COMMON_PORT= YES
+
.else
.BEGIN:
@${ECHO} "Error: Bad value of EMACS_PORT_NAME: ${EMACS_PORT_NAME}."
@${ECHO} "Valid values are:"
- @${ECHO} " Emacs family: emacs19 mule19 emacs20"
- @${ECHO} " XEmacs family: xemacs19 xemacs20 xemacs21 xemacs21-mule"
+ @${ECHO} " Emacs family: emacs mule emacs20"
+ @${ECHO} " XEmacs family: xemacs xemacs20 xemacs21 xemacs21-mule"
@${FALSE}
.endif
@@ -122,8 +137,16 @@ EMACS_LIBDIR_WITH_VER?= lib/${EMACS_NAME}-${EMACS_VER}
#
# emacsen command-line filename
-EMACS_CMD?= ${PREFIX}/bin/${EMACS_NAME}-${EMACS_VER}
+EMACS_CMD?= ${LOCALBASE}/bin/${EMACS_NAME}-${EMACS_VER}
-# emacsen libdir without ${PREFIX}
+# emacsen libdir without ${LOCALBASE}
EMACS_SITE_LISPDIR?= ${EMACS_LIBDIR}/site-lisp
EMACS_VERSION_SITE_LISPDIR?= ${EMACS_LIBDIR_WITH_VER}/site-lisp
+
+# build&run-dependency
+BUILD_DEPENDS+= ${EMACS_CMD}:${EMACS_PORTSDIR}
+.if defined(EMACS_COMMON_PORT) && (${EMACS_COMMON_PORT} == "YES")
+RUN_DEPENDS+= ${EMACS_CMD}:${EMACS_PORTSDIR}-common
+.else
+RUN_DEPENDS+= ${EMACS_CMD}:${EMACS_PORTSDIR}
+.endif