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
commit606f7efcaf14d4154194547fecbc32c2a5705a7c (patch)
tree4b4caae04c4ec85c9b1c5edf39830839beba181c /chat
parentb9593f3c2f124656194609848612e423cdb3aa05 (diff)
downloadpkgsrc-606f7efcaf14d4154194547fecbc32c2a5705a7c.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