Changeset View
Changeset View
Standalone View
Standalone View
Mk/Uses/emacs.mk
Show All 28 Lines | |||||
# - there is a run dependency on Emacs | # - there is a run dependency on Emacs | ||||
# - the noflavors argument is not specified | # - the noflavors argument is not specified | ||||
# then all valid Emacs flavors are assumed. | # then all valid Emacs flavors are assumed. | ||||
# | # | ||||
# EMACS_NO_DEPENDS: Do NOT add build or run dependencies on Emacs. | # EMACS_NO_DEPENDS: Do NOT add build or run dependencies on Emacs. | ||||
# This will prevent flavors. | # This will prevent flavors. | ||||
# | # | ||||
# Variables, which can be read by ports: | # Variables, which can be read by ports: | ||||
# EMACS_CMD: Emacs command with full path (e.g. /usr/local/bin/emacs-28.1) | # EMACS_CMD: Emacs command with full path (e.g. /usr/local/bin/emacs-28.2) | ||||
# EMACS_FLAVOR: Used for dependencies (e.g. BUILD_DEPENDS= dash.el${EMACS_PKGNAMESUFFIX}>0:devel/dash@${EMACS_FLAVOR}) | # EMACS_FLAVOR: Used for dependencies (e.g. BUILD_DEPENDS= dash.el${EMACS_PKGNAMESUFFIX}>0:devel/dash@${EMACS_FLAVOR}) | ||||
# EMACS_LIBDIR: Emacs Library directory without ${PREFIX} (e.g. share/emacs) | # EMACS_LIBDIR: Emacs Library directory without ${PREFIX} (e.g. share/emacs) | ||||
# EMACS_LIBDIR_WITH_VER: Library directory without ${PREFIX} including version (e.g. share/emacs/28.1) | # EMACS_LIBDIR_WITH_VER: Library directory without ${PREFIX} including version (e.g. share/emacs/28.2) | ||||
# EMACS_MAJOR_VER: Emacs major version (e.g. 28) | # EMACS_MAJOR_VER: Emacs major version (e.g. 28) | ||||
# EMACS_PKGNAMESUFFIX: PKGNAMESUFFIX to distinguish Emacs flavors | # EMACS_PKGNAMESUFFIX: PKGNAMESUFFIX to distinguish Emacs flavors | ||||
# EMACS_SITE_LISPDIR: Emacs site-lisp directory without ${PREFIX} (e.g. share/emacs/site-lisp) | # EMACS_SITE_LISPDIR: Emacs site-lisp directory without ${PREFIX} (e.g. share/emacs/site-lisp) | ||||
# EMACS_VER: Emacs version (e.g. 28.1) | # EMACS_VER: Emacs version (e.g. 28.2) | ||||
# EMACS_VERSION_SITE_LISPDIR: Include version (e.g. share/emacs/28.1/site-lisp) | # EMACS_VERSION_SITE_LISPDIR: Include version (e.g. share/emacs/28.2/site-lisp) | ||||
#------------------------------------------------------------------------------- | #------------------------------------------------------------------------------- | ||||
# | # | ||||
# MAINTAINER: emacs@FreeBSD.org | # MAINTAINER: emacs@FreeBSD.org | ||||
.if !defined(_INCLUDE_USES_EMACS_MK) | .if !defined(_INCLUDE_USES_EMACS_MK) | ||||
_INCLUDE_USES_EMACS_MK= yes | _INCLUDE_USES_EMACS_MK= yes | ||||
# Make sure that no dependency or some other environment variable | # Make sure that no dependency or some other environment variable | ||||
▲ Show 20 Lines • Show All 49 Lines • ▼ Show 20 Lines | |||||
. else | . else | ||||
EMACS_FLAVOR= full | EMACS_FLAVOR= full | ||||
. endif | . endif | ||||
. if ${FLAVOR:Mdevel*} | . if ${FLAVOR:Mdevel*} | ||||
EMACS_VER= 29.0.50 | EMACS_VER= 29.0.50 | ||||
EMACS_PORTDIR= editors/emacs-devel | EMACS_PORTDIR= editors/emacs-devel | ||||
. else | . else | ||||
EMACS_VER= 28.1 | EMACS_VER= 28.2 | ||||
EMACS_PORTDIR= editors/emacs | EMACS_PORTDIR= editors/emacs | ||||
. endif | . endif | ||||
EMACS_MAJOR_VER= ${EMACS_VER:C/\..*//} | EMACS_MAJOR_VER= ${EMACS_VER:C/\..*//} | ||||
EMACS_LIBDIR= share/emacs | EMACS_LIBDIR= share/emacs | ||||
EMACS_LIBDIR_WITH_VER= share/emacs/${EMACS_VER} | EMACS_LIBDIR_WITH_VER= share/emacs/${EMACS_VER} | ||||
EMACS_PORT_NAME= emacs${EMACS_MAJOR_VER} | EMACS_PORT_NAME= emacs${EMACS_MAJOR_VER} | ||||
Show All 35 Lines |