Obey user setting of EMACS_PORT_NAME to be friendry for emacs22.

This commit is contained in:
Hajimu UMEMOTO 2006-11-05 11:53:47 +00:00
parent 052bb4cbaa
commit 4e3c863354
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=176473
2 changed files with 7 additions and 3 deletions

View file

@ -25,7 +25,7 @@ PORTCLASS?= master
.if (${PORTCLASS} == "master")
USE_EMACS= yes
EMACS_PORT_NAME= emacs21
EMACS_PORT_NAME?= emacs21
.endif
MULEUCS_DESTDIR= ${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/mule-ucs

View file

@ -41,8 +41,8 @@ PORTCLASS?= master
# Setup EMACS_PORT_NAME variable.
.if (${PORTCLASS} == "master")
USE_EMACS= yes
EMACS_PORT_NAME= emacs21
DEPPORT_SUFFIX=
EMACS_PORT_NAME?= emacs21
DEPPORT_SUFFIX=
.else
DEPPORT_SUFFIX= -${EMACS_PORT_NAME}
.endif
@ -67,6 +67,10 @@ MAKE_ARGS= PREFIX="${LOCALBASE}" \
# depends on apel
BUILD_DEPENDS+= ${LOCALBASE}/${EMACS_LIBDIR}/${EMACS_VER}/site-lisp/emu/emu.el:${PORTSDIR}/editors/apel${DEPPORT_SUFFIX}
RUN_DEPENDS+= ${LOCALBASE}/${EMACS_LIBDIR}/${EMACS_VER}/site-lisp/emu/emu.el:${PORTSDIR}/editors/apel${DEPPORT_SUFFIX}
.if (${EMACS_PORT_NAME} == "emacs21") || (${EMACS_PORT_NAME} == "emacs22")
DESCR= ${PKGDIR}/pkg-descr.emacs21
PLIST= ${PKGDIR}/pkg-plist.emacs21
.endif
.else
.BEGIN:
@${ECHO} "Error: Bad port."