summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorminoura <minoura@pkgsrc.org>2002-10-19 06:48:03 +0000
committerminoura <minoura@pkgsrc.org>2002-10-19 06:48:03 +0000
commit0472a082cd844aec1be0178e5a6ae0eae85cb1d5 (patch)
tree0c621301d3400caff9c79c0ba95310a5fb4715c7 /mk
parenta0a08eae8e3281191da2f60ea74f5f764f5e8b6c (diff)
downloadpkgsrc-0472a082cd844aec1be0178e5a6ae0eae85cb1d5.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}