2000-05-06 06:45:35 -04:00
|
|
|
#
|
2001-02-05 02:51:50 -05:00
|
|
|
# $FreeBSD: /tmp/pcvs/ports/Mk/bsd.emacs.mk,v 1.13 2001-02-05 07:51:50 shige Exp $
|
2000-05-06 06:45:35 -04:00
|
|
|
#
|
|
|
|
# bsd.emacs.mk - 19990829 Shigeyuki Fukushima.
|
|
|
|
#
|
|
|
|
|
|
|
|
Emacs_Include= bsd.emacs.mk
|
|
|
|
Emacs_Include_MAINTAINER= shige@FreeBSD.org
|
|
|
|
|
|
|
|
#
|
|
|
|
# This file for ports which depend on emacs family.
|
|
|
|
# Define EMACS_PORT_NAME variable before bsd.port.[pre.]mk
|
|
|
|
# and it will automatically include this file.
|
|
|
|
#
|
|
|
|
# This file exports the following common variables:
|
|
|
|
#
|
|
|
|
# EMACS_NAME:
|
|
|
|
# emacsen's command-line basename.
|
|
|
|
# ex.) "emacs" when emacsen is a emacs-20.6.
|
|
|
|
#
|
|
|
|
# EMACS_VER:
|
|
|
|
# emacsen's version.
|
|
|
|
# ex.) "20.6" when emacsen is a emacs-20.6.
|
|
|
|
#
|
|
|
|
# EMACS_MAJOR_VER:
|
|
|
|
# emacsen's major version.
|
|
|
|
# ex.) "20" when emacsen is a emacs-20.6.
|
|
|
|
#
|
|
|
|
# EMACS_LIBDIR:
|
|
|
|
# emacsen's library directory name without ${PREFIX}.
|
|
|
|
# ex.) "share/emacs" when emacsen is a emacs-20.6.
|
|
|
|
#
|
|
|
|
# EMACS_LIBDIR_WITH_VER:
|
|
|
|
# emacsen's version specific library directory name
|
|
|
|
# without ${PREFIX}.
|
|
|
|
# ex.) "share/emacs/20.6" when emacsen is a emacs-20.6.
|
|
|
|
#
|
|
|
|
# EMACS_CMD:
|
|
|
|
# emacsen's command-line filename. (full path)
|
|
|
|
# ex.) "/usr/local/bin/emacs-20.6" when emacsen is a
|
|
|
|
# emacs-20.6 and ${PREFIX} is "/usr/local".
|
|
|
|
#
|
|
|
|
# EMACS_SITE_LISPDIR:
|
|
|
|
# emacsen's site-lisp directory name without ${PREFIX}.
|
|
|
|
# ex.) "share/emacs/site-lisp" when emacsen is a emacs-20.6.
|
|
|
|
#
|
|
|
|
# EMACS_VERSION_SITE_LISPDIR:
|
|
|
|
# emacsen's version specific site-lisp directory name
|
|
|
|
# without ${PREFIX}.
|
|
|
|
# ex.) "share/emacs/20.6/site-lisp" when emacsen is a
|
|
|
|
# emacs-20.6.
|
|
|
|
#
|
2000-07-19 04:01:49 -04:00
|
|
|
# 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.
|
|
|
|
#
|
2000-05-06 06:45:35 -04:00
|
|
|
|
|
|
|
|
|
|
|
# Emacs-19.x
|
2000-05-08 09:09:50 -04:00
|
|
|
.if (${EMACS_PORT_NAME} == "emacs")
|
2000-05-06 06:45:35 -04:00
|
|
|
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}
|
2000-05-08 09:09:50 -04:00
|
|
|
EMACS_PORTSDIR= ${PORTSDIR}/editors/emacs
|
|
|
|
EMACS_COMMON_PORT= NO
|
2000-07-12 11:18:32 -04:00
|
|
|
EMACS_HAS_MULE= NO
|
2000-05-06 06:45:35 -04:00
|
|
|
|
|
|
|
# Emacs-20.x
|
|
|
|
.elif (${EMACS_PORT_NAME} == "emacs20")
|
|
|
|
EMACS_NAME= emacs
|
2000-06-26 20:05:23 -04:00
|
|
|
EMACS_VER= 20.7
|
2000-05-06 06:45:35 -04:00
|
|
|
EMACS_MAJOR_VER= 20
|
|
|
|
EMACS_LIBDIR?= share/${EMACS_NAME}
|
|
|
|
EMACS_LIBDIR_WITH_VER?= share/${EMACS_NAME}/${EMACS_VER}
|
2000-05-08 09:09:50 -04:00
|
|
|
EMACS_PORTSDIR= ${PORTSDIR}/editors/emacs20
|
|
|
|
EMACS_COMMON_PORT= NO
|
2000-07-12 11:18:32 -04:00
|
|
|
EMACS_HAS_MULE= YES
|
2000-05-06 06:45:35 -04:00
|
|
|
|
|
|
|
# Mule-19.x
|
2000-05-08 09:09:50 -04:00
|
|
|
.elif (${EMACS_PORT_NAME} == "mule")
|
2000-05-06 06:45:35 -04:00
|
|
|
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}
|
2000-05-08 09:09:50 -04:00
|
|
|
EMACS_PORTSDIR= ${PORTSDIR}/editors/mule
|
|
|
|
EMACS_COMMON_PORT= YES
|
2000-07-12 11:18:32 -04:00
|
|
|
EMACS_HAS_MULE= YES
|
2000-05-06 06:45:35 -04:00
|
|
|
|
|
|
|
# XEmacs-19.x
|
2000-05-08 09:09:50 -04:00
|
|
|
.elif (${EMACS_PORT_NAME} == "xemacs")
|
2000-05-06 06:45:35 -04:00
|
|
|
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}
|
2000-05-08 09:09:50 -04:00
|
|
|
EMACS_PORTSDIR= ${PORTSDIR}/editors/xemacs
|
|
|
|
EMACS_COMMON_PORT= NO
|
2000-07-12 11:18:32 -04:00
|
|
|
EMACS_HAS_MULE= NO
|
2000-07-25 05:01:38 -04:00
|
|
|
# subdirectory of emacs core elisp files
|
|
|
|
EMACS_CORE_SUBDIR= prim
|
2000-05-06 06:45:35 -04:00
|
|
|
|
|
|
|
# XEmacs-20.x
|
|
|
|
.elif (${EMACS_PORT_NAME} == "xemacs20")
|
|
|
|
EMACS_NAME= xemacs
|
|
|
|
EMACS_VER= 20.4
|
|
|
|
EMACS_MAJOR_VER= 20
|
|
|
|
EMACS_LIBDIR?= lib/${EMACS_NAME}
|
|
|
|
EMACS_LIBDIR_WITH_VER?= lib/${EMACS_NAME}-${EMACS_VER}
|
2000-05-08 09:09:50 -04:00
|
|
|
EMACS_PORTSDIR= ${PORTSDIR}/editors/xemacs20
|
|
|
|
EMACS_COMMON_PORT= NO
|
2000-07-12 11:18:32 -04:00
|
|
|
EMACS_HAS_MULE= NO
|
2000-07-25 05:01:38 -04:00
|
|
|
# subdirectory of emacs core elisp files
|
|
|
|
EMACS_CORE_SUBDIR= prim
|
2000-05-06 06:45:35 -04:00
|
|
|
|
|
|
|
# XEmacs-21.x
|
|
|
|
.elif (${EMACS_PORT_NAME} == "xemacs21")
|
|
|
|
EMACS_NAME= xemacs
|
2001-02-05 02:51:50 -05:00
|
|
|
EMACS_VER= 21.1.14
|
2000-05-06 06:45:35 -04:00
|
|
|
EMACS_MAJOR_VER= 21
|
|
|
|
EMACS_LIBDIR?= lib/${EMACS_NAME}
|
|
|
|
EMACS_LIBDIR_WITH_VER?= lib/${EMACS_NAME}-${EMACS_VER}
|
2000-05-08 09:09:50 -04:00
|
|
|
EMACS_PORTSDIR= ${PORTSDIR}/editors/xemacs21
|
|
|
|
EMACS_COMMON_PORT= NO
|
2000-07-12 11:18:32 -04:00
|
|
|
EMACS_HAS_MULE= NO
|
2000-05-06 06:45:35 -04:00
|
|
|
|
|
|
|
# XEmacs-21.x with Mule
|
|
|
|
.elif (${EMACS_PORT_NAME} == "xemacs21-mule")
|
|
|
|
EMACS_NAME= xemacs
|
2001-02-05 02:51:50 -05:00
|
|
|
EMACS_VER= 21.1.14
|
2000-05-06 06:45:35 -04:00
|
|
|
EMACS_MAJOR_VER= 21
|
|
|
|
EMACS_LIBDIR?= lib/${EMACS_NAME}
|
|
|
|
EMACS_LIBDIR_WITH_VER?= lib/${EMACS_NAME}-${EMACS_VER}
|
2000-05-08 09:09:50 -04:00
|
|
|
EMACS_PORTSDIR= ${PORTSDIR}/editors/xemacs21-mule
|
|
|
|
EMACS_COMMON_PORT= YES
|
2000-07-12 11:18:32 -04:00
|
|
|
EMACS_HAS_MULE= YES
|
2000-05-08 09:09:50 -04:00
|
|
|
|
2000-05-06 06:45:35 -04:00
|
|
|
.else
|
|
|
|
.BEGIN:
|
|
|
|
@${ECHO} "Error: Bad value of EMACS_PORT_NAME: ${EMACS_PORT_NAME}."
|
|
|
|
@${ECHO} "Valid values are:"
|
2000-05-08 09:09:50 -04:00
|
|
|
@${ECHO} " Emacs family: emacs mule emacs20"
|
|
|
|
@${ECHO} " XEmacs family: xemacs xemacs20 xemacs21 xemacs21-mule"
|
2000-05-06 06:45:35 -04:00
|
|
|
@${FALSE}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# Common Definitions
|
|
|
|
#
|
|
|
|
|
|
|
|
# emacsen command-line filename
|
2000-05-08 09:09:50 -04:00
|
|
|
EMACS_CMD?= ${LOCALBASE}/bin/${EMACS_NAME}-${EMACS_VER}
|
2000-07-25 05:01:38 -04:00
|
|
|
# emacsen core elisp filename
|
|
|
|
EMACS_CORE_DIR= ${EMACS_LIBDIR_WITH_VER}/lisp/${EMACS_CORE_SUBDIR}
|
|
|
|
EMACS_COREEL= ${LOCALBASE}/${EMACS_CORE_DIR}/startup.el
|
2000-05-06 06:45:35 -04:00
|
|
|
|
2000-05-08 09:09:50 -04:00
|
|
|
# emacsen libdir without ${LOCALBASE}
|
2000-05-06 06:45:35 -04:00
|
|
|
EMACS_SITE_LISPDIR?= ${EMACS_LIBDIR}/site-lisp
|
|
|
|
EMACS_VERSION_SITE_LISPDIR?= ${EMACS_LIBDIR_WITH_VER}/site-lisp
|
2000-05-08 09:09:50 -04:00
|
|
|
|
|
|
|
# build&run-dependency
|
2000-07-19 04:01:49 -04:00
|
|
|
EMACS_NO_BUILD_DEPENDS?= NO
|
|
|
|
EMACS_NO_RUN_DEPENDS?= NO
|
|
|
|
.if (${EMACS_NO_BUILD_DEPENDS} == "NO")
|
2000-05-08 09:09:50 -04:00
|
|
|
BUILD_DEPENDS+= ${EMACS_CMD}:${EMACS_PORTSDIR}
|
2000-07-19 04:01:49 -04:00
|
|
|
.endif
|
|
|
|
.if (${EMACS_NO_RUN_DEPENDS} == "NO")
|
2000-05-08 09:09:50 -04:00
|
|
|
.if defined(EMACS_COMMON_PORT) && (${EMACS_COMMON_PORT} == "YES")
|
2000-07-25 05:01:38 -04:00
|
|
|
RUN_DEPENDS+= ${EMACS_COREEL}:${EMACS_PORTSDIR}-common
|
2000-05-08 09:09:50 -04:00
|
|
|
.else
|
|
|
|
RUN_DEPENDS+= ${EMACS_CMD}:${EMACS_PORTSDIR}
|
|
|
|
.endif
|
2000-07-19 04:01:49 -04:00
|
|
|
.endif
|
2000-05-10 11:59:44 -04:00
|
|
|
|
|
|
|
# environments for build
|
2000-09-18 00:14:56 -04:00
|
|
|
MAKE_ARGS+= EMACS=${EMACS_CMD} XEMACS=${EMACS_CMD}
|
|
|
|
SCRIPTS_ENV+= EMACS_LIBDIR=${EMACS_LIBDIR} \
|
2000-05-10 11:59:44 -04:00
|
|
|
EMACS_VER=${EMACS_VER} \
|
|
|
|
EMACS_LIBDIR_WITH_VER=${EMACS_LIBDIR_WITH_VER}
|
|
|
|
# pkg/PLIST substrings
|
2000-09-18 00:14:56 -04:00
|
|
|
PLIST_SUB+= EMACS_LIBDIR=${EMACS_LIBDIR} \
|
2000-05-10 11:59:44 -04:00
|
|
|
EMACS_VER=${EMACS_VER} \
|
|
|
|
EMACS_LIBDIR_WITH_VER=${EMACS_LIBDIR_WITH_VER}
|