summaryrefslogtreecommitdiff
path: root/www/w3/Makefile
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2006-04-08 04:42:10 +0000
committerjlam <jlam@pkgsrc.org>2006-04-08 04:42:10 +0000
commit9f7bd8a06ab4811274c386244c4fce43ce051a68 (patch)
tree56f76f1597055c0d277f8d9a714a30016e6025d2 /www/w3/Makefile
parente4fa79102efdb12949bd9a05e04abe5a8c71a423 (diff)
downloadpkgsrc-9f7bd8a06ab4811274c386244c4fce43ce051a68.tar.gz
Unify the PLIST.emacs and PLIST.xemacs files by taking advantage of some
PLIST_SUBST variables provided by emacs.mk. Also move the info file entries into the PLIST.
Diffstat (limited to 'www/w3/Makefile')
-rw-r--r--www/w3/Makefile21
1 files changed, 13 insertions, 8 deletions
diff --git a/www/w3/Makefile b/www/w3/Makefile
index dd58dc82b46..3cf80c8a08a 100644
--- a/www/w3/Makefile
+++ b/www/w3/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.20 2006/03/04 21:31:04 jlam Exp $
+# $NetBSD: Makefile,v 1.21 2006/04/08 04:42:10 jlam Exp $
DISTNAME= w3-4.0pre.47
PKGNAME= ${EMACS_PKGNAME_PREFIX}w3-4.0b47
@@ -10,16 +10,21 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.cs.indiana.edu/elisp/w3/docs.html
COMMENT= World Wide Web browser for Emacs
-CONFIGURE_ARGS+=--enable-site-install
-
# included in xemacs-packages
EMACS_VERSIONS_ACCEPTED= emacs21 emacs21nox emacs20
.include "../../mk/emacs.mk"
-GNU_CONFIGURE= yes
-CONFIGURE_ARGS+=--with-emacs
-CONFIGURE_ARGS+=--with-lispdir=${EMACS_LISPPREFIX}/w3
-INFO_FILES= w3.info w3-faq.info
-PLIST_SRC= ${PKGDIR}/PLIST.emacs
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS+= --with-emacs
+CONFIGURE_ARGS+= --enable-site-install
+CONFIGURE_ARGS+= --with-lispdir=${EMACS_LISPPREFIX}/w3
+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}
.include "../../mk/bsd.pkg.mk"