2000-05-06 12:45:35 +02:00
|
|
|
#
|
2007-07-16 20:05:18 +02:00
|
|
|
# $FreeBSD: /tmp/pcvs/ports/Mk/bsd.emacs.mk,v 1.67 2007-07-16 18:05:18 nobutaka Exp $
|
2000-05-06 12:45:35 +02:00
|
|
|
#
|
|
|
|
# bsd.emacs.mk - 19990829 Shigeyuki Fukushima.
|
|
|
|
#
|
|
|
|
|
|
|
|
Emacs_Include= bsd.emacs.mk
|
2004-12-23 20:07:09 +01:00
|
|
|
Emacs_Include_MAINTAINER= ports@FreeBSD.org
|
2000-05-06 12:45:35 +02:00
|
|
|
|
2007-07-16 20:05:18 +02:00
|
|
|
EMACS_PORT_NAME?= emacs22
|
|
|
|
|
2000-05-06 12:45:35 +02: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 11:12:07 +01:00
|
|
|
# emacsen's version specific library directory name
|
2000-05-06 12:45:35 +02: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 11:12:07 +01:00
|
|
|
# ex.) "/usr/local/bin/emacs-20.6" when emacsen is a
|
2000-05-06 12:45:35 +02: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 10:01:49 +02:00
|
|
|
# EMACS_NO_BUILD_DEPENDS:
|
2005-01-09 11:12:07 +01:00
|
|
|
# If set "YES" to this variable, port does not
|
2000-07-19 10:01:49 +02:00
|
|
|
# build-depend on EMACS_PORT_NAME's emacsen.
|
|
|
|
#
|
|
|
|
# EMACS_NO_RUN_DEPENDS:
|
2005-01-09 11:12:07 +01:00
|
|
|
# If set "YES" to this variable, port does not
|
2000-07-19 10:01:49 +02:00
|
|
|
# run-depend on EMACS_PORT_NAME's emacsen.
|
|
|
|
#
|
2000-05-06 12:45:35 +02:00
|
|
|
|
2001-12-01 18:54:54 +01:00
|
|
|
EMACS_MASTERDIR_PKGFILES?= NO
|
2000-05-06 12:45:35 +02:00
|
|
|
|
2006-02-16 13:42:44 +01:00
|
|
|
# Emacs-19.x
|
|
|
|
.if (${EMACS_PORT_NAME} == "emacs19")
|
|
|
|
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/emacs19
|
|
|
|
EMACS_COMMON_PORT= NO
|
|
|
|
EMACS_HAS_MULE= NO
|
|
|
|
EMACS_NO_SUBDIRSEL= YES
|
|
|
|
.if (${EMACS_MASTERDIR_PKGFILES} == "YES")
|
|
|
|
COMMENTFILE?= ${PKGDIR}/pkg-comment.emacs19
|
|
|
|
DESCR?= ${PKGDIR}/pkg-descr.emacs19
|
|
|
|
PLIST?= ${PKGDIR}/pkg-plist.emacs19
|
|
|
|
.endif
|
|
|
|
|
2000-05-06 12:45:35 +02:00
|
|
|
# Emacs-20.x
|
|
|
|
.elif (${EMACS_PORT_NAME} == "emacs20")
|
|
|
|
EMACS_NAME= emacs
|
2000-06-27 02:05:23 +02:00
|
|
|
EMACS_VER= 20.7
|
2000-05-06 12:45:35 +02:00
|
|
|
EMACS_MAJOR_VER= 20
|
|
|
|
EMACS_LIBDIR?= share/${EMACS_NAME}
|
|
|
|
EMACS_LIBDIR_WITH_VER?= share/${EMACS_NAME}/${EMACS_VER}
|
2000-05-08 15:09:50 +02:00
|
|
|
EMACS_PORTSDIR= ${PORTSDIR}/editors/emacs20
|
|
|
|
EMACS_COMMON_PORT= NO
|
2000-07-12 17:18:32 +02:00
|
|
|
EMACS_HAS_MULE= YES
|
2001-12-01 18:54:54 +01: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 08:59:22 +01:00
|
|
|
COMMENTFILE?= ${PKGDIR}/pkg-comment.${EMACS_PORT_NAME}
|
2001-12-01 18:54:54 +01:00
|
|
|
DESCR?= ${PKGDIR}/pkg-descr.${EMACS_PORT_NAME}
|
|
|
|
PLIST?= ${PKGDIR}/pkg-plist.${EMACS_PORT_NAME}
|
|
|
|
.endif
|
2000-05-06 12:45:35 +02:00
|
|
|
|
2001-10-23 19:14:25 +02:00
|
|
|
# Emacs-21.x
|
|
|
|
.elif (${EMACS_PORT_NAME} == "emacs21")
|
|
|
|
EMACS_NAME= emacs
|
2003-04-08 16:56:32 +02:00
|
|
|
EMACS_VER= 21.3
|
2001-10-23 19:14:25 +02:00
|
|
|
EMACS_MAJOR_VER= 21
|
|
|
|
EMACS_LIBDIR?= share/${EMACS_NAME}
|
|
|
|
EMACS_LIBDIR_WITH_VER?= share/${EMACS_NAME}/${EMACS_VER}
|
2007-07-16 19:07:45 +02:00
|
|
|
EMACS_PORTSDIR= ${PORTSDIR}/editors/emacs21
|
2001-10-23 19:14:25 +02:00
|
|
|
EMACS_COMMON_PORT= NO
|
|
|
|
EMACS_HAS_MULE= YES
|
2001-12-01 18:54:54 +01: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 08:59:22 +01:00
|
|
|
COMMENTFILE?= ${PKGDIR}/pkg-comment.${EMACS_PORT_NAME}
|
2001-12-01 18:54:54 +01:00
|
|
|
DESCR?= ${PKGDIR}/pkg-descr.${EMACS_PORT_NAME}
|
|
|
|
PLIST?= ${PKGDIR}/pkg-plist.${EMACS_PORT_NAME}
|
|
|
|
.endif
|
2001-10-23 19:14:25 +02:00
|
|
|
|
2006-04-01 23:04:33 +02:00
|
|
|
# Emacs-22.x
|
|
|
|
.elif (${EMACS_PORT_NAME} == "emacs22")
|
|
|
|
EMACS_NAME= emacs
|
2007-07-16 19:07:45 +02:00
|
|
|
EMACS_VER= 22.1
|
|
|
|
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
|
|
|
|
|
|
|
|
# Emacs-22.x (development version)
|
|
|
|
.elif (${EMACS_PORT_NAME} == "emacs-devel")
|
|
|
|
EMACS_NAME= emacs
|
2007-04-29 10:27:33 +02:00
|
|
|
EMACS_VER= 22.0.99
|
2006-04-01 23:04:33 +02:00
|
|
|
EMACS_MAJOR_VER= 22
|
|
|
|
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
|
|
|
|
|
2006-02-16 13:42:44 +01:00
|
|
|
# Mule-19.x
|
|
|
|
.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
|
|
|
|
EMACS_HAS_MULE= YES
|
|
|
|
EMACS_NO_SUBDIRSEL= YES
|
|
|
|
.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 12:45:35 +02:00
|
|
|
# XEmacs-21.x
|
|
|
|
.elif (${EMACS_PORT_NAME} == "xemacs21")
|
|
|
|
EMACS_NAME= xemacs
|
2006-12-12 12:41:15 +01:00
|
|
|
EMACS_VER= 21.4.20
|
2000-05-06 12:45:35 +02:00
|
|
|
EMACS_MAJOR_VER= 21
|
|
|
|
EMACS_LIBDIR?= lib/${EMACS_NAME}
|
|
|
|
EMACS_LIBDIR_WITH_VER?= lib/${EMACS_NAME}-${EMACS_VER}
|
2004-08-19 16:18:46 +02:00
|
|
|
EMACS_PORTSDIR= ${PORTSDIR}/editors/xemacs
|
2000-05-08 15:09:50 +02:00
|
|
|
EMACS_COMMON_PORT= NO
|
2000-07-12 17:18:32 +02:00
|
|
|
EMACS_HAS_MULE= NO
|
2001-12-01 18:54:54 +01: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 08:59:22 +01:00
|
|
|
COMMENTFILE?= ${PKGDIR}/pkg-comment.${EMACS_PORT_NAME}
|
2001-12-01 18:54:54 +01:00
|
|
|
DESCR?= ${PKGDIR}/pkg-descr.${EMACS_PORT_NAME}
|
|
|
|
PLIST?= ${PKGDIR}/pkg-plist.${EMACS_PORT_NAME}
|
|
|
|
.endif
|
2000-05-06 12:45:35 +02:00
|
|
|
|
|
|
|
# XEmacs-21.x with Mule
|
|
|
|
.elif (${EMACS_PORT_NAME} == "xemacs21-mule")
|
|
|
|
EMACS_NAME= xemacs
|
2006-12-12 12:41:15 +01:00
|
|
|
EMACS_VER= 21.4.20
|
2000-05-06 12:45:35 +02:00
|
|
|
EMACS_MAJOR_VER= 21
|
|
|
|
EMACS_LIBDIR?= lib/${EMACS_NAME}
|
|
|
|
EMACS_LIBDIR_WITH_VER?= lib/${EMACS_NAME}-${EMACS_VER}
|
2000-05-08 15:09:50 +02:00
|
|
|
EMACS_PORTSDIR= ${PORTSDIR}/editors/xemacs21-mule
|
2003-05-12 02:46:51 +02:00
|
|
|
EMACS_COMMON_PORT= NO
|
2000-07-12 17:18:32 +02:00
|
|
|
EMACS_HAS_MULE= YES
|
2001-12-01 18:54:54 +01: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 08:59:22 +01:00
|
|
|
COMMENTFILE?= ${PKGDIR}/pkg-comment.${EMACS_PORT_NAME}
|
2001-12-01 18:54:54 +01:00
|
|
|
DESCR?= ${PKGDIR}/pkg-descr.${EMACS_PORT_NAME}
|
|
|
|
PLIST?= ${PKGDIR}/pkg-plist.${EMACS_PORT_NAME}
|
|
|
|
.endif
|
2000-05-08 15:09:50 +02:00
|
|
|
|
2002-07-14 15:49:20 +02:00
|
|
|
# XEmacs-21 development version
|
|
|
|
.elif (${EMACS_PORT_NAME} == "xemacs-devel")
|
|
|
|
EMACS_NAME= xemacs
|
2007-05-27 19:43:21 +02:00
|
|
|
EMACS_VER= 21.5-b28
|
2002-07-14 15:49:20 +02: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 08:59:22 +01:00
|
|
|
COMMENTFILE?= ${PKGDIR}/pkg-comment.${EMACS_PORT_NAME}
|
2002-07-14 15:49:20 +02: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 19:11:20 +02:00
|
|
|
.elif (${EMACS_PORT_NAME} == "xemacs-devel-mule") || \
|
|
|
|
(${EMACS_PORT_NAME} == "xemacs-mule-xft")
|
2002-07-14 15:49:20 +02:00
|
|
|
EMACS_NAME= xemacs
|
2007-05-27 19:43:21 +02:00
|
|
|
EMACS_VER= 21.5-b28
|
2002-07-14 15:49:20 +02:00
|
|
|
EMACS_MAJOR_VER= 21
|
|
|
|
EMACS_LIBDIR?= lib/${EMACS_NAME}
|
|
|
|
EMACS_LIBDIR_WITH_VER?= lib/${EMACS_NAME}-${EMACS_VER}
|
2006-05-16 19:11:20 +02:00
|
|
|
.if ${EMACS_PORT_NAME} == "xemacs-mule-xft"
|
|
|
|
EMACS_PORTSDIR= ${PORTSDIR}/editors/xemacs-devel-mule-xft
|
|
|
|
.else
|
2002-07-14 15:49:20 +02:00
|
|
|
EMACS_PORTSDIR= ${PORTSDIR}/editors/xemacs-devel-mule
|
2006-05-16 19:11:20 +02:00
|
|
|
.endif
|
2002-07-14 15:49:20 +02: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 08:59:22 +01:00
|
|
|
COMMENTFILE?= ${PKGDIR}/pkg-comment.${EMACS_PORT_NAME}
|
2002-07-14 15:49:20 +02:00
|
|
|
DESCR?= ${PKGDIR}/pkg-descr.${EMACS_PORT_NAME}
|
|
|
|
PLIST?= ${PKGDIR}/pkg-plist.${EMACS_PORT_NAME}
|
|
|
|
.endif
|
|
|
|
|
2000-05-06 12:45:35 +02:00
|
|
|
.else
|
2004-01-20 10:14:10 +01:00
|
|
|
check-makevars::
|
|
|
|
@${ECHO} "Makefile error: Bad value of EMACS_PORT_NAME: ${EMACS_PORT_NAME}."
|
2000-05-06 12:45:35 +02:00
|
|
|
@${ECHO} "Valid values are:"
|
2006-04-01 23:04:33 +02:00
|
|
|
@${ECHO} " Emacs family: emacs19 mule emacs20 emacs21 emacs22"
|
2000-05-08 15:09:50 +02:00
|
|
|
@${ECHO} " XEmacs family: xemacs xemacs20 xemacs21 xemacs21-mule"
|
2006-05-16 19:11:20 +02:00
|
|
|
@${ECHO} " xemacs-devel xemacs-devel-mule xemacs-mule-xft"
|
2000-05-06 12:45:35 +02:00
|
|
|
@${FALSE}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# Common Definitions
|
|
|
|
#
|
|
|
|
|
2005-04-17 20:13:12 +02:00
|
|
|
# find where emacsen is installed
|
|
|
|
# look for it in PREEFIX first and fall back to LOCALBASE then
|
2006-08-04 14:34:50 +02:00
|
|
|
.if exists(${TARGETDIR}/bin/${EMACS_NAME}-${EMACS_VER})
|
2006-08-14 15:24:18 +02:00
|
|
|
EMACS_BASE?= ${TARGETDIR}
|
2005-04-17 20:13:12 +02:00
|
|
|
.else
|
|
|
|
EMACS_BASE?= ${LOCALBASE}
|
|
|
|
.endif
|
2000-05-06 12:45:35 +02:00
|
|
|
# emacsen command-line filename
|
2005-04-17 20:13:12 +02:00
|
|
|
EMACS_CMD?= ${EMACS_BASE}/bin/${EMACS_NAME}-${EMACS_VER}
|
2000-07-25 11:01:38 +02:00
|
|
|
# emacsen core elisp filename
|
|
|
|
EMACS_CORE_DIR= ${EMACS_LIBDIR_WITH_VER}/lisp/${EMACS_CORE_SUBDIR}
|
2005-04-17 20:13:12 +02:00
|
|
|
EMACS_COREEL= ${EMACS_BASE}/${EMACS_CORE_DIR}/startup.el
|
2000-05-08 15:09:50 +02:00
|
|
|
# emacsen libdir without ${LOCALBASE}
|
2000-05-06 12:45:35 +02:00
|
|
|
EMACS_SITE_LISPDIR?= ${EMACS_LIBDIR}/site-lisp
|
|
|
|
EMACS_VERSION_SITE_LISPDIR?= ${EMACS_LIBDIR_WITH_VER}/site-lisp
|
2000-05-08 15:09:50 +02:00
|
|
|
|
|
|
|
# build&run-dependency
|
2000-07-19 10:01:49 +02:00
|
|
|
EMACS_NO_BUILD_DEPENDS?= NO
|
|
|
|
EMACS_NO_RUN_DEPENDS?= NO
|
|
|
|
.if (${EMACS_NO_BUILD_DEPENDS} == "NO")
|
2000-05-08 15:09:50 +02:00
|
|
|
BUILD_DEPENDS+= ${EMACS_CMD}:${EMACS_PORTSDIR}
|
2000-07-19 10:01:49 +02:00
|
|
|
.endif
|
|
|
|
.if (${EMACS_NO_RUN_DEPENDS} == "NO")
|
2000-05-08 15:09:50 +02:00
|
|
|
.if defined(EMACS_COMMON_PORT) && (${EMACS_COMMON_PORT} == "YES")
|
2000-07-25 11:01:38 +02:00
|
|
|
RUN_DEPENDS+= ${EMACS_COREEL}:${EMACS_PORTSDIR}-common
|
2000-05-08 15:09:50 +02:00
|
|
|
.else
|
|
|
|
RUN_DEPENDS+= ${EMACS_CMD}:${EMACS_PORTSDIR}
|
|
|
|
.endif
|
2000-07-19 10:01:49 +02:00
|
|
|
.endif
|
2000-05-10 17:59:44 +02:00
|
|
|
|
|
|
|
# environments for build
|
2000-09-18 06:14:56 +02:00
|
|
|
MAKE_ARGS+= EMACS=${EMACS_CMD} XEMACS=${EMACS_CMD}
|
|
|
|
SCRIPTS_ENV+= EMACS_LIBDIR=${EMACS_LIBDIR} \
|
2000-05-10 17:59:44 +02:00
|
|
|
EMACS_VER=${EMACS_VER} \
|
2001-12-01 18:54:54 +01: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 17:59:44 +02:00
|
|
|
# pkg/PLIST substrings
|
2000-09-18 06:14:56 +02:00
|
|
|
PLIST_SUB+= EMACS_LIBDIR=${EMACS_LIBDIR} \
|
2000-05-10 17:59:44 +02:00
|
|
|
EMACS_VER=${EMACS_VER} \
|
2001-12-01 18:54:54 +01:00
|
|
|
EMACS_LIBDIR_WITH_VER=${EMACS_LIBDIR_WITH_VER} \
|
|
|
|
EMACS_SITE_LISPDIR=${EMACS_SITE_LISPDIR} \
|
|
|
|
EMACS_VERSION_SITE_LISPDIR=${EMACS_VERSION_SITE_LISPDIR}
|