summaryrefslogtreecommitdiff
path: root/www/w3
diff options
context:
space:
mode:
authoruebayasi <uebayasi@pkgsrc.org>2007-10-29 04:57:17 +0000
committeruebayasi <uebayasi@pkgsrc.org>2007-10-29 04:57:17 +0000
commit2a7e3334b40fdb853f12819219bbdfc7e1f4c3d0 (patch)
tree1b60a481c72de88741649304c0badf26dfb8803b /www/w3
parentf3764d72fa5a6778747aef89760e305516b86ff7 (diff)
downloadpkgsrc-2a7e3334b40fdb853f12819219bbdfc7e1f4c3d0.tar.gz
Sort variables depending on ${EMACS_FLAVOR} (emacs or xemacs). Prefer
assignment to conditional. Include mk/emacs.mk lazily. No functional changes intended.
Diffstat (limited to 'www/w3')
-rw-r--r--www/w3/Makefile20
1 files changed, 11 insertions, 9 deletions
diff --git a/www/w3/Makefile b/www/w3/Makefile
index 95dbf3db85d..635bc624000 100644
--- a/www/w3/Makefile
+++ b/www/w3/Makefile
@@ -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
-EMACS_VERSIONS_ACCEPTED= emacs21 emacs21nox emacs20
-.include "../../mk/emacs.mk"
+# emacs22 doesn't work
+EMACS_VERSIONS_ACCEPTED= emacs21 emacs21nox emacs20
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}
+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"