summaryrefslogtreecommitdiff
path: root/chat
diff options
context:
space:
mode:
authoruebayasi <uebayasi@pkgsrc.org>2004-06-27 05:34:43 +0000
committeruebayasi <uebayasi@pkgsrc.org>2004-06-27 05:34:43 +0000
commita4ca35722531fa312c6a7a3115f0b32402ca66ee (patch)
tree4b4caae04c4ec85c9b1c5edf39830839beba181c /chat
parentcc162ee85a8539a417b537395de75d24486ff3c5 (diff)
downloadpkgsrc-a4ca35722531fa312c6a7a3115f0b32402ca66ee.tar.gz
Fix installation when XEmacs is used.
Diffstat (limited to 'chat')
-rw-r--r--chat/navi2ch/Makefile16
1 files changed, 13 insertions, 3 deletions
diff --git a/chat/navi2ch/Makefile b/chat/navi2ch/Makefile
index 9f890b79bbc..6ec7acfa1a6 100644
--- a/chat/navi2ch/Makefile
+++ b/chat/navi2ch/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2004/06/26 06:59:39 uebayasi Exp $
+# $NetBSD: Makefile,v 1.9 2004/06/27 05:34:43 uebayasi Exp $
DISTNAME= navi2ch-1.7.3
CATEGORIES= chat
@@ -14,12 +14,22 @@ GNU_CONFIGURE= # defined
USE_GNU_TOOLS+= make
.if ${EMACS_FLAVOR} == "emacs"
CONFIGURE_ARGS+=--with-emacs
-CONFIGURE_ARGS+=--with-icondir=${PREFIX}/share/navi2ch/icons
CONFIGURE_ARGS+=--with-lispdir=${EMACS_LISPPREFIX}/navi2ch
.else
CONFIGURE_ARGS+=--with-xemacs
-CONFIGURE_ARGS+=--with-packagedir=${EMACS_LISPPREFIX}
+CONFIGURE_ARGS+=--with-packagedir=${EMACS_LISPPREFIX:C|/lisp$||}
.endif
+CONFIGURE_ARGS+=--with-icondir=${PREFIX}/share/navi2ch/icons
+
+# XXX Don't overwrite infodir when XEmacs is used. In this case infodir
+# must be set by --with-infodir (or --infodir?). This should be
+# fixed in the original distribution.
+SUBST_CLASSES+= infodir
+SUBST_STAGE.infodir= post-patch
+SUBST_MESSAGE.infodir= Avoid default infodir is overwritten when XEmacs is used
+SUBST_FILES.infodir= configure configure.in
+SUBST_SED.infodir= -e '/infodir=.*packagedir/d'
+CONFIGURE_ARGS+=--with-infodir=${PREFIX}/info
INFO_FILES= navi2ch.info