summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorminoura <minoura>2002-10-19 06:48:03 +0000
committerminoura <minoura>2002-10-19 06:48:03 +0000
commit1339e90f530d1aad45dac52beb3569ce4717d237 (patch)
tree0c621301d3400caff9c79c0ba95310a5fb4715c7 /mk
parent07aff0b59a0f37aa148711a203136850826136fe (diff)
downloadpkgsrc-1339e90f530d1aad45dac52beb3569ce4717d237.tar.gz
1. Strip out nb? suffix from EMACS_VERSION
2. New variable PKGNAME_PREFIX, which is either null string or xemacs- depending on EMACS_FLAVOR. Intended to use like: DEPENDS+= ${PKGNAME_PREFIX}apel>=10.4:../../devel/apel BUILD_DEPENDS+= ${PKGNAME_PREFIX}apel>=10.4:../../devel/apel
Diffstat (limited to 'mk')
-rw-r--r--mk/emacs.mk12
1 files changed, 8 insertions, 4 deletions
diff --git a/mk/emacs.mk b/mk/emacs.mk
index b07e973c854..a0be7356495 100644
--- a/mk/emacs.mk
+++ b/mk/emacs.mk
@@ -1,4 +1,4 @@
-# $NetBSD: emacs.mk,v 1.4 2002/09/28 14:19:51 uebayasi Exp $
+# $NetBSD: emacs.mk,v 1.5 2002/10/19 06:48:03 minoura Exp $
#
# A Makefile fragment for Emacs Lisp packages.
#
@@ -147,14 +147,18 @@ DEPENDS+= ${EMACS_DEPENDENCY}
EMACS_FLAVOR= ${_EMACS_VERSION:C|[0-9]*$||}
.if ${EMACS_FLAVOR} == "emacs"
EMACS_BIN= ${PREFIX}/bin/emacs
-EMACS_VERSION= ${_EMACS_VERSION_EMACS_FULL:C|^.*-||}
+EMACS_PKG_VERSION= ${_EMACS_VERSION_EMACS_FULL:C|^.*-||}
EMACS_LISPPREFIX= ${PREFIX}/share/emacs/site-lisp
+PKGNAME_PREFIX=
.else
EMACS_BIN= ${PREFIX}/bin/xemacs
-EMACS_VERSION= ${_EMACS_VERSION_XEMACS_FULL:C|^.*-||}
+EMACS_PKG_VERSION= ${_EMACS_VERSION_XEMACS_FULL:C|^.*-||}
EMACS_LISPPREFIX= ${PREFIX}/lib/xemacs/site-packages/lisp
-PKGNAME= xemacs-${DISTNAME}
+PKGNAME_PREFIX= xemacs-
+PKGNAME= ${PKGNAME_PREFIX}${DISTNAME}
.endif
+# strip out nb?
+EMACS_VERSION=${EMACS_PKG_VERSION:C|nb[0-9]*$||}
PLIST_SUBST+= EMACS_VERSION=${EMACS_VERSION}
PLIST_SUBST+= EMACS_LISPPREFIX=${EMACS_LISPPREFIX:C|^${PREFIX}/||}
PLIST_SUBST+= FOR_emacs21=${FOR.emacs21}