Sort variables depending on ${EMACS_FLAVOR} (emacs or xemacs). Prefer
assignment to conditional. Include mk/emacs.mk lazily. No functional changes intended.
This commit is contained in:
parent
f3764d72fa
commit
2a7e3334b4
1 changed files with 11 additions and 9 deletions
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.23 2006/10/04 22:04:10 wiz Exp $
|
||||
# $NetBSD: Makefile,v 1.24 2007/10/29 04:57:17 uebayasi Exp $
|
||||
|
||||
DISTNAME= w3-4.0pre.47
|
||||
PKGNAME= ${EMACS_PKGNAME_PREFIX}w3-4.0b47
|
||||
|
@ -11,8 +11,8 @@ HOMEPAGE= http://www.gnu.org/software/w3/
|
|||
COMMENT= World Wide Web browser for Emacs
|
||||
|
||||
# included in xemacs-packages
|
||||
# emacs22 doesn't work
|
||||
EMACS_VERSIONS_ACCEPTED= emacs21 emacs21nox emacs20
|
||||
.include "../../mk/emacs.mk"
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_ARGS+= --with-emacs
|
||||
|
@ -21,11 +21,13 @@ CONFIGURE_ARGS+= --with-lispdir=${EMACS_LISPPREFIX}/w3
|
|||
CONFIGURE_ARGS+= --datadir=${ETCDIR}
|
||||
INFO_FILES= # PLIST
|
||||
|
||||
.if ${EMACS_FLAVOR} == "xemacs"
|
||||
ETCDIR= ${EMACS_LISPPREFIX:H}/etc/w3
|
||||
.else
|
||||
ETCDIR= ${PREFIX}/share/w3
|
||||
.endif
|
||||
PLIST_SUBST+= ETCDIR=${ETCDIR:S/^${PREFIX}\///:Q}
|
||||
|
||||
ETCDIR= ${ETCDIR.${EMACS_FLAVOR}}
|
||||
|
||||
ETCDIR.emacs= ${PREFIX}/share/w3
|
||||
ETCDIR.xemacs= ${EMACS_LISPPREFIX:H}/etc/w3
|
||||
|
||||
.include "../../mk/emacs.mk"
|
||||
|
||||
.include "../../mk/bsd.pkg.mk"
|
||||
|
|
Loading…
Reference in a new issue