summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2002-10-17 00:32:33 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2002-10-17 00:32:33 +0000
commit95152be7d8d120533a2308e144b5194b8a5c9ff3 (patch)
tree1c43689392d294f1bd9e6b5936e85e5e154a26d7 /mail
parentrevert last commit. This builds fine here, and I've never seen one (diff)
Allow one to use "WITH_DOCS=no" to avoid building them.
Notes
Notes: svn path=/head/; revision=68172
Diffstat (limited to 'mail')
-rw-r--r--mail/mutt/Makefile8
-rw-r--r--mail/mutt14/Makefile8
2 files changed, 8 insertions, 8 deletions
diff --git a/mail/mutt/Makefile b/mail/mutt/Makefile
index a0a6b3975d10..f49a26e4a3de 100644
--- a/mail/mutt/Makefile
+++ b/mail/mutt/Makefile
@@ -39,7 +39,7 @@ RUN_DEPENDS= ispell:${PORTSDIR}/textproc/ispell \
.endif
.if ${MACHINE_ARCH} != "alpha"
# coredump in sgmls
-WITH_DOCS= yes
+WITH_DOCS?= yes
.endif
LIB_DEPENDS= intl.4:${PORTSDIR}/devel/gettext
@@ -51,7 +51,7 @@ LIB_DEPENDS+= ncurses.5:${PORTSDIR}/devel/ncurses
.if defined(WITH_MUTT_CYRUS_SASL)
LIB_DEPENDS+= sasl.8:${PORTSDIR}/security/cyrus-sasl
.endif
-.if defined(WITH_DOCS)
+.if defined(WITH_DOCS) && ${WITH_DOCS} != "no"
BUILD_DEPENDS+= sgmlfmt:${PORTSDIR}/textproc/sgmlformat
.endif
@@ -99,7 +99,7 @@ post-build:
${PATCH} ${PATCH_ARGS} < ${PATCHDIR}/extra-patch-doc-ref
printf ",s|\$${PREFIX}|%s|g\nw\nq\n" ${PREFIX} | \
ed -s ${WRKSRC}/doc/mutt.man
-.if defined(WITH_DOCS)
+.if defined(WITH_DOCS) && ${WITH_DOCS} != "no"
PLIST:= ${WRKDIR}/PLIST
pre-install:
@${CAT} ${PKGDIR}/pkg-plist.htmlfiles >> ${PLIST}
@@ -114,7 +114,7 @@ post-install:
@${MKDIR} ${PREFIX}/share/doc/mutt && ${CHMOD} a+rx ${PREFIX}/share/doc/mutt
@cd ${WRKSRC}/doc ; ${INSTALL_MAN} manual.txt PGP-Notes.txt \
${PREFIX}/share/doc/mutt
-.if defined(WITH_DOCS)
+.if defined(WITH_DOCS) && ${WITH_DOCS} != "no"
${INSTALL} ${COPY} -o ${MANOWN} -g ${MANGRP} -m 0755 \
-d ${PREFIX}/share/doc/mutt/html
${INSTALL_MAN} ${WRKSRC}/doc/*.html ${PREFIX}/share/doc/mutt/html
diff --git a/mail/mutt14/Makefile b/mail/mutt14/Makefile
index a0a6b3975d10..f49a26e4a3de 100644
--- a/mail/mutt14/Makefile
+++ b/mail/mutt14/Makefile
@@ -39,7 +39,7 @@ RUN_DEPENDS= ispell:${PORTSDIR}/textproc/ispell \
.endif
.if ${MACHINE_ARCH} != "alpha"
# coredump in sgmls
-WITH_DOCS= yes
+WITH_DOCS?= yes
.endif
LIB_DEPENDS= intl.4:${PORTSDIR}/devel/gettext
@@ -51,7 +51,7 @@ LIB_DEPENDS+= ncurses.5:${PORTSDIR}/devel/ncurses
.if defined(WITH_MUTT_CYRUS_SASL)
LIB_DEPENDS+= sasl.8:${PORTSDIR}/security/cyrus-sasl
.endif
-.if defined(WITH_DOCS)
+.if defined(WITH_DOCS) && ${WITH_DOCS} != "no"
BUILD_DEPENDS+= sgmlfmt:${PORTSDIR}/textproc/sgmlformat
.endif
@@ -99,7 +99,7 @@ post-build:
${PATCH} ${PATCH_ARGS} < ${PATCHDIR}/extra-patch-doc-ref
printf ",s|\$${PREFIX}|%s|g\nw\nq\n" ${PREFIX} | \
ed -s ${WRKSRC}/doc/mutt.man
-.if defined(WITH_DOCS)
+.if defined(WITH_DOCS) && ${WITH_DOCS} != "no"
PLIST:= ${WRKDIR}/PLIST
pre-install:
@${CAT} ${PKGDIR}/pkg-plist.htmlfiles >> ${PLIST}
@@ -114,7 +114,7 @@ post-install:
@${MKDIR} ${PREFIX}/share/doc/mutt && ${CHMOD} a+rx ${PREFIX}/share/doc/mutt
@cd ${WRKSRC}/doc ; ${INSTALL_MAN} manual.txt PGP-Notes.txt \
${PREFIX}/share/doc/mutt
-.if defined(WITH_DOCS)
+.if defined(WITH_DOCS) && ${WITH_DOCS} != "no"
${INSTALL} ${COPY} -o ${MANOWN} -g ${MANGRP} -m 0755 \
-d ${PREFIX}/share/doc/mutt/html
${INSTALL_MAN} ${WRKSRC}/doc/*.html ${PREFIX}/share/doc/mutt/html