b2edd3a92d
editors/emacs: - Update to 24.4[1] - Remove all upstreamed diffs[1] - Switch to static pkg-plist[1] - Add OPTIONs for ACL, file notification, LTO, ALSA, and OSS[1] - Reword IGNORE messages for portlint[1] - Add fix for a Emacs TRAMP bug - Update CANNA patchset[2] editors/emacs-devel: - Update to bzr snapshot revision 118251 - Add pkg-install, and pkg-deinstall file missed from r364499 - Switch to static pkg-plist editors/emacs-nox11: - Remove PLIST_DIRSTRY Mk/bsd.emacs.mk: - Update Emacs version numbers - Remove deprecated XEmacs entries PR: 194624[1] Submitted by: Joseph Mingrone <jrm at ftfl.ca>[1], TAKANO Yuji <takachan at running-dog.net>[2]
173 lines
4.9 KiB
Makefile
173 lines
4.9 KiB
Makefile
#
|
|
# $FreeBSD$
|
|
#
|
|
# bsd.emacs.mk - 19990829 Shigeyuki Fukushima.
|
|
#
|
|
|
|
Emacs_Include= bsd.emacs.mk
|
|
Emacs_Include_MAINTAINER= ashish@FreeBSD.org
|
|
|
|
EMACS_PORT_NAME?= emacs24
|
|
|
|
#
|
|
# 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.
|
|
#
|
|
# 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_MASTERDIR_PKGFILES?= NO
|
|
|
|
# Emacs-23.x
|
|
.if (${EMACS_PORT_NAME} == "emacs23")
|
|
EMACS_NAME= emacs
|
|
EMACS_VER= 23.4
|
|
EMACS_MAJOR_VER= 23
|
|
EMACS_LIBDIR?= share/${EMACS_NAME}
|
|
EMACS_LIBDIR_WITH_VER?= share/${EMACS_NAME}/${EMACS_VER}
|
|
EMACS_PORTSDIR= ${PORTSDIR}/editors/emacs
|
|
EMACS_COMMON_PORT= NO
|
|
EMACS_HAS_MULE= YES
|
|
EMACS_NO_SUBDIRSEL= NO
|
|
.if (${EMACS_MASTERDIR_PKGFILES} == "YES")
|
|
COMMENTFILE?= ${PKGDIR}/pkg-comment.${EMACS_PORT_NAME}
|
|
DESCR?= ${PKGDIR}/pkg-descr.${EMACS_PORT_NAME}
|
|
PLIST?= ${PKGDIR}/pkg-plist.${EMACS_PORT_NAME}
|
|
.endif
|
|
|
|
# Emacs-24.x
|
|
.elif (${EMACS_PORT_NAME} == "emacs24")
|
|
EMACS_NAME= emacs
|
|
EMACS_VER= 24.4
|
|
EMACS_MAJOR_VER= 24
|
|
EMACS_LIBDIR?= share/${EMACS_NAME}
|
|
EMACS_LIBDIR_WITH_VER?= share/${EMACS_NAME}/${EMACS_VER}
|
|
EMACS_PORTSDIR= ${PORTSDIR}/editors/emacs
|
|
EMACS_COMMON_PORT= NO
|
|
EMACS_HAS_MULE= YES
|
|
EMACS_NO_SUBDIRSEL= NO
|
|
.if (${EMACS_MASTERDIR_PKGFILES} == "YES")
|
|
COMMENTFILE?= ${PKGDIR}/pkg-comment.${EMACS_PORT_NAME}
|
|
DESCR?= ${PKGDIR}/pkg-descr.${EMACS_PORT_NAME}
|
|
PLIST?= ${PKGDIR}/pkg-plist.${EMACS_PORT_NAME}
|
|
.endif
|
|
|
|
# Emacs-24.x (development version)
|
|
.elif (${EMACS_PORT_NAME} == "emacs-devel")
|
|
EMACS_NAME= emacs
|
|
EMACS_VER= 25.0.50
|
|
EMACS_MAJOR_VER= 25
|
|
EMACS_LIBDIR?= share/${EMACS_NAME}
|
|
EMACS_LIBDIR_WITH_VER?= share/${EMACS_NAME}/${EMACS_VER}
|
|
EMACS_PORTSDIR= ${PORTSDIR}/editors/emacs-devel
|
|
EMACS_COMMON_PORT= NO
|
|
EMACS_HAS_MULE= YES
|
|
EMACS_NO_SUBDIRSEL= NO
|
|
.if (${EMACS_MASTERDIR_PKGFILES} == "YES")
|
|
COMMENTFILE?= ${PKGDIR}/pkg-comment.${EMACS_PORT_NAME}
|
|
DESCR?= ${PKGDIR}/pkg-descr.${EMACS_PORT_NAME}
|
|
PLIST?= ${PKGDIR}/pkg-plist.${EMACS_PORT_NAME}
|
|
.endif
|
|
|
|
.else
|
|
check-makevars::
|
|
@${ECHO} "Makefile error: Bad value of EMACS_PORT_NAME: ${EMACS_PORT_NAME}."
|
|
@${ECHO} "Valid values are:"
|
|
@${ECHO} " Emacs family: emacs23 emacs24 emacs-devel"
|
|
@${FALSE}
|
|
.endif
|
|
|
|
|
|
#
|
|
# Common Definitions
|
|
#
|
|
|
|
# find where emacsen is installed
|
|
# look for it in PREFIX first and fall back to LOCALBASE then
|
|
.if exists(/bin/${EMACS_NAME}-${EMACS_VER})
|
|
EMACS_BASE?= ${PREFIX}
|
|
.else
|
|
EMACS_BASE?= ${LOCALBASE}
|
|
.endif
|
|
# emacsen command-line filename
|
|
EMACS_CMD?= ${EMACS_BASE}/bin/${EMACS_NAME}-${EMACS_VER}
|
|
# emacsen core elisp filename
|
|
EMACS_CORE_DIR= ${EMACS_LIBDIR_WITH_VER}/lisp/${EMACS_CORE_SUBDIR}
|
|
EMACS_COREEL= ${EMACS_BASE}/${EMACS_CORE_DIR}/startup.el
|
|
# emacsen libdir without ${LOCALBASE}
|
|
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_COREEL}:${EMACS_PORTSDIR}-common
|
|
.else
|
|
RUN_DEPENDS+= ${EMACS_CMD}:${EMACS_PORTSDIR}
|
|
.endif
|
|
.endif
|
|
|
|
# environments for build
|
|
MAKE_ARGS+= EMACS=${EMACS_CMD}
|
|
SCRIPTS_ENV+= EMACS_LIBDIR=${EMACS_LIBDIR} \
|
|
EMACS_VER=${EMACS_VER} \
|
|
EMACS_LIBDIR_WITH_VER=${EMACS_LIBDIR_WITH_VER} \
|
|
EMACS_SITE_LISPDIR=${EMACS_SITE_LISPDIR} \
|
|
EMACS_VERSION_SITE_LISPDIR=${EMACS_VERSION_SITE_LISPDIR}
|
|
# pkg/PLIST substrings
|
|
PLIST_SUB+= EMACS_LIBDIR=${EMACS_LIBDIR} \
|
|
EMACS_VER=${EMACS_VER} \
|
|
EMACS_LIBDIR_WITH_VER=${EMACS_LIBDIR_WITH_VER} \
|
|
EMACS_SITE_LISPDIR=${EMACS_SITE_LISPDIR} \
|
|
EMACS_VERSION_SITE_LISPDIR=${EMACS_VERSION_SITE_LISPDIR}
|