From 4f44e99c1d3121576c6380d361997f5ecb736b43 Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Thu, 23 Jul 1998 08:04:48 +0000 Subject: Build HTML doc files if "BATCH" is defined. Requested by: Adrian Wontroba --- mail/mutt/Makefile | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) (limited to 'mail/mutt/Makefile') diff --git a/mail/mutt/Makefile b/mail/mutt/Makefile index 08480bf54476..9b08ad79bf18 100644 --- a/mail/mutt/Makefile +++ b/mail/mutt/Makefile @@ -4,7 +4,7 @@ # Date created: Thur July 25, 1996 # Whom: David O'Brien (obrien@NUXI.com) # -# $Id: Makefile,v 1.45 1998/07/17 18:52:17 obrien Exp $ +# $Id: Makefile,v 1.46 1998/07/18 19:09:24 obrien Exp $ DISTNAME= mutt-0.93.1i PKGNAME= mutt-0.93.1 @@ -27,7 +27,8 @@ MAINTAINER= obrien@FreeBSD.org .if defined(BATCH) LIB_DEPENDS= slang\\.1\\.:${PORTSDIR}/devel/libslang -BUILD_DEPENDS= ispell:${PORTSDIR}/textproc/ispell +BUILD_DEPENDS= ispell:${PORTSDIR}/textproc/ispell \ + sgmlfmt:${PORTSDIR}/textproc/sgmlformat RUN_DEPENDS= ispell:${PORTSDIR}/textproc/ispell .elif defined(USE_NCURSES_PORT) LIB_DEPENDS= ncurses\\.4\\.:${PORTSDIR}/devel/ncurses @@ -55,13 +56,23 @@ post-patch: pre-configure: @${MKDIR} ${PREFIX}/share/misc +.if defined(BATCH) && !defined(NOPORTDOCS) +PLIST:= ${WRKDIR}/PLIST +post-build: + cd ${WRKSRC}/doc; ${MAKE} fbsd + @${CAT} ${PKGDIR}/PLIST.htmlfiles >> ${PLIST} + @${CAT} ${PKGDIR}/PLIST >> ${PLIST} +.endif + post-install: @strip ${PREFIX}/bin/mutt .if !defined(NOPORTDOCS) @${ECHO} "===> Installing Mutt documentation" @${MKDIR} ${PREFIX}/share/doc/mutt && chmod a+rx ${PREFIX}/share/doc/mutt - @${INSTALL_MAN} ${WRKSRC}/doc/*.txt \ - ${PREFIX}/share/doc/mutt + @${INSTALL_MAN} ${WRKSRC}/doc/*.txt ${PREFIX}/share/doc/mutt +.if defined(BATCH) + @${INSTALL_MAN} ${WRKSRC}/doc/*.html ${PREFIX}/share/doc/mutt +.endif @(cd ${WRKSRC} ; ${INSTALL_DATA} sample.muttrc Mush.rc Pine.rc \ ${PREFIX}/share/doc/mutt) .endif -- cgit v1.2.3