2000-05-06 10:45:35 +00:00
|
|
|
#
|
2008-11-10 22:30:51 +00:00
|
|
|
# $FreeBSD: /tmp/pcvs/ports/Mk/bsd.emacs.mk,v 1.74 2008-11-10 22:30:51 bsam Exp $
|
2000-05-06 10:45:35 +00:00
|
|
|
#
|
|
|
|
# bsd.emacs.mk - 19990829 Shigeyuki Fukushima.
|
|
|
|
#
|
|
|
|
|
|
|
|
Emacs_Include= bsd.emacs.mk
|
2004-12-23 19:07:09 +00:00
|
|
|
Emacs_Include_MAINTAINER= ports@FreeBSD.org
|
2000-05-06 10:45:35 +00:00
|
|
|
|
2007-07-16 18:05:18 +00:00
|
|
|
EMACS_PORT_NAME?= emacs22
|
|
|
|
|
2000-05-06 10:45:35 +00:00
|
|
|
#
|
|
|
|
# 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:
|
2005-01-09 10:12:07 +00:00
|
|
|
# emacsen's version specific library directory name
|
2000-05-06 10:45:35 +00:00
|
|
|
# without ${PREFIX}.
|
|
|
|
# ex.) "share/emacs/20.6" when emacsen is a emacs-20.6.
|
|
|
|
#
|
|
|
|
# EMACS_CMD:
|
|
|
|
# emacsen's command-line filename. (full path)
|
2005-01-09 10:12:07 +00:00
|
|
|
# ex.) "/usr/local/bin/emacs-20.6" when emacsen is a
|
2000-05-06 10:45:35 +00:00
|
|
|
# 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 08:01:49 +00:00
|
|
|
# EMACS_NO_BUILD_DEPENDS:
|
2005-01-09 10:12:07 +00:00
|
|
|
# If set "YES" to this variable, port does not
|
2000-07-19 08:01:49 +00:00
|
|
|
# build-depend on EMACS_PORT_NAME's emacsen.
|
|
|
|
#
|
|
|
|
# EMACS_NO_RUN_DEPENDS:
|
2005-01-09 10:12:07 +00:00
|
|
|
# If set "YES" to this variable, port does not
|
2000-07-19 08:01:49 +00:00
|
|
|
# run-depend on EMACS_PORT_NAME's emacsen.
|
|
|
|
#
|
2000-05-06 10:45:35 +00:00
|
|
|
|
2001-12-01 17:54:54 +00:00
|
|
|
EMACS_MASTERDIR_PKGFILES?= NO
|
2000-05-06 10:45:35 +00:00
|
|
|
|
2001-10-23 17:14:25 +00:00
|
|
|
# Emacs-21.x
|
2007-10-14 10:10:01 +00:00
|
|
|
.if (${EMACS_PORT_NAME} == "emacs21")
|
2001-10-23 17:14:25 +00:00
|
|
|
EMACS_NAME= emacs
|
2003-04-08 14:56:32 +00:00
|
|
|
EMACS_VER= 21.3
|
2001-10-23 17:14:25 +00:00
|
|
|
EMACS_MAJOR_VER= 21
|
|
|
|
EMACS_LIBDIR?= share/${EMACS_NAME}
|
|
|
|
EMACS_LIBDIR_WITH_VER?= share/${EMACS_NAME}/${EMACS_VER}
|
2007-07-16 17:07:45 +00:00
|
|
|
EMACS_PORTSDIR= ${PORTSDIR}/editors/emacs21
|
2001-10-23 17:14:25 +00:00
|
|
|
EMACS_COMMON_PORT= NO
|
|
|
|
EMACS_HAS_MULE= YES
|
2001-12-01 17:54:54 +00:00
|
|
|
EMACS_NO_SUBDIRSEL= NO
|
|
|
|
.if (${EMACS_MASTERDIR_PKGFILES} == "YES")
|
* pkg-comment removal, take 2: introduce the COMMENTFILE variable
with the same semantics as the current COMMENT variable (location
of the pkg-comment file), and reclaim COMMENT for the comment string
itself. To work around the problems with metacharacters in comment
strings, comments are written to a temporary comment file as needed. [1]
* Support regexps in LIB_DEPENDS [2]
* Move the CD_MOUNTPTS variable to <bsd.port.pre.mk> [3]
* Improve 'make readmes' target [4]:
- ^A and ^B have been replaced by | to avoid printing problems in
'make readme'.
- Add %%EMAIL%%, %%MAINTAINER%% (not used yet) and %%WEBSITE%%
substitutions
- Add pretty-print-www-site target.
* Add support for USE_GCC=3.2 [5]
* Use 'uname -p' instead of 'uname -m' to set the ARCH variable. [6]
* Add a ${YACC} variable [7]
* Path MANPREFIX in MAKE_ENV [8]
* Use the full patch to mkhtmlindex in MKHTMLINDEX [9]
* Avoid overflowing the commandline when constructing the _TMLINKS
variable (fixes 'make index'). [10]
Submitted by: lioux [1], mi [2], mbr [3][5],
Cyrille Lefevre <clefevre@citeweb.net> [4],
nyan [6], cy [7], dougb [8], anholt [9],
fenner [10] (based on)
PR: ports/34126 [2], ports/30983 [3] (based on),
ports/31389 [4], ports/47306 [5] (based on),
ports/35514 [6], ports/44496 [7],
ports/44895 [8], ports/45549 [9]
2003-02-10 07:59:22 +00:00
|
|
|
COMMENTFILE?= ${PKGDIR}/pkg-comment.${EMACS_PORT_NAME}
|
2001-12-01 17:54:54 +00:00
|
|
|
DESCR?= ${PKGDIR}/pkg-descr.${EMACS_PORT_NAME}
|
|
|
|
PLIST?= ${PKGDIR}/pkg-plist.${EMACS_PORT_NAME}
|
|
|
|
.endif
|
2001-10-23 17:14:25 +00:00
|
|
|
|
2006-04-01 21:04:33 +00:00
|
|
|
# Emacs-22.x
|
|
|
|
.elif (${EMACS_PORT_NAME} == "emacs22")
|
|
|
|
EMACS_NAME= emacs
|
2008-11-10 22:30:51 +00:00
|
|
|
EMACS_VER= 22.3
|
2007-07-16 17:07:45 +00:00
|
|
|
EMACS_MAJOR_VER= 22
|
|
|
|
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
|
|
|
|
|
2008-06-03 14:36:50 +00:00
|
|
|
# Emacs-23.x (development version)
|
2007-07-16 17:07:45 +00:00
|
|
|
.elif (${EMACS_PORT_NAME} == "emacs-devel")
|
|
|
|
EMACS_NAME= emacs
|
2008-04-07 01:18:10 +00:00
|
|
|
EMACS_VER= 23.0.60
|
2008-01-27 14:26:42 +00:00
|
|
|
EMACS_MAJOR_VER= 23
|
2006-04-01 21:04:33 +00:00
|
|
|
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
|
|
|
|
|
2000-05-06 10:45:35 +00:00
|
|
|
# XEmacs-21.x
|
|
|
|
.elif (${EMACS_PORT_NAME} == "xemacs21")
|
|
|
|
EMACS_NAME= xemacs
|
2007-12-13 19:25:09 +00:00
|
|
|
EMACS_VER= 21.4.21
|
2000-05-06 10:45:35 +00:00
|
|
|
EMACS_MAJOR_VER= 21
|
|
|
|
EMACS_LIBDIR?= lib/${EMACS_NAME}
|
|
|
|
EMACS_LIBDIR_WITH_VER?= lib/${EMACS_NAME}-${EMACS_VER}
|
2004-08-19 14:18:46 +00:00
|
|
|
EMACS_PORTSDIR= ${PORTSDIR}/editors/xemacs
|
2000-05-08 13:09:50 +00:00
|
|
|
EMACS_COMMON_PORT= NO
|
2000-07-12 15:18:32 +00:00
|
|
|
EMACS_HAS_MULE= NO
|
2001-12-01 17:54:54 +00:00
|
|
|
EMACS_NO_SUBDIRSEL= NO
|
|
|
|
.if (${EMACS_MASTERDIR_PKGFILES} == "YES")
|
* pkg-comment removal, take 2: introduce the COMMENTFILE variable
with the same semantics as the current COMMENT variable (location
of the pkg-comment file), and reclaim COMMENT for the comment string
itself. To work around the problems with metacharacters in comment
strings, comments are written to a temporary comment file as needed. [1]
* Support regexps in LIB_DEPENDS [2]
* Move the CD_MOUNTPTS variable to <bsd.port.pre.mk> [3]
* Improve 'make readmes' target [4]:
- ^A and ^B have been replaced by | to avoid printing problems in
'make readme'.
- Add %%EMAIL%%, %%MAINTAINER%% (not used yet) and %%WEBSITE%%
substitutions
- Add pretty-print-www-site target.
* Add support for USE_GCC=3.2 [5]
* Use 'uname -p' instead of 'uname -m' to set the ARCH variable. [6]
* Add a ${YACC} variable [7]
* Path MANPREFIX in MAKE_ENV [8]
* Use the full patch to mkhtmlindex in MKHTMLINDEX [9]
* Avoid overflowing the commandline when constructing the _TMLINKS
variable (fixes 'make index'). [10]
Submitted by: lioux [1], mi [2], mbr [3][5],
Cyrille Lefevre <clefevre@citeweb.net> [4],
nyan [6], cy [7], dougb [8], anholt [9],
fenner [10] (based on)
PR: ports/34126 [2], ports/30983 [3] (based on),
ports/31389 [4], ports/47306 [5] (based on),
ports/35514 [6], ports/44496 [7],
ports/44895 [8], ports/45549 [9]
2003-02-10 07:59:22 +00:00
|
|
|
COMMENTFILE?= ${PKGDIR}/pkg-comment.${EMACS_PORT_NAME}
|
2001-12-01 17:54:54 +00:00
|
|
|
DESCR?= ${PKGDIR}/pkg-descr.${EMACS_PORT_NAME}
|
|
|
|
PLIST?= ${PKGDIR}/pkg-plist.${EMACS_PORT_NAME}
|
|
|
|
.endif
|
2000-05-06 10:45:35 +00:00
|
|
|
|
|
|
|
# XEmacs-21.x with Mule
|
|
|
|
.elif (${EMACS_PORT_NAME} == "xemacs21-mule")
|
|
|
|
EMACS_NAME= xemacs
|
2007-12-13 19:25:09 +00:00
|
|
|
EMACS_VER= 21.4.21
|
2000-05-06 10:45:35 +00:00
|
|
|
EMACS_MAJOR_VER= 21
|
|
|
|
EMACS_LIBDIR?= lib/${EMACS_NAME}
|
|
|
|
EMACS_LIBDIR_WITH_VER?= lib/${EMACS_NAME}-${EMACS_VER}
|
2000-05-08 13:09:50 +00:00
|
|
|
EMACS_PORTSDIR= ${PORTSDIR}/editors/xemacs21-mule
|
2003-05-12 00:46:51 +00:00
|
|
|
EMACS_COMMON_PORT= NO
|
2000-07-12 15:18:32 +00:00
|
|
|
EMACS_HAS_MULE= YES
|
2001-12-01 17:54:54 +00:00
|
|
|
EMACS_NO_SUBDIRSEL= NO
|
|
|
|
.if (${EMACS_MASTERDIR_PKGFILES} == "YES")
|
* pkg-comment removal, take 2: introduce the COMMENTFILE variable
with the same semantics as the current COMMENT variable (location
of the pkg-comment file), and reclaim COMMENT for the comment string
itself. To work around the problems with metacharacters in comment
strings, comments are written to a temporary comment file as needed. [1]
* Support regexps in LIB_DEPENDS [2]
* Move the CD_MOUNTPTS variable to <bsd.port.pre.mk> [3]
* Improve 'make readmes' target [4]:
- ^A and ^B have been replaced by | to avoid printing problems in
'make readme'.
- Add %%EMAIL%%, %%MAINTAINER%% (not used yet) and %%WEBSITE%%
substitutions
- Add pretty-print-www-site target.
* Add support for USE_GCC=3.2 [5]
* Use 'uname -p' instead of 'uname -m' to set the ARCH variable. [6]
* Add a ${YACC} variable [7]
* Path MANPREFIX in MAKE_ENV [8]
* Use the full patch to mkhtmlindex in MKHTMLINDEX [9]
* Avoid overflowing the commandline when constructing the _TMLINKS
variable (fixes 'make index'). [10]
Submitted by: lioux [1], mi [2], mbr [3][5],
Cyrille Lefevre <clefevre@citeweb.net> [4],
nyan [6], cy [7], dougb [8], anholt [9],
fenner [10] (based on)
PR: ports/34126 [2], ports/30983 [3] (based on),
ports/31389 [4], ports/47306 [5] (based on),
ports/35514 [6], ports/44496 [7],
ports/44895 [8], ports/45549 [9]
2003-02-10 07:59:22 +00:00
|
|
|
COMMENTFILE?= ${PKGDIR}/pkg-comment.${EMACS_PORT_NAME}
|
2001-12-01 17:54:54 +00:00
|
|
|
DESCR?= ${PKGDIR}/pkg-descr.${EMACS_PORT_NAME}
|
|
|
|
PLIST?= ${PKGDIR}/pkg-plist.${EMACS_PORT_NAME}
|
|
|
|
.endif
|
2000-05-08 13:09:50 +00:00
|
|
|
|
2002-07-14 13:49:20 +00:00
|
|
|
# XEmacs-21 development version
|
|
|
|
.elif (${EMACS_PORT_NAME} == "xemacs-devel")
|
|
|
|
EMACS_NAME= xemacs
|
2007-05-27 17:43:21 +00:00
|
|
|
EMACS_VER= 21.5-b28
|
2002-07-14 13:49:20 +00:00
|
|
|
EMACS_MAJOR_VER= 21
|
|
|
|
EMACS_LIBDIR?= lib/${EMACS_NAME}
|
|
|
|
EMACS_LIBDIR_WITH_VER?= lib/${EMACS_NAME}-${EMACS_VER}
|
|
|
|
EMACS_PORTSDIR= ${PORTSDIR}/editors/xemacs-devel
|
|
|
|
EMACS_COMMON_PORT= NO
|
|
|
|
EMACS_HAS_MULE= NO
|
|
|
|
EMACS_NO_SUBDIRSEL= NO
|
|
|
|
.if (${EMACS_MASTERDIR_PKGFILES} == "YES")
|
* pkg-comment removal, take 2: introduce the COMMENTFILE variable
with the same semantics as the current COMMENT variable (location
of the pkg-comment file), and reclaim COMMENT for the comment string
itself. To work around the problems with metacharacters in comment
strings, comments are written to a temporary comment file as needed. [1]
* Support regexps in LIB_DEPENDS [2]
* Move the CD_MOUNTPTS variable to <bsd.port.pre.mk> [3]
* Improve 'make readmes' target [4]:
- ^A and ^B have been replaced by | to avoid printing problems in
'make readme'.
- Add %%EMAIL%%, %%MAINTAINER%% (not used yet) and %%WEBSITE%%
substitutions
- Add pretty-print-www-site target.
* Add support for USE_GCC=3.2 [5]
* Use 'uname -p' instead of 'uname -m' to set the ARCH variable. [6]
* Add a ${YACC} variable [7]
* Path MANPREFIX in MAKE_ENV [8]
* Use the full patch to mkhtmlindex in MKHTMLINDEX [9]
* Avoid overflowing the commandline when constructing the _TMLINKS
variable (fixes 'make index'). [10]
Submitted by: lioux [1], mi [2], mbr [3][5],
Cyrille Lefevre <clefevre@citeweb.net> [4],
nyan [6], cy [7], dougb [8], anholt [9],
fenner [10] (based on)
PR: ports/34126 [2], ports/30983 [3] (based on),
ports/31389 [4], ports/47306 [5] (based on),
ports/35514 [6], ports/44496 [7],
ports/44895 [8], ports/45549 [9]
2003-02-10 07:59:22 +00:00
|
|
|
COMMENTFILE?= ${PKGDIR}/pkg-comment.${EMACS_PORT_NAME}
|
2002-07-14 13:49:20 +00:00
|
|
|
DESCR?= ${PKGDIR}/pkg-descr.${EMACS_PORT_NAME}
|
|
|
|
PLIST?= ${PKGDIR}/pkg-plist.${EMACS_PORT_NAME}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# XEmacs-21 development version with Mule
|
2006-05-16 17:11:20 +00:00
|
|
|
.elif (${EMACS_PORT_NAME} == "xemacs-devel-mule") || \
|
|
|
|
(${EMACS_PORT_NAME} == "xemacs-mule-xft")
|
2002-07-14 13:49:20 +00:00
|
|
|
EMACS_NAME= xemacs
|
2007-05-27 17:43:21 +00:00
|
|
|
EMACS_VER= 21.5-b28
|
2002-07-14 13:49:20 +00:00
|
|
|
EMACS_MAJOR_VER= 21
|
|
|
|
EMACS_LIBDIR?= lib/${EMACS_NAME}
|
|
|
|
EMACS_LIBDIR_WITH_VER?= lib/${EMACS_NAME}-${EMACS_VER}
|
2006-05-16 17:11:20 +00:00
|
|
|
.if ${EMACS_PORT_NAME} == "xemacs-mule-xft"
|
|
|
|
EMACS_PORTSDIR= ${PORTSDIR}/editors/xemacs-devel-mule-xft
|
|
|
|
.else
|
2002-07-14 13:49:20 +00:00
|
|
|
EMACS_PORTSDIR= ${PORTSDIR}/editors/xemacs-devel-mule
|
2006-05-16 17:11:20 +00:00
|
|
|
.endif
|
2002-07-14 13:49:20 +00:00
|
|
|
EMACS_COMMON_PORT= NO
|
|
|
|
EMACS_HAS_MULE= YES
|
|
|
|
EMACS_NO_SUBDIRSEL= NO
|
|
|
|
.if (${EMACS_MASTERDIR_PKGFILES} == "YES")
|
* pkg-comment removal, take 2: introduce the COMMENTFILE variable
with the same semantics as the current COMMENT variable (location
of the pkg-comment file), and reclaim COMMENT for the comment string
itself. To work around the problems with metacharacters in comment
strings, comments are written to a temporary comment file as needed. [1]
* Support regexps in LIB_DEPENDS [2]
* Move the CD_MOUNTPTS variable to <bsd.port.pre.mk> [3]
* Improve 'make readmes' target [4]:
- ^A and ^B have been replaced by | to avoid printing problems in
'make readme'.
- Add %%EMAIL%%, %%MAINTAINER%% (not used yet) and %%WEBSITE%%
substitutions
- Add pretty-print-www-site target.
* Add support for USE_GCC=3.2 [5]
* Use 'uname -p' instead of 'uname -m' to set the ARCH variable. [6]
* Add a ${YACC} variable [7]
* Path MANPREFIX in MAKE_ENV [8]
* Use the full patch to mkhtmlindex in MKHTMLINDEX [9]
* Avoid overflowing the commandline when constructing the _TMLINKS
variable (fixes 'make index'). [10]
Submitted by: lioux [1], mi [2], mbr [3][5],
Cyrille Lefevre <clefevre@citeweb.net> [4],
nyan [6], cy [7], dougb [8], anholt [9],
fenner [10] (based on)
PR: ports/34126 [2], ports/30983 [3] (based on),
ports/31389 [4], ports/47306 [5] (based on),
ports/35514 [6], ports/44496 [7],
ports/44895 [8], ports/45549 [9]
2003-02-10 07:59:22 +00:00
|
|
|
COMMENTFILE?= ${PKGDIR}/pkg-comment.${EMACS_PORT_NAME}
|
2002-07-14 13:49:20 +00:00
|
|
|
DESCR?= ${PKGDIR}/pkg-descr.${EMACS_PORT_NAME}
|
|
|
|
PLIST?= ${PKGDIR}/pkg-plist.${EMACS_PORT_NAME}
|
|
|
|
.endif
|
|
|
|
|
2000-05-06 10:45:35 +00:00
|
|
|
.else
|
2004-01-20 09:14:10 +00:00
|
|
|
check-makevars::
|
|
|
|
@${ECHO} "Makefile error: Bad value of EMACS_PORT_NAME: ${EMACS_PORT_NAME}."
|
2000-05-06 10:45:35 +00:00
|
|
|
@${ECHO} "Valid values are:"
|
2007-10-14 10:10:01 +00:00
|
|
|
@${ECHO} " Emacs family: emacs21 emacs22 emacs-devel"
|
|
|
|
@${ECHO} " XEmacs family: xemacs21 xemacs21-mule xemacs-devel"
|
|
|
|
@${ECHO} " xemacs-devel-mule xemacs-mule-xft"
|
2000-05-06 10:45:35 +00:00
|
|
|
@${FALSE}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# Common Definitions
|
|
|
|
#
|
|
|
|
|
2005-04-17 18:13:12 +00:00
|
|
|
# find where emacsen is installed
|
|
|
|
# look for it in PREEFIX first and fall back to LOCALBASE then
|
2007-08-04 11:37:24 +00:00
|
|
|
.if exists(/bin/${EMACS_NAME}-${EMACS_VER})
|
|
|
|
EMACS_BASE?= ${PREFIX}
|
2005-04-17 18:13:12 +00:00
|
|
|
.else
|
|
|
|
EMACS_BASE?= ${LOCALBASE}
|
|
|
|
.endif
|
2000-05-06 10:45:35 +00:00
|
|
|
# emacsen command-line filename
|
2005-04-17 18:13:12 +00:00
|
|
|
EMACS_CMD?= ${EMACS_BASE}/bin/${EMACS_NAME}-${EMACS_VER}
|
2000-07-25 09:01:38 +00:00
|
|
|
# emacsen core elisp filename
|
|
|
|
EMACS_CORE_DIR= ${EMACS_LIBDIR_WITH_VER}/lisp/${EMACS_CORE_SUBDIR}
|
2005-04-17 18:13:12 +00:00
|
|
|
EMACS_COREEL= ${EMACS_BASE}/${EMACS_CORE_DIR}/startup.el
|
2000-05-08 13:09:50 +00:00
|
|
|
# emacsen libdir without ${LOCALBASE}
|
2000-05-06 10:45:35 +00:00
|
|
|
EMACS_SITE_LISPDIR?= ${EMACS_LIBDIR}/site-lisp
|
|
|
|
EMACS_VERSION_SITE_LISPDIR?= ${EMACS_LIBDIR_WITH_VER}/site-lisp
|
2000-05-08 13:09:50 +00:00
|
|
|
|
|
|
|
# build&run-dependency
|
2000-07-19 08:01:49 +00:00
|
|
|
EMACS_NO_BUILD_DEPENDS?= NO
|
|
|
|
EMACS_NO_RUN_DEPENDS?= NO
|
|
|
|
.if (${EMACS_NO_BUILD_DEPENDS} == "NO")
|
2000-05-08 13:09:50 +00:00
|
|
|
BUILD_DEPENDS+= ${EMACS_CMD}:${EMACS_PORTSDIR}
|
2000-07-19 08:01:49 +00:00
|
|
|
.endif
|
|
|
|
.if (${EMACS_NO_RUN_DEPENDS} == "NO")
|
2000-05-08 13:09:50 +00:00
|
|
|
.if defined(EMACS_COMMON_PORT) && (${EMACS_COMMON_PORT} == "YES")
|
2000-07-25 09:01:38 +00:00
|
|
|
RUN_DEPENDS+= ${EMACS_COREEL}:${EMACS_PORTSDIR}-common
|
2000-05-08 13:09:50 +00:00
|
|
|
.else
|
|
|
|
RUN_DEPENDS+= ${EMACS_CMD}:${EMACS_PORTSDIR}
|
|
|
|
.endif
|
2000-07-19 08:01:49 +00:00
|
|
|
.endif
|
2000-05-10 15:59:44 +00:00
|
|
|
|
|
|
|
# environments for build
|
2000-09-18 04:14:56 +00:00
|
|
|
MAKE_ARGS+= EMACS=${EMACS_CMD} XEMACS=${EMACS_CMD}
|
|
|
|
SCRIPTS_ENV+= EMACS_LIBDIR=${EMACS_LIBDIR} \
|
2000-05-10 15:59:44 +00:00
|
|
|
EMACS_VER=${EMACS_VER} \
|
2001-12-01 17:54:54 +00:00
|
|
|
EMACS_LIBDIR_WITH_VER=${EMACS_LIBDIR_WITH_VER} \
|
|
|
|
EMACS_SITE_LISPDIR=${EMACS_SITE_LISPDIR} \
|
|
|
|
EMACS_VERSION_SITE_LISPDIR=${EMACS_VERSION_SITE_LISPDIR}
|
2000-05-10 15:59:44 +00:00
|
|
|
# pkg/PLIST substrings
|
2000-09-18 04:14:56 +00:00
|
|
|
PLIST_SUB+= EMACS_LIBDIR=${EMACS_LIBDIR} \
|
2000-05-10 15:59:44 +00:00
|
|
|
EMACS_VER=${EMACS_VER} \
|
2001-12-01 17:54:54 +00:00
|
|
|
EMACS_LIBDIR_WITH_VER=${EMACS_LIBDIR_WITH_VER} \
|
|
|
|
EMACS_SITE_LISPDIR=${EMACS_SITE_LISPDIR} \
|
|
|
|
EMACS_VERSION_SITE_LISPDIR=${EMACS_VERSION_SITE_LISPDIR}
|